Hybrid View

  1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    29
    Vote Rating
    0
    avilanchee is on a distinguished road

      0  

    Default check box event in data grid

    check box event in data grid


    Guys,

    I have a datagrid with checkBox column . I need to save the state of the checkbox to the grid store . say i uncheck it, the value should be false and it should be committed to the grid . I tried using checkChange event , no success . Any help would be highly appreciated!

  2. #2
    Ext User
    Join Date
    Jun 2008
    Posts
    29
    Vote Rating
    0
    avilanchee is on a distinguished road

      0  

    Default grid here

    grid here


    private Grid<SectionGridModel> getSubSectionsGrid() {
    if (subSectionGrid == null) {
    List<ColumnConfig> configs = new ArrayList<ColumnConfig>();

    ColumnConfig column = new ColumnConfig();
    column.setId("name");
    column.setHeader("Name");
    column.setWidth(75);
    configs.add(column);

    column = new ColumnConfig();
    column.setId("englishname");
    column.setHeader("English Name");
    column.setWidth(75);
    configs.add(column);

    column = new ColumnConfig();
    column.setId("url");
    column.setHeader("Url");
    column.setWidth(75);
    configs.add(column);

    column = new ColumnConfig();
    column.setId("type");
    column.setHeader("type");
    column.setWidth(75);
    configs.add(column);

    CheckColumnConfig checkColumn = new CheckColumnConfig("yesorno", "In Use?", 55);
    configs.add(checkColumn);

    column = new ColumnConfig();
    column.setId("inuse");
    column.setHeader("In Use");
    column.setWidth(75);
    configs.add(column);

    column = new ColumnConfig();
    column.setId("image");
    column.setHeader("Image");
    column.setWidth(75);
    configs.add(column);

    store = new ListStore<SectionGridModel>();
    store.setMonitorChanges(true);

    ColumnModel cm = new ColumnModel(configs);
    subSectionGrid = new Grid<SectionGridModel>(store, cm);
    subSectionGrid.addPlugin(checkColumn);
    subSectionGrid.setBorders(true);
    subSectionGrid.setAutoExpandColumn("name");

    }
    return subSectionGrid;
    }

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar