Announcement

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

    Select All checkBox with Title, in listGridfield

    Hi
    We are using SGWT 3.0 Lgpl.
    The below code does not work in FF 21.0
    Trying to add a checkBox to select all records With Title in listGridField. as i can't find any direct way to do this.

    ListGridField lgfPendingCol = new ListGridField(COL_PEND, "XXX");// my title
    lgfPendingCol.setAlign(Alignment.CENTER);
    lgfPendingCol.setType(ListGridFieldType.BOOLEAN);
    lgfPendingCol.setCanEdit(true);

    // Add Select all check box with title
    final Button buttonProperties = new Button();
    buttonProperties.setIconSize(13);
    buttonProperties.setIcon("[SKIN]/DynamicForm/uncheck_Down.png");
    buttonProperties.addIconClickHandler(new IconClickHandler() {

    private boolean isCheckAll = false;

    @Override
    public void onIconClick(IconClickEvent event) {

    if(isCheckAll){
    isCheckAll = false;
    buttonProperties.setIcon("[SKIN]/DynamicForm/uncheck_Down.png");
    }else{
    isCheckAll = true;
    buttonProperties.setIcon("[SKIN]/DynamicForm/checked.png");
    }

    for(ListGridRecord record:lgMsg.getRecords()){
    record.setAttribute(COL_PEND, isCheckAll);
    lgMsg.updateData(record);
    }
    lgMsg.markForRedraw();
    }
    });
    lgfPendingCol.setHeaderButtonProperties(buttonProperties );


    Please give some solution.

    Thanks
    Minhaj
    Attached Files
    Last edited by Minhaj; 5 Jun 2013, 05:09. Reason: add comment

    #2
    Did u try this?
    http://forums.smartclient.com/showthread.php?t=21939

    Comment


      #3
      Thanks for the reply!
      We had try it but still not working in FireFox.
      Last edited by Minhaj; 13 Jun 2013, 05:10.

      Comment


        #4
        Hello all,
        Is the any property in listGrid to set title in check Box column:

        countryGrid.setSelectionType(SelectionStyle.SIMPLE);
        countryGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);

        Thank you
        Minhaj

        Comment


          #5
          Fire Fox bug !

          Hi,
          Please take a look on this issue.
          I can't figure out the problem, IE Crome all works fine.

          Thanks
          Minhaj

          Comment

          Working...
          X