Announcement

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

    Unable to de-select a checkbox in ListGrid

    Hi,
    I am able to select a row by clicking the check box, but unable to de-select. Also not able to select all the rows by clicking the check box in the header of the ListGrid (check box at the header dosen't get selected).
    Using GWT 1.6.4 on ubuntu 8.1 and SmartGWT latest build r577.

    Thanks for any help.

    Code:
    ListGrid detailsGrid = new ListGrid();
    detailsGrid.setTop(25);
    detailsGrid.setLeft(20);
    detailsGrid.setWidth("95%");
    detailsGrid.setHeight("50%");
    detailsGrid.setHeaderHeight(45);
    detailsGrid.setAlternateRecordStyles(true);
    detailsGrid.setAutoFetchData(true);		
    detailsGrid.setShowAllRecords(true);
    detailsGrid.setSelectionType(SelectionStyle.SIMPLE);
    detailsGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
    detailsGrid.setDataSource(ds.getInstance());

    #2
    Are you seeing this issue in the online Showcase?

    Comment


      #3
      No, in the online Showcase it works fine.

      Comment


        #4
        The check box de-select works now.
        Problem Scenario:
        I was adding a widget to a TabPanel of a DecorateTabPanel. The widget was extending a VerticalPanel, consisting of this SmartGWT ListGrid added to a VLayout.

        Resolution:
        By adding the SmartGWT ListGrid to GWT VerticalPanel it worked.

        Comment


          #5
          Unable to deselect the rows

          I have a grid in which rows need to be selected through check box. I use

          Code:
                  listGrid.setCanEdit(false);        
                  listGrid.setWrapCells(true);
                  listGrid.setFixedRecordHeights(false);        
                  listGrid.setCanSelectText(true);
                  listGrid.setAlternateRecordStyles(true);   
                  listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
                  listGrid.setSelectionType(SelectionStyle.SINGLE);
          I am not able to deselect the selected record by clicking on it again. I don't use any other widgets as mentioned in the previous post.
          Changing the SelectionStyle to SIMPLE solves this issue, but it enables multiple selection which is not my requirement.
          Please let me know if we have a workaround for toggling the selection in SINGLE mode.

          Version used - Isomorphic SmartClient/SmartGWT Framework (v8.3p_2013-01-16/Pro Deployment 2013-01-16)
          Browser used - Firefox 18.0.2 and IE 7.0

          Comment

          Working...
          X