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

RadCombo doesnt keep value on postbacks

1 Answer 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Roberto Yudice
Top achievements
Rank 1
Roberto Yudice asked on 31 May 2010, 05:56 PM
I have a radComboBox that is loaded from javascript when another combo's value is set, I use the itemsRequested event, the problem is that this combo that is loaded through javascript doesnt keep its value when posted, why is this and how can I solve it? any help is appreciated, thanks!

I forgot to mention that if I set the EnableLoadOnDemand property of the combo to true it keeps it value, but when I do this the combo filtering function no longer works.

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 01 Jun 2010, 10:22 AM
Hi Roberto Yudice,

Could you please check if the second RadComboBox (that one populated with data via JavaScript) is read-only?  
If it is read-only I can suggest you try setting the AllowCustomText property to “true”.
Then if you prefer to disable user typing in the RadComboBox input - handle the client-side OnClientLoad event as shown below:
function OnClientLoadHandler(sender)
{
    sender.get_inputDomElement().readOnly = "readonly";
}

Regarding your second question – Load-On-Demand and Filter features in fact make the same thing – they filter RadComboBox items. Load-On-Demand filters items at server-side and Filter does this at client-side.
As their functionalities overlap these two features by design are not intended to work together. 
You can try removing the Filter and continue using Load-On-Demand.

Best wishes,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Roberto Yudice
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or