PDA

View Full Version : [CLOSED] Multicombo box to remain checked while retrieving data from previous grid



Poulami
May 06, 2014, 5:12 AM
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

geoffrey.mcgill
May 06, 2014, 5:22 AM
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?3440-Forum-Guidelines-For-Posting-New-Topics

http://forums.ext.net/showthread.php?10205-More-Information-Required

Please wrap all code samples in [CODE] tags.