1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    3
    Vote Rating
    0
    anoops is on a distinguished road

      0  

    Default Unanswered: How to click check box items in the CheckBox ListView at runtime

    Unanswered: How to click check box items in the CheckBox ListView at runtime


    Could anyone please explain how can we click the few check box items at runtime using a bean model.
    Code:
           view = new CheckBoxListView<PermissionProxy>() {
                @Override
                protected PermissionProxy prepareData(PermissionProxy model) {
                    String s = model.get("name");
                    //model.set("name", Format.ellipse(s, 15));
                    return model;
                }
            };
    
    
            view.setStore(permissionStore);
            view.setDisplayProperty("name");
            
            view.setWidth(150);
            view.setHeight(200);
    Tried to check the boxes after rendering this by

    Code:
    List<PermissionProxy> p = data.getPermissions();
            Iterator<PermissionProxy> it = p.iterator();
            while(it.hasNext()){
                PermissionProxy tp = it.next();
                PermissionProxy temp = (PermissionProxy) permissionStore.findModel("name",   tp.getName().toString());
                
                view.setChecked(temp, true);
    }

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    3
    Vote Rating
    0
    anoops is on a distinguished road

      0  

    Default


    Asynchronous call was causing the issue. This has been resolved now.