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

Change Text of Null paramater check box to "All"

5 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 06 Oct 2011, 07:23 PM
I have a Silverlight Report Viewer.  I have a few parameters I am using to filter my results, and they have AllowNull set to true. But can I change the text of the checkbox from "Null" to "All"?

5 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 11 Oct 2011, 05:13 PM
Hello Adam,

The "null" text of the checkbox can only be modified through the control template of the Silverlight  report viewer. In order to learn how to modify the template please check the Creating Style in Expression Blend help article. Also you can find general information on changing templated controls in the Styling a control that supports templates MSDN article. 

Please have in mind that this will change the text of all parameters which have AllowNull property set to true.

Hope this helps. 

Greetings,
IvanY
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
anil indorkar
Top achievements
Rank 1
answered on 25 Jan 2013, 08:30 AM
I am also having the same problem in my project.
Can we hide this chec kbox which is displaying with the Null Text?
0
Steve
Telerik team
answered on 25 Jan 2013, 09:37 AM
Hi Аnil,

If you're using the Silverlight or WPF report viewer, then yes, you can modify their template in any way you find feasible. If you're using ASP.NET or Windows Forms viewers, then you would have to create your own UI, as the built-in cannot be customized.

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
anil indorkar
Top achievements
Rank 1
answered on 25 Jan 2013, 09:50 AM
Hi Steve

Thanks for the reply. 
Can you provide me some example link to hide only the Checkbox with the Null Text displaying right side of the Combox box.
I want to hide only that Checkbox not the checkbox of Combox List Item.
I tried to apply Style rule from Silverlight page. I do not have to Id of Checkbox with Null text so it is applying on the all checkbox including the items of Combobox.

For example.

 <Style TargetType="CheckBox">
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Text="All" />
                    </DataTemplate>
                </Setter.Value>
            </Setter>
</Style>
Attached the image how the Report parameter is looking after applied above style in the silverlight page.

Please let me know your feedback.

Thanks
0
Steve
Telerik team
answered on 25 Jan 2013, 10:15 AM
Hi Аnil,

You would have to extract the template of the Silverlight viewer and make the modifications directly in the template, for more info refer to:

Regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
IvanY
Telerik team
anil indorkar
Top achievements
Rank 1
Steve
Telerik team
Share this question
or