Sorting do not works with Virtual Scrolling using Datatable

Originally Posted 1 April 2015, 6:20 am EST

  • Originally Posted 1 April 2015, 6:20 am EST

    Hi!!

    I'm using ASP.NET Wijmo controls version 4.0.20151.206 framework 4
    If i use a datasource with a datagridview and virtual scrolling TRUE, when i sort columns it is working well, but if i change the datasource by a datatable, sorting do not works.
    With datatable and virtual scrolling FALSE, the sorting is working well.

    I send you your sample using datatable.

    Thanks
    2015/04/GridView_VirtualScrollingSorting.zip
  • Reply

    Hi!!

    The problem is that CALLBACKSETTINGS MODE=ALL make two Postbacks when Sorting or Filtering, at the second postback the databind at Sorting or Filtering event does not execute because it executes at first postback, disabling that property, all works well.

    Another issue that I have found is that on Android, with Chrome navigator the filters can not be modify or delete using the backspace key, if the filter text is "10,00" and I try to modify to "11,00" the result is "110,00", the deleted text appears allways ("0" deleted with backspace key), so it is impossible modify the filters.

    Thanks
  • Reply

    Sorry, but disabling CALLBACKSETTINGS MODE=ALL the virtual scrolling do not works, but scrolling and filtering works ok.
    I need to use Virtual Scrolling and Sorting and Filtering with a DataTable, is that possible?

    Thanks
  • Reply

    Hello,

    1. You would need to manually handle the runtime data operations like sorting and filtering when binding the C1GridView to a datatable at runtime. Kindly refer to the following blog link which discusses the same: http://our.componentone.com/2012/01/09/runtime-data-operations-in-wijmo-gridview/.

    However, you need to make sure that you set the CallBackSettings to "Scrolling", so as to implementing virtual scrolling as well as maintain the sorting and filtering. Kindly refer to the attached sample which implements the same. Hope it helps.

    2. I was not able to replicate the issue related to the filtering in Chrome on an Android device. Could you please let me know with which version of Android are you exactly facing this issue, so that I can try and replicate the issue further at my end. It would be helpful if you could share a sample application depicting your issue. Please let me know whether you are using C1GridView in mobile mode or not.

    Thanks,
    Manpreet Kaur
    2015/04/GridView_VirtualScrollingSorting_New.zip
Need extra support?

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

Learn More

Forum Channels