Binding Dynamic Store to Dynamic ComboBox inside a GridPanel

  1. #1

    Binding Dynamic Store to Dynamic ComboBox inside a GridPanel

    Dynamic Store is not getting bind to combobox inside a gridpanel from code behind. Please help!!!
    Here is the code
    
    List<object> storeDataProductClass= new List<object>();
    storeDataProductClass.Add(new { text = "Class0", value = "Class0", productIndex = 0});
    storeDataProductClass.Add(new { text = "Class1", value = "Class1", productIndex = 1});
    storeDataProductClass.Add(new { text = "Class2", value = "Class2", productIndex = 2});
    storeDataProductClass.Add(new { text = "Class3", value = "Class3", productIndex = 3});
    storeDataProductClass.Add(new { text = "Class4", value = "Class4", productIndex = 4});
    
    
    Ext.Net.ComboBox cmbClass = new ComboBox();
    				cmbClass.ID = "cmbClass_" + i;
            Model classModel = new Model();
            classModel.Fields.Add(new ModelField("text", ModelFieldType.String));
            classModel.Fields.Add(new ModelField("value", ModelFieldType.String));
            classModel.Fields.Add(new ModelField("productIndex", ModelFieldType.Int));
            Ext.Net.Store storeClass = new Ext.Net.Store();
            storeClass.ID = "storeClass_" + i;
            storeClass.AutoDataBind = true;
            storeClass.Model.Add(classModel);
            storeClass.DataSource = storeDataProductClass;
            storeClass.DataBind();
            storeClass.Filter("productIndex", i.ToString());
            cmbClass.Store.Add(storeClass);
    	cmbClass.DisplayField = "text";
    	cmbClass.ValueField = "value";
    	compColumn.Component.Add(cmbClass);
  2. #2
    No one is replying to my posts. Please guys help me!!!
  3. #3
    Quote Originally Posted by rishu View Post
    No one is replying to my posts. Please guys help me!!!
    This is very disappointing when no one replies to your post. I am having issues with filtering store from codebehind and binding it to combobox from codebehind only.
  4. #4
    Please help!!!
    getting exception on filter 'you have to set widget's id to call its methods '
  5. #5
    Quote Originally Posted by rishu View Post
    Please help!!!
    getting exception on filter 'you have to set widget's id to call its methods '
    This is very ridiculous and frustrating. There is no one to reply my post. If you people are not replying then why the hell,this forum is open to all. :( :(

Similar Threads

  1. Replies: 0
    Last Post: Jun 17, 2013, 11:05 AM
  2. Replies: 12
    Last Post: Mar 22, 2013, 3:16 PM
  3. Replies: 2
    Last Post: Sep 27, 2011, 7:25 AM
  4. Replies: 0
    Last Post: Mar 04, 2011, 12:05 PM
  5. Replies: 11
    Last Post: Dec 14, 2010, 6:42 AM

Posting Permissions