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

When setting ComboBox Text attribute in code behind not affecting client control value

1 Answer 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 02 Feb 2008, 01:47 AM
Hi

I am setting my ComboBox Text attribute in code behind, however, it does not seem to be updating the control.

i.e. ComboBox.Text = "Test" does not update control on web page.

I ahve set AllowCustomText="true".

Any ideas ?

Kind Regards

David

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 04 Feb 2008, 12:21 PM
Hi David,

In which event do you try to set the Text property?

It will work in Page_Load for example, but will not work in ItemsRequested event because the changes are lost after the callback.

Can you explain your case in more detail please?

Thanks

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Share this question
or