selecting rows by 'selectAll' flag does not throw 'selectSta

Hi,



selecting rows by ‘selectAll’ flag does not throw ‘selectStateChanged’ event



Any pointers ?



Thanks,

Nishan

This is expected behaviour as selectAll() methoddoesn’t fire any events.


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

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.

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


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.

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

Could you please provide screenshout of a paging toolbar which containg selectAll.gif image?