Radio buttons in SSRS Report
Asked Answered
P

7

6

How do I add radio buttons as my parameter type in SSRS reports?

Thanks in advance, Anna

Perfectible answered 21/11, 2008 at 14:27 Comment(0)
A
9

It can be done, but only for a boolean parameter - i.e. you can only have True/False, not a custom list of radio options.

Add a parameter to your report of type 'Boolean'. 'Available Values' should be set to 'Non-queried' - but make sure to leave the grid of values completely blank.

In the 'Default Values' section, again choose Non-Queried - but in the expression box type 'True' or 'False' (i.e. dependant upon your desired default value).

The parameter should now render as a radio button - with the option of True/False.

Note, this is all with the Report Designer in BIDS - I haven't tried it via the Report Builder click-once app.

Alerion answered 15/8, 2009 at 14:50 Comment(0)
S
5

If you are referring to the Reporting Services web interface, you can't. Selectable value lists appear as dropdown lists. You can configure to the ability to select multiple values, which are rendered as a dropdown list of checkboxes.

Swanger answered 21/11, 2008 at 14:42 Comment(1)
You can have the data type of the parameter as 'Boolean' which will render your parameter as radio buttonBendwise
G
5

First pass a bool value to your parameter, and then use that parameter field instead of m_dhkDentalStatusGood in the following expression:

=iif( Fields!m_chkDentalStatusGood.Value , Chr(158), Chr(153))

And change the font for that texbox to "Wingdings 2".

NOTE: This should also appear when you export your report as PDF.

Grigsby answered 26/2, 2010 at 9:26 Comment(1)
It doesn't support print preview and print.Thyroiditis
P
2

My guess is that they don't have them - at least they are not documented in the BOL help. It is equivalent in function to the list where you can only select one item.

Phototelegraph answered 21/11, 2008 at 14:38 Comment(2)
You can have the data type of the parameter as 'Boolean' which will render your parameter as radio buttonFloozy
Not exactly a radio button in the classic sense, where you can define your choice.Phototelegraph
P
2

My suspicions are confirmed:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2414397&SiteID=1

These msdn forums are a good resource. Most questions have already been asked ;)

Phototelegraph answered 21/11, 2008 at 14:41 Comment(0)
L
2

It is not possible to add radio buttons to the report parameter in SSRS... Multi valued parameter gets check boxes automatically, if the parameter is single select, all default values appear in drop down, its behaviour is similar to the behaviour of radio button..

Lueluebke answered 19/11, 2012 at 10:31 Comment(0)
E
1

Not true, I am actually having a problem with 2 reports using the same parameter but displaying it differently. The parameter is boolean, and in one report it renders as a dropdown list and in the other it renders as a radio button list. Therefore, both are possible, the question is why is the same code being rendered differently by two different reports? Boolean True true Expand/Collapse All: False Expand All True Collapse All

Egeria answered 2/2, 2009 at 22:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.