Categories | Question details Back To List | ||
selecting rows by 'selectAll' flag does not throw 'selectStateChanged' event Hi, selecting rows by 'selectAll' flag does not throw 'selectStateChanged' event Any pointers ? Thanks, Nishan Answer posted by dhxSupport on May 11, 2009 02:54 This is expected behaviour as selectAll() methoddoesn't fire any events. Answer posted by Nishan on May 11, 2009 06:23 That is a bit surprising, IMHO. Because selectAll flag selects all rows available and that is obviously a change in select state. And apparently selectbyRange flag throws this event, so one would expect selectAll flag also to throw it. Thanks for the help. Nishan Answer posted by dhxSupport on May 11, 2009 07:23 Logically events can be fired after some user action. With selectAll() method you select all rows in the grid. But user cannot select all rows in grid at once.So selectAll() method cannot be initialized by the user. SelectAll method can be initializedonly by API call. So you should know exactly in what part of program you are calling selectAll method and you can execute any code after that. Answer posted by Nishan on May 11, 2009 07:29 Hi, I guess you got me wrong, I am sorry I was not clear. I am talking about the selectAll button, a red flag in the pagination bar, which when clicked selects all rows in the grid. Sorry again for not being clear. Thanks, Nishan Answer posted by dhxSupport on May 11, 2009 08:40 Native paging bar hasn't button which allow you select all rows in grid. Are you implementing custom paging bar? If you are using #master_checkbox in the header to check all rows in the grid, "onCheck" event fired after every checkbox select. Answer posted by Nishan on May 11, 2009 09:51 Hi, Can you check file dhtmlxgrid_pgn.js, line 72. I am using v.2.0 build 81009 There an Item is added to paging toolbar with image selectAll.gif I am sorry that I am bugging you with this, but I am blocked on this issue. Thanks, Nishan Answer posted by dhxSupport on May 12, 2009 06:02 Could you please provide screenshout of a paging toolbar which containg selectAll.gif image? |