1. #1
    Sencha User
    Join Date
    Feb 2013
    Location
    Russian federation, Smolensk
    Posts
    38
    Answers
    5
    Vote Rating
    0
    Mike_javaJunior is on a distinguished road

      0  

    Default Unanswered: How to handle the CheckBox state changing

    Unanswered: How to handle the CheckBox state changing


    In my Grid I need to handle the changing of the state of the CheckBox to save changes right after it was changed

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    Russian federation, Smolensk
    Posts
    38
    Answers
    5
    Vote Rating
    0
    Mike_javaJunior is on a distinguished road

      0  

    Default UPD

    UPD


    I tried to do it this way:
    Code:
    column = new ColumnConfig();
            column.setId("accepted");
            column.setHeader("Accepted");
            column.setWidth(55);
    
    
            column.setRenderer(new GridCellRenderer() {
                @Override
                public Object render(ModelData model, String property, ColumnData config, int rowIndex, int colIndex, ListStore store, Grid grid) {
                    box = new CheckBox();
                    final ListStore<PropertyItem> st = store;
                    box.addListener(Events.CheckChanged, new Listener<CheckChangedEvent>() {
                        @Override
                        public void handleEvent(CheckChangedEvent be) {
                            st.commitChanges();
                            saveProperties(st, customerId, toRemove);
                        }
                    });
    
    
                    return box;
                }
            });
            configs.add(column);
    but the values doesn't correspond the values in the store and doesn't change them

Tags for this Thread

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