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

Combobox selection being forgotten in AJAX scenario

1 Answer 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul Buxton
Top achievements
Rank 1
Paul Buxton asked on 23 Jul 2008, 03:44 PM
Hi,

I am trying to do the following.

I have a user control that contains.....

RAD Combo Box 1 - contains Filter Names (and underlying ID values), autopostback TRUE..  As part of the Click event, I set Combo Box2.Text to the value, so I can verify its set.

RAD Combo Box 2 is AJAX (typeahead LOD) and the data presented is based on the selection of Combo box 1. But....the problem I am getting here is that when Combo2  ItemsRequested is called, the SelectedValue or Value of ComboBox1 is empty!

The user control is wrapped in an AJAX panel on the webform.

Have I missed something really simple, because I think I can't see the wood for trees at the moment.

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 24 Jul 2008, 07:21 AM
Hi Paul ,

You cannot access any control's state in the ItemsRequested event handler.

Instead, you could use the ClientDataString property if you use RadComboBox for ASP.NET or the Context property if you use RadComboBox for  ASP.NET AJAX (part of Telerik.Web.UI suite) to pass any needed information regarding the states of the controls on the page where RadComboBox is.

Please read the following topics for more information if you use RadComboBox for ASP.NET:
Please read the following topics for more information if you use RadComboBox for ASP.NET AJAX (part of Telerik.Web.UI suite)
I hope this helps.

Regards,
Rosi
the Telerik team

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