This is a migrated thread and some comments may be shown as answers.

[Solved] Loading the combobox on pageload event

0 Answers 101 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
siva prakash
Top achievements
Rank 1
siva prakash asked on 17 Aug 2009, 05:57 AM
Hi


Ive a scenerio that I ve to load the combobox  in the page_load event and when the page postback is true. In that case Im unable to see the updated data in the radcombobox.Can anyone help me to resolve this issue.

 

protected void Page_Load(object sender, EventArgs e)

 

{

   

 

       if (IsPostBack)

 

       {
           ArrayList pAL = new ArrayList();

 

           pAL =

Session["Example"];

 

 

           cmbExample.Items.Clear();

 

           foreach (string ele in pAL)

 

          {

 

              string[] aElem = ele .Split(',');

 

              cmbExample.Items.Add(

new RadComboBoxItem(aElem [1], aElem [0]));

 

 

          }

 

 

       }

 

}


In the above case session["Example"] is having updated values but the item not get updated in the radcombo box

Thanks
Sivaprakash

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
siva prakash
Top achievements
Rank 1
Share this question
or