jQWidgets Forums

jQuery UI Widgets Forums TreeGrid FIlter does not work as expected

This topic contains 5 replies, has 2 voices, and was last updated by  vankin09 9 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • FIlter does not work as expected #83881

    vankin09
    Participant

    Hi,

    http://jsfiddle.net/jqwidgets/cw9gL/.
    In the above example, I can see that there is an issue with filtering.
    When the row Andrew is collapsed, and a filter is applied on FirstName column with Anne as the criteria,
    the filter gets applied but the row with FirstName as Anne is not visible.

    In that case, do I have to manually expand each row and find the desired row ?
    Shouldn’t it get expanded leaf filtered record ?
    I hope this is not the expected feature as it conflicts with the concept of filtering.

    Regards,
    VaNKiN09

    FIlter does not work as expected #83883

    ivailo
    Participant

    Hi vankin09,

    This is by default.
    Ib your case, you can use expandAll method after each filter action.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    FIlter does not work as expected #83887

    vankin09
    Participant

    Hi Ivailo,

    Thanks for the solution. I have already tried that and it works fine for static data.
    The problem in my case is that I am using virtual mode with close to 1000 children at 3rd or 4th level.
    If I use expandAll, it will try fetching all the data from server and the browser will eventually hang.

    Is there a way to load children data in background so that the records are available after sometime, without actually expanding the node?

    Once the data is already loaded, expandAllwill not make any server calls and will be the best solution on filter event as mentioned by you in the previous post.

    Also, I wanted to know if there will be issues if I have 1 millions records added to the treegrid?

    Regards,
    VaNKiN09

    FIlter does not work as expected #83888

    ivailo
    Participant

    Hi vankin09,

    A million records will be a problem about treeGrid.
    If you want to load the data separately from the treeGrid, you can use jqxDataAdapter and store the data in some object.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    FIlter does not work as expected #83892

    vankin09
    Participant

    Hi Ivailo,

    Can you let me know the above through an example?
    Also, using the above suggestion, will I be able to bind the loaded data to the treegrid?

    Please let me know the supported load model of treegrid.

    Thanks in Advance.

    Regards,
    VaNKiN09

    FIlter does not work as expected #83925

    vankin09
    Participant

    Any updates??

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

You must be logged in to reply to this topic.