Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
RowSelector with Checkbox problem when trying to trigger checkbox on different page.
posted

Hello! The client wants the following functionality: There are 2 JS iggrids in the page,
- one that is with rowSelectors' checkboxes and ( let's called it "selected features grid" )
- the other is filled (on load, and also on every click) with the row data from the the first one' checked rows, as we trigger click event on the checkboxes on 'iggridrendered' event in this way:

    $(editFeaturesSelector + " span.ui-igcheckbox-normal:eq(" + checkIndex + ")>span").trigger('click');

and then we use the "checkBoxStateChanging" event to push/remove the checked/unchecked row's data in the "selected features grid".

So we have 2 problems:

- The main one is:

When the checkbox grid has more than one page, we cannot trigger click on the checkboxes, because they're not rendered in the DOM. Is there alternative way to do this, so that we can trigger also the "checkBoxStateChanging" event, or if you have suggestions for different approach I'm open to hear them?

- The second problem is:

Let's say you have checked several checkboxes and filled the "selected features grid" with some data.
And then you click on another row, but not on the checkbox but on another cell (selection is in "row" mode) or a bit off the checkbox but in the same cell ( by the way I set the "activation" to "false" ) and then all the selected checkboxes become unchecked, but no "checkBoxStateChanging" event is triggered?

I'm looking forward to your answer.

Best Regards,
Georgi Tsvetkov