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

Not able see Radcombobox values

4 Answers 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
keerthi
Top achievements
Rank 1
keerthi asked on 24 Oct 2008, 07:52 PM
I''m anot able to get the second RadCombobox values on server side when it is loaded through on item request of first Radcombobox.

i can able to see data in second RadCombobox,but on button click,i can able to get the selected item from first RadCombobox and second RadCombobox  is coming as null.

Can you let me know,what i am missing in the functionality

4 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 24 Oct 2008, 08:25 PM
Hey Keerthi,

Just curious, are you doing these operations client-side or server-side?
0
keerthi
Top achievements
Rank 1
answered on 24 Oct 2008, 08:28 PM
Hi Serrin,

I posted the code in my earlier post with heading Regadring AJAX ASP.NET RadComboBox .


0
keerthi
Top achievements
Rank 1
answered on 24 Oct 2008, 08:28 PM
Hi Serrin,

I posted the code in my earlier post with heading Regadring AJAX ASP.NET RadComboBox .


0
Rosi
Telerik team
answered on 27 Oct 2008, 07:17 AM
Hello ,

RadComboBoxItems are not persisted on the server if they are loaded on demand. I suggest you use the SelectedValue and Text properties of the controls instead of the SelectedItem property.

For example:
protected void btnsubmit_Click(object sender, EventArgs e){   
string r1 = RadComboBox1.SelectedValue;  
 
string r2 = RadComboBox2.SelectedValue;  
// getting null for  r2  
}  
 

For more details you can read our help article.

Kind regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
keerthi
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
keerthi
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or