jQWidgets Forums

jQuery UI Widgets Forums Grid Odd selection behavior after calling 'refresh'

This topic contains 2 replies, has 1 voice, and was last updated by  ChaseRLewis73003 8 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • ChaseRLewis73003
    Participant

    I am using multiple rows extended selection mode and have a list of checkboxes that I update based on the selection in the grid. Effectively giving me checkbox selection with multiple rows extended at the same time. To get reasonable performance out of updating the checkboxes I have to call ‘refresh’ to limit the draw calls invoked by the grid.

    The issue is calling ‘refresh’ for some reason changes the selection behavior on already selected rows. If I don’t call refresh and update each cell with ‘setcellvalue’ (which is almost unusable for even a hundred or so items) I can click a dropdown list and it behaves as expected and there is no repeated ‘rowselect’ event. If I use refresh clicking a dropdown instead repeats the ‘rowselect’ event on the row and the dropdown throws an error.

    Is there a way around ‘refresh’ changing the selection behavior of the grid?


    ChaseRLewis73003
    Participant

    I guess a better way to word my question is ‘can i give precedence to a dropdown list on an already selected row, after calling refresh?’


    ChaseRLewis73003
    Participant

    Found a better way then refresh with ‘updatebounddata’ function with the ‘cells’ parameter. You can set a lot of data manually then just call that and minimize your draw calls.

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

You must be logged in to reply to this topic.