views:

25

answers:

1

Hi,

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

A: 

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.

Dick Lampard

related questions