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

Clear button on Multivalue parameter does not unselect values

4 Answers 240 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 24 Jul 2013, 06:26 PM
I have a report that contacts a MultiValue parameter.  It works as I would expect.  The "<select all>" works as expected.  All that is good.  My question is this:  There is a "Clear" button at the top of the dropdown.  For a MultiValue parameter when I select "Clear" it doesn't do anything to the checked values.  In other words the "Clear" doesn't really clear the selected values.

Questions:
  • Can I hide/remove the "Clear" button in the dropdown?
  • If I can't hide/remove the button, can I wire up the Clear button to make it do an unselect all action?

Thanks,
Chris

4 Answers, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 29 Jul 2013, 11:44 AM
I guess you can choose Select All second time to clear the selection. However, how do you get this Clear button? Because I don't have such a button. 
0
Chris
Top achievements
Rank 1
answered on 31 Jul 2013, 02:55 PM
In design mode I don't see the Clear button.  However, when I see the report using the Silverlight Reporting Viewer all of my parameters which are displayed as dropdowns have the Clear button.

I am using Reporting Q3 2012.

Thanks!
0
Squall
Top achievements
Rank 1
answered on 05 Aug 2013, 11:38 AM
@Chris I don't see such button in my Silverlight report viewer multivalue report parameters. The only way to add such button is if you change the template. Do you have changed your Silverlight report viewer template?
0
Chris
Top achievements
Rank 1
answered on 22 Aug 2013, 08:22 PM
Well, I figured out why my dropdowns had the "Clear" option.  I created an implicit style for the RadComboBox to show the clear button for all dropdowns in the system (based on user requirements) and that style also got applied to the dropdowns in the report viewer.

<Style TargetType="telerik:RadComboBox">
    <Setter Property="ClearSelectionButtonContent" Value="Clear"/>
    <Setter Property="ClearSelectionButtonVisibility" Value="Visible"/>
</Style>

Now that I have determined the source of this I can adjust accordingly.  Thanks for the input!

Chris
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Squall
Top achievements
Rank 1
Share this question
or