[CLOSED] Multicombo box to remain checked while retrieving data from previous grid

  1. #1

    [CLOSED] Multicombo box to remain checked while retrieving data from previous grid

    Hi,
    Am strugglig with keeping the multicombo box selected according to data fetched.
    I am adding the items in the multicombo at run time based on the comma spearated values i am retrieving. But thereafter i want the boxes to remain checked and the user should be able to uncheck it.

    Have used all the below options and a few like ForceSelection="true" feature also. But none seems to work.

    case 0:
                            this.ComboBoxProj.GetStore().RemoveAll();
                            string projectName = "";
                            projectName = sm.SelectedCell.Value;
                            string[] arrProjs = projectName.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);
                            int iProjCnt = 0;
                            foreach (string proj1 in arrProjs)
                            {
                                for (iProjCnt = 0; iProjCnt < arrProjs.Length - 1; iProjCnt++)
    
                                    this.ComboBoxProj.AddItem(proj1, proj1);
                                //this.ComboBoxProj.GetStore();
                                this.ComboBoxProj.MultiSelect = true;
    
                                //this.ComboBoxProj.ItemSelected(proj1);
                                
    
                                //this.ComboBoxProj.SelectItem = true;
    
    
    
                                //to show checkbox checked
                                //this.ComboBoxProj.AutoSelect.Equals("true");
                                //this.ComboBoxProj.Select(iProjCnt);
                                //this.ComboBoxProj.SelectedItem[];
                                //this.ComboBoxProj.SelectAll();             
                                //this.ComboBoxProj.SelectedItems.Add(proj1);
    -Poulami
    Last edited by Daniil; May 13, 2014 at 4:14 PM. Reason: [CLOSED]
  2. #2
    Please ensure you provide a simplified sample demonstrating the whole scenario. Please remove all code that is not directly related to the problem.

    The forum Guidelines are available at the following location(s):

    http://forums.ext.net/showthread.php...ing-New-Topics

    http://forums.ext.net/showthread.php...ation-Required

    Please wrap all code samples in [CODE] tags.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 0
    Last Post: Aug 07, 2012, 2:36 PM
  2. Replies: 0
    Last Post: Apr 22, 2012, 9:39 AM
  3. Replies: 1
    Last Post: Dec 11, 2011, 6:45 AM
  4. Replies: 2
    Last Post: Jan 03, 2011, 5:34 PM
  5. Replies: 1
    Last Post: Dec 06, 2010, 8:49 PM

Tags for this Thread

Posting Permissions