Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Issue with grid interaction checkboxselect

    Hi,

    I was working on a treegrid with checkbox selection and it doesn't work the way it should.

    When all the checkboxes are unchecked and i check the checkbox at root, all checkboxes get checked. However, when I uncheck root checkbox, it doesnt uncheck record level checkboxes.

    I tried to look at the showcase and I can recreate the issue on showcase as well.

    How to recreate the issue:
    1) Go to http://www.smartclient.com/smartgwt/...checkboxselect
    2) Group by country grid on Capital(3rd column)
    3) Select root level checkbox
    4) Unselect root level checkbox

    After first selection, check uncheck doesnt work as expected.

    Please look into this.

    Waiting for some feedback on this.

    Thanks,
    Sanjay Nagpal
    Attached Files
    Last edited by sanjayn; 5 Mar 2014, 05:12. Reason: Attaching image

    #2
    Please help!

    Hi,

    Can anyone please help on this?

    Let me know in case you require any more details from my side.

    Thanks,
    Sanjay Nagpal

    Comment


      #3
      We hit this issue too but the scenario is a bit different. We have a grid which renders rows for which only some of the rows are selectable and others are not. We've implemented this by having a "canSelect" property set in data source which tells the grid which rows are selectable and which are not.

      If our grid renders rows for which the canSelect is true for every row everything works perfectly. We can check and uncheck all rows from the grid header checkbox. If the grid dataset contains a row for which the canSelect is false the check/uncheck all logic breaks. We can still click the header row checkbox to select all rows (all rows which can be selected ofcourse) but clicking the checkbox again does nothing. A logical way to work would ofcourse be that if all rows which _can be selected_ are checked the click would uncheck all selections. It might be that the logic is now implemented in a way that it just checks if all rows are checked they can be unchecked. It will fail in this scenario when the grid contains rows which cannot be selected in the first place.

      I suspect the issue you are having has something to do with the fact that under the hood, when the grid is grouped the group title rows are in fact unselectable records in the grid. If we've understood correctly.

      We are using a 4.0p NIGHTLY-2013-10-29. We haven't verified the issue with later builds.

      br,
      Marko

      Comment

      Working...
      X