1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    31
    Vote Rating
    0
    sundhar_v is on a distinguished road

      0  

    Red face Check Box in Grid as Selectable

    Check Box in Grid as Selectable


    Hi all,

    I am using check box in Grid.

    List<ColumnConfig> deposit_CancelAuto_RenewFd_Config = new ArrayList<ColumnConfig>();

    CheckColumnConfig deposit_CancelAuto_RenewFd_CheckColumn = new CheckColumnConfig("Select", "<b><center>Select</b></center>", 50);
    deposit_CancelAuto_RenewFd_Config.add(deposit_CancelAuto_RenewFd_CheckColumn);

    I am getting the check box in the grid. But i am unable to select the check box. Can anyone help me how to make the check box as selectable with some example. I will be very much thankful to you.

    Thanks and Regards,
    Sundhar

  2. #2
    Sencha User
    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


    Have you looked at the examples?

    Add the checkcolumnconfig to the plugins of the grid.

  3. #3
    Ext User
    Join Date
    Apr 2009
    Posts
    31
    Vote Rating
    0
    sundhar_v is on a distinguished road

      0  

    Default


    yes, I have seen the examples, but i am unable to do the check box as selectable one


    List<ColumnConfig> deposit_CancelAuto_RenewFd_Config = new ArrayList<ColumnConfig>();
    CheckColumnConfig deposit_CancelAuto_RenewFd_CheckColumn = new CheckColumnConfig("Select",
    "<b><center>Select</b></center>", 50);
    deposit_CancelAuto_RenewFd_Config.add(deposit_CancelAuto_RenewFd_CheckColumn);


    Binding the Grid

    Grid CancelAutoRenew_Fd_Grid = new Grid<ModelData>(store2, CancelAutoRenew_Fd_Cm);
    CancelAutoRenew_Fd_Grid.setBorders(true);
    CancelAutoRenew_Fd_Grid.setAutoExpandColumn("Sender");
    CancelAutoRenew_Fd_Grid.setAutoHeight(true);
    CancelAutoRenew_Fd_Grid.setAutoWidth(true);
    CancelAutoRenew_Fd_Grid.getView().setForceFit(true);

    Kindly gothrough the code and help me how to acheive the task.

    Thanks and Regards,
    Sundhar

  4. #4
    Sencha User
    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


    Add the checkcolumnconfig to the plugins of the grid.
    Code:
    grid.addPlugin(checkclumn);

Thread Participants: 1