jQWidgets Forums

jQuery UI Widgets Forums Grid groupable grid – sorting problems

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • groupable grid – sorting problems #46238

    assaf.frank123
    Participant

    Hi,

    My grid is initialized by a JS array.
    Even though the records added to the array are in the correct order they don’t appear sorted within the group.
    I tried to manually sort the grid by – $(‘#jqxgrid’).jqxGrid(‘sortby’, ‘no’, ‘asc’);
    and this had no affect. Also making the grid – sortable:true did not sort in the correct manner.
    for exampl –
    (No,group)-

    1,A
    2,A
    3,A
    4,B,
    5,B,
    6,C

    Is shown in grid as:
    1,A
    3,A
    2,A
    4,B
    5,B
    6,C

    Is this a known issue?

    Thanks

    groupable grid – sorting problems #46240

    Peter Stoev
    Keymaster

    Hi assaf.frank123,

    We do not think that there’s a sorting issue when the Grid is grouped. Just make sure that the “type” member when you create the datafields array is set. In case you still experience such behavior and you use the latest (3.0.4 version), then you can provide us a sample and we’ll test it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    groupable grid – sorting problems #46243

    assaf.frank123
    Participant

    If this is what you are referring to it is set to number-

    var row_1 = {};
    row_1[“id”] = ‘123’;
    row_1[“no”] = ‘1’;
    rulesData[0] = row_1;

    var data = rulesData;
    var source =
    {
    localdata: data,
    datafields:
    [
    { name: ‘id’, type: ‘string’},
    { name: ‘no’, type: ‘number’}
    ],
    datatype: “array”,
    updaterow: function (rowid, rowdata) {
    // synchronize with the server – send update command
    }
    };

    I am having great trouble to try achieve what I asked in the past – “move” up/down of rows.
    Any idea how this can be done?

    Many thanks,

    groupable grid – sorting problems #46244

    Peter Stoev
    Keymaster

    Hi assaf.frank123,

    1. According to me ‘id’ and ‘no’ should be both with type ‘number’.
    2. I do not think that move up/down can be achieved with our Grid. It does not have that feature.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.