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

Comobobox SelectedValue LOD

3 Answers 103 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 30 Jul 2008, 10:23 PM
I have a multiple comboboxes with Load on Demand. I'm pretty much using the example found in the demo's found here: http://www.telerik.com/demos/aspnet/prometheus/ComboBox/Examples/Functionality/MultipleComboBoxes/DefaultCS.aspx

I'm wondering is there a way to get the SelectedValue of the second combobox even though it's client-side?

I'd be happy if I can have it do the same exact thing server-side too (which I'd prefer more).

Thanks,

Brett

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 31 Jul 2008, 02:43 PM
Hi Brett,

You can get the SelectedValue of the second combobox in any moment at the server side except when ItemsRequested event of any of the comboboxes fires. If you need to get the value in ItemsRequested event you have to use the Context object of RadComboBox.

More about the Context object you can read here.
You can also review the following code library - Context property demo .

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brett
Top achievements
Rank 1
answered on 31 Jul 2008, 02:52 PM
Thanks Rosi,

I got that working, but is there any way to save the selected item in the combobox when a postback happens?

Thanks,

Brett
0
Rosi
Telerik team
answered on 01 Aug 2008, 06:33 AM
Hello Brett,

Items loaded on demand are not persisted on the server side after postback. This is by design. You can access only the Text and the SelectedValue properties.

Kind regards,
Rosi
the Telerik team

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