jQuery UI Widgets Forums Grid Understanding rowselect, rowunselect and clearselection

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

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

  • davistom
    Participant

    I am groping around a bit trying to grasp some event sequences for the grid widget. In particular, I think I have determined by experiment that the rowunselect event is triggered with rowindex argument = -1 when a row is clicked with no row currently selected. However, if the clearselection method is invoked with a row selected, the selectedrowindex gets reset to -1 but the rowunselect event does not trigger. Am I interpreting the event behavior correctly from my experiments? Thanks.


    Peter Stoev
    Keymaster

    Hi davistorm,

    clearselection does not raise “rowunselect” event, because in general you know the place in your code when you call a method so an additional callback is not necessary in that case. The other point is that “clearselection” may clear 100+ rows which should definitely not result in 100 calls of “rowunselect” event handler.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.