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

Cascading dropdown filtering

2 Answers 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lance
Top achievements
Rank 1
Lance asked on 09 Jul 2010, 07:48 AM
Hi,

I am using Telerik Reports with my Silverlight 4 application.  I have 2 parameters that are dependent lists (like the Country - State/Province scenario).  I don't want to force the user to have to choose either so I have selected Allow Blank for each, but when I select either at runtime, the blank options disappear so then the user would have to make a selection.  To try to get around this, I have added to each of these lists a member that says "(All)" and has a value of 0, so the user can have a report showing all the values.  I have filtered the second list to equal the Id of the first list as you described in your Cascading example but I need the "(All)" to be always available.  I could do this if the Filters had an OR option but I can only see AND.  What I am trying to achieve is the user could choose: (All countries and all States/Provinces), or (Australia and all States), or (Australia and Victoria).  How can I achieve this?

Please help.

2 Answers, 1 is accepted

Sort by
0
Wes
Top achievements
Rank 1
answered on 11 May 2011, 07:14 PM
I am looking to do the same thing. Please advise.

Thank you.
0
Steve
Telerik team
answered on 17 May 2011, 12:12 PM
Hi guys,

The AllowBlank property would only make sense if you have added an empty string to your list of values. The report parameter cannot know automatically which is the value you want to treat as empty string (in your case 0). What would work for you is setting the AllowNull property to null and changing your filter accordingly. This blog post sheds more light on the matter: Filtering with string parameter that allows free user input.

Regards,
Steve
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
General Discussions
Asked by
Lance
Top achievements
Rank 1
Answers by
Wes
Top achievements
Rank 1
Steve
Telerik team
Share this question
or