You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As written in the current jutspy documentation, selected rows value are collected using grid.on('rowSelected', row_selected4). If we enable checkboxSelection in the column header and check it, rowSelected event will fire as many as the number of rows. I think this is fine if we only have small number of rows as shown in the documentation example. In my case, I have many grids and more than 3000 rows for each grid. When I select the header check box, it will take some time to finish and will block the entire process of application as I mentioned here. In addition, the page is prematurely reloaded automatically without warning at some point.
Rather than using grid.on('rowSelected', row_selected4), I think it is better to use grid api getSelectedRows().
Example of this api looks like below:
first, we run the api by using run_javascript method that can be found here. For me, I bind this to button before event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As written in the current jutspy documentation, selected rows value are collected using
grid.on('rowSelected', row_selected4
). If we enablecheckboxSelection
in the column header and check it, rowSelected event will fire as many as the number of rows. I think this is fine if we only have small number of rows as shown in the documentation example. In my case, I have many grids and more than 3000 rows for each grid. When I select the header check box, it will take some time to finish and will block the entire process of application as I mentioned here. In addition, the page is prematurely reloaded automatically without warning at some point.Rather than using
grid.on('rowSelected', row_selected4
), I think it is better to use grid apigetSelectedRows()
.Example of this api looks like below:
first, we run the api by using
run_javascript
method that can be found here. For me, I bind this to buttonbefore
event.Second, we collect the result of the
getSelectedRows()
api by using:This way, the rows selected value are collected only once thus not blocking the process.
Beta Was this translation helpful? Give feedback.
All reactions