jQWidgets Forums

jQuery UI Widgets Forums Grid Bug with version 2.9

Tagged: 

This topic contains 5 replies, has 4 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Bug with version 2.9 #23866

    Marco
    Member

    Hello,

    I have made an update from JQWidget 2.4 to 2.9.
    I have a grid view with virtualmode = true using xml to be bind.

    It seems that when there is only 1 data to display, the grid crashes. (it stays in “loading …” ).
    All was working well under 2.4.

    Here is the code of the async renderer (that works when there is more than 1 data).

    var asyncrender_grvFolder = function (params)
    {
    var start = params.startindex;
    var end = params.endindex;
    var count = end – start;
    var _xml = $.ajax({
    type: ‘GET’,
    url: url_source_grvFolder + get_separator(url_source_grvFolder) + ‘start=’ + start + ‘&count=’ + count,
    dataType: ‘xml’,
    async: false
    }).responseText;
    var data = {};
    var kids = $(_xml).find(‘Folder’);
    for(var i = 0; i < kids.length; i++)
    {
    var row = {};
    var item = kids[i];
    row['id'] = $(item).find('id').text();
    row['Name'] = $(item).find('Name').text();
    data[start + i] = row;
    }
    return data;
    }

    Another problem is that end – start is always == 100, even if there is only 1 record. The count value that i give to the grid is well == 1.

    Have a nice day,

    Marco

    Bug with version 2.9 #23868

    Peter Stoev
    Keymaster

    Hi Marco,

    There are multiple breaking changes since version 2.4 and from the provided code I cannot say what goes wrong on your side. For using the Grid in virtual mode, I suggest you to look at the demos available on our website and especially these in the PHP Integration section as they show how loading on demand is expected to be implemented when working with jqxGrid. There are also samples in the “phpdemos” folder in the download package with Server Scrolling and Server Paging.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Bug with version 2.9 #23899

    DaveB
    Participant

    Peter, I’m not ready to call it a bug yet, but I do see a similar behavior that Marco reported when upgrading from 2.8.3. A number of grids show loading, but never load. Other ones do load, but do not render correctly (it appears as if the row data is all showing in the first column with the columns overlaying each other). I will look into it further to see if it is something that can be corrected easily, but I did want to bring it to your attention that this may not be an isolated issue. I only upgraded it yesterday and didn’t spend any time on it after the upgrade, so I will keep you posted.

    Bug with version 2.9 #23900

    Peter Stoev
    Keymaster

    Hi guys,

    In case you have issues, please post small samples which we can test locally or send it to support@jqwidgets.com. We have working samples with Server Scrolling and Server Paging and we cannot know what code on your side could break the widget’s behavior.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Bug with version 2.9 #25516

    aoverton07
    Participant

    When upgrading from 2.9.2 to 2.9.3 Ive noticed that for my grids if i have virtualmode set to true then the grid will display a blank row for my first record, the rest of the grid is fine. If i remove virtualmode or set it to false then everything works. Anyone else notice this bug?

    Bug with version 2.9 #25525

    Peter Stoev
    Keymaster

    Hi,

    I would suggest you to check your implementation of “rendergridrows” in virtual mode and especially what it returns.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.