jQuery UI Widgets Forums Grid virtual scrolling and "empty" rows

This topic contains 4 replies, has 2 voices, and was last updated by  staganyi 4 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • virtual scrolling and "empty" rows #78252

    staganyi
    Participant

    By using virtual scrolling, I noticed that if all visible rows cannot be filled with data (after a filter for example), the grid will fill itself with empty rows. I have read a few posts that says this is by design (which is fine). Having said that, I’m using rowdetails in my grid and would like to prevent row expansion on these empty rows. I looked online and discovered the hiderowdetails api and implemented it successfully…except that it doesn’t work on the “empty” rows (expansion still occurs). I’m guessing this is a bug?

    virtual scrolling and "empty" rows #78267

    Dimitar
    Participant

    Hi staganyi,

    The method hiderowdetails only collapses the row details, it does not disable or hide them permanently. Having in mind that the “empty” rows in jqxGrid are part of the widget’s behaviour, we do not consider this to be a bug. Unfortunately, we cannot offer you a solution to this issue, either.

    Best Regards,
    Dimitar

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

    virtual scrolling and "empty" rows #78301

    staganyi
    Participant

    Thanks for the reply Dimitar. I understand that the “empty” rows are part of the widget’s behavior, but why don’t they behave like a “regular” row then?

    For example, I have the following code in my grid that essentially disables row expansion (done like this for testing purposes):

    
    $('#jqxgrid').on('rowexpand', function (event) {
      $('#jqxgrid').jqxGrid('hiderowdetails', event.args.rowindex);
    });
    

    The code works for “regular” rows (you cannot expand the row), but it does not for “empty rows” (row expansion still occurs).

    The image below shows the row with part number 160049 (that cannot be expanded) and the empty row below it that can still expand.

    Grid

    Maybe I misunderstood your explanation, but I would consider this a bug no?

    virtual scrolling and "empty" rows #78324

    Dimitar
    Participant

    Hi staganyi,

    Thank you for your feedback. We will look into this issue and will try to improve the grid’s functionality in the future.

    Best Regards,
    Dimitar

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

    virtual scrolling and "empty" rows #78347

    staganyi
    Participant

    Ok thanks for the reply

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

You must be logged in to reply to this topic.