Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Grid won't sort - using xmlstring
10/07/2010
03:14
Avatar
Marie Hughes
Mountain View, cA
New Member
Members
Forum Posts: 2
Member Since:
10/07/2010
sp_UserOfflineSmall Offline

I'm working on a project where we had set up a prototype that used jqGrid 3.7.1 and local data to draw a series of grids. Sorting worked just fine on all of them.

Now we are creating the "real thing" and our jqGrid is getting its data from an XML String. Once this change was made, the grid stopped sorting. (Or so the original programmer tells me; my task is only to get one grid to sort.)

I have been "googling" like crazy to find out if there is something special I need to do to turn on sorting when using dataype: xmlstring, but I haven't seen anything or seen any bug reports related to using jqGrid this way.

Here is the declaration of the grid:

    $("#clientNotesTable").jqGrid({
        datatype: 'xmlstring',
        datastr: noteData,
        colNames: ['Date','Author','Type','Description','Task','Modified'],
        colModel: [
                    { name: 'created', index: 'created', width: 100, xmlmap: "Created", sorttype:'date'},
                    { name: 'authorName', index: 'authorName', width: 100, xmlmap: "AuthorName"},
                    { name: 'type', index: 'type', width: 100, xmlmap: "Type"},
                    { name: 'description', index: 'description', width: 350, xmlmap: "Description", formatter: descFormatter},
                    { name: 'state', index: 'state', width: 85, xmlmap: "State", formatter: taskFormatter, align:"center"},
                    { name: 'hiddenMod', index: 'hiddenMod', width: 0, xmlmap: "Modified", hidden:true}],
        xmlReader: {
            root: "notes",
            row: "note",
            repeatitems: false,
            id:"EntityId"
        },
        sortname: "Date",
        sortorder: 'asc',
        autowidth: true,
        altRows:true,
        altclass:'altRow'
    });

I would greatly appreciate any help I can get at this point, particularly as I'm supposed to have this finished by 9 am on Monday and it's after 5:00 pm on Friday.

Thanks!

12/07/2010
21:08
Avatar
Marie Hughes
Mountain View, cA
New Member
Members
Forum Posts: 2
Member Since:
10/07/2010
sp_UserOfflineSmall Offline

I figured out our problem. Going back to version 3.6.5 fixed as did updating to 3.7.2 which was released today.

I suspect that the update to 3.7.1 wasn't done correctly. It looks like the locale file wasn't updated at the same time.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
57 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information