Telerik RadCombobox not keeping state when using client side requestItems() to load

社会主义新天地 提交于 2019-12-11 07:24:46

问题


I'm using the Telerik RadComboBox control. I have two related combos and when the user selects a value in the first one I filter the second one.

I use the code below to achieve this:

localeCombo = $find("<%= ddlLocale.ClientID %>");
localeCombo.requestItems(item.get_value(), false);

This works totally fine, but when I do a postback my filtered combo resets to the original non filtered list, although all other controls retain their state. I assume this is because the server side list of items is not being updated when I use the client side callback requestItems() function.

Is this the case? Is there a simple way around this?

Any help would be much appreciated!

Thanks

Chris


回答1:


Yep, most probably your suggestion is true. You may try keeping the second filtered combo value in session or cache storage and then restore it from there on postback - at least this is what I would do.




回答2:


This is a bug with RadComboBox. I opened a ticket.



来源:https://stackoverflow.com/questions/3211797/telerik-radcombobox-not-keeping-state-when-using-client-side-requestitems-to-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!