Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Tarteens
    Guest

    Default [CLOSED] [GXT 2.0-M1] Grid & CheckBoxSelectionModel

    [CLOSED] [GXT 2.0-M1] Grid & CheckBoxSelectionModel


    Hi everyone,

    Here's my problem, I have a Grid with a CheckBoxSelectionModel :



    The Behavior I want is :

    1) When you click on the checkbox, it select / deselect the row (it does)

    2) When you have an selection, and you click on the label, it doesn't deselect all the other row, but it just deselect the row you clicked on.

    In fact, I just want to know if where is a way to distinguish if the click is on the checkbox or on the label.

    Thx for your help.

  2. #2
    Ext User
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    69
    Vote Rating
    0
    Rvanlaak is on a distinguished road

      0  

    Default


    And what is the bug?

    The sollution might be to use the same Store

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is not really a bug. You can define your own CheckBoxSelectionModel to do that.

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Posts
    1
    Vote Rating
    0
    vachoh is on a distinguished road

      0  

    Default


    Maybe someone still needs this :
    Code:
    class CustomCheckBoxSelectionModel<M extends YourObject> extends CheckBoxSelectionModel<M>{
            @Override
            protected void handleMouseClick(GridEvent<M> e)
            {
            if (e.getTarget().getClassName().equals("x-grid3-row-checker"))    {             
               // clicked on the checkbox
            }
            }
    
            @Override
            protected void handleMouseDown(GridEvent<M> e){
                if (e.getTarget().getClassName().equals("x-grid3-row-checker")){                 
                  // clicked on the checkbox                
                }
            }        
        }

Thread Participants: 3