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

Radcombo in filtertemplate: when selecteditem is not available anymore

0 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 07 Oct 2011, 04:48 PM
Hello,
in a radgrid I have 3 columns in which I inserted a radcombobox for each column. The objectdatasources of each combo receives the values of all 3 selecteditem combos, in this way if I filter for the first combo, the other 2 are automatically updated and they shows only the values available for the filtered records. All works fine but...... if I filter for a combo, and then I use a text filter and in this second case there are no records to show, an error occurs because the selecteditem chosen for the combo is not available anymore (because the combo is automatically updated...)

So, how can I manage this case? Is there a way to say "If the combo has no items and I set a non existing value, go ahead anyway without thowing an exception?"

Thanks

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mario
Top achievements
Rank 1
Share this question
or