FlexGrid use DisableServerRead or not

Posted by: 048alexsandr1992 on 14 March 2018, 9:12 pm EST

    • Post Options:
    • Link

    Posted 14 March 2018, 9:12 pm EST

    Hi,

    I can not decide, use DisableServerRead good idea or not.

    For example, I have table with 1000 000 items.

    In FlexGrid I used many client-side operations: save states, quick search…

    http://demos.componentone.com/aspnet/ASPNetMVCCollectionView101

    If DisableServerRead = true, then table loaded about 1,5 minutes.

    If DisableServerRead = false, then my table loaded about 15 seconds.

    But some client-side operations require DisableServerRead = true,

    and also when i restore grid state with

    
    collectionView.sortDescriptions 
    itemsSource.pageSize
    filter.filterDefinition
    
    

    each of them initiate request on server.

    That will be more correct?

  • Posted 14 March 2018, 9:35 pm EST

    The problem is that there is a choice between long loading if DisableServerRead = true, or multiple requests to the server when restoring the saved state and refusing some functionality.

    Both choices are not very good

  • Posted 27 March 2018, 8:50 pm EST

    Hi Alex,

    I get it. There are some unavoidable drawbacks of using multiple requests. For your case, I would suggest you use client side virtualization.

    See example here:

    http://jsfiddle.net/72cnp61c/7/

    ~nilay

  • Posted 17 April 2018, 4:42 pm EST

    I compete my task by next solution.

    I use DisableServerRead = false.

    Grid state save in localStorage as before. But use special block

    
    
    flex.collectionView._disableServerRead = true; 
    
    ... // restore state
    
    flex.collectionView._disableServerRead = false;
    flex.collectionView.refresh();
    
    

    In this way, when you restore a state, there will be only one request to the server.

  • Posted 20 April 2018, 7:23 am EST

    very interesting post.this is my first-time visit here.I found so many interesting stuff in your blog especially its discussion…thanks for the post! http://delltechnicalsupportnumber.co.uk/ Thanks for your blog. Really wants to appreciate your work. I go through all points…

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels