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

Custom filter (dropdown + checkbox) populated from XML file

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vlad
Top achievements
Rank 1
vlad asked on 12 Mar 2009, 06:42 PM
Hello,

I have a simple problem that seems really hard to solve (for me !) :

To make it simple, imagine that I have a RadGrid displaying a list of customers. One of my columns ('language') can contain only predefined values stored in XML file.

For example:

<?xml version="1.0" encoding="utf-8" ?>
<Items>
  <Item Text="English" Value="0" />
  <Item Text="German" Value="1" />
  <Item Text="French" Value="2" />
  <Item Text="Italien" Value="3" />
  <Item Text="Chinese" Value="4" />
  <Item Text="Russian" Value="5" />
  <Item Text="Other" Value="6" />
</Items>


If I use GridDropDownColumn, I can display data, no problem. But I need to setup a custom filter.

I need a dropdown control (like MS DropDownList or RadComboBox) populated with my XML file, where user can chosse one OR MORE languages he wants to display (for example German AND French). So this control has to implement checkboxes, for example.

It looks like a very common scenario. So I'm really surprised that it seems so hard to implement. I can't get it work ... Can anybody give me a simple working example that I can adapt ?

Thanks a lot !

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Mar 2009, 05:12 AM
Hello Vlad,

Check out the following code library submission which illustrates on how to implement a RadComboBox supporting multi-selection with checkboxes. This should surely help you to achieve your requirement.
RadComboBox Advanced Multiple Selection

Thanks
Princy.
Tags
Grid
Asked by
vlad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or