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