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

styling the <select all> text in the Silverlight ReportViewer

5 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 18 Feb 2011, 07:52 PM
Hi,

I have created a custom style to change the look of the ReportViewer in my application.  I am trying to see if I can change the text on the <select all> combo box item for a report parameter.  From what I can tell, I need to apply a style to the Telerik.ReportViewer.Silverlight.MultivalueAvailableValuesParameterModel.SelectAllItem class, but I can't figure out how to get to it from Blend.  It definitely isn't exposed by the ReportViewer class that I am currently styling.  Is there a way to change this text at this point in time?

Thanks,

Rob

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Feb 2011, 09:00 AM
Hello Rob,

The select all item is part of the multivalue checkbox which is in a RadComboBox.ItemTemplate. This means that you cannot change only its style and any style you set would be applied to the whole template i.e. all items in the combobox. Additionally it seems that MS Blend does not recreate the ReportParameterEditorTemplateSelector part of the style correctly for some reason. We have made the necessary adjustments in a sample edit template to show you all ReportParameterEditorTemplateSelectors. Find it attached and use it as a template for another viewers with custom style as well.

Kind regards,
Steve
the Telerik team
0
David
Top achievements
Rank 1
answered on 07 Jul 2011, 01:46 PM
Steve,

Thanks for the attached template. I tried converting it to a SL4 template with no luck.

Could you please attach a the default template for the Silverlight ReportViewer.

Thanks so much,
David
0
Peter
Telerik team
answered on 08 Jul 2011, 12:11 PM
Hello David,

I have attached the default Silverlight template. Give it a try and let us know how it goes.

Best wishes,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
David
Top achievements
Rank 1
answered on 10 Jul 2011, 01:08 PM
Peter - Thank you so much.

I placed it in my UserControl made some changes so it would flow correctly Right-to-Left and seems to be working just fine.

Can ask, though, how to access the texts for the various popup dialog boxes displayed by the ReportViewer. I need to edit the text and to change the flow direction to RTL.

Thanks again for your help,
David
0
Peter
Telerik team
answered on 13 Jul 2011, 12:44 PM
Hi David,

All dialog boxes are part of the Silverlight template. For example check out the following code snippet that is taken from the Silverlight template. 

<telerik:DialogBox x:Name="PrintDialog" Visibility="Collapsed">
                                                                    <Grid Width="270">
                                                                        <Grid.RowDefinitions>
                                                                            <RowDefinition Height="100"/>
                                                                            <RowDefinition Height="auto"/>
                                                                        </Grid.RowDefinitions>
                                                                        <Grid HorizontalAlignment="Stretch" Margin="20" VerticalAlignment="Center">
                                                                            <Grid.RowDefinitions>
                                                                                <RowDefinition/>
                                                                                <RowDefinition Height="auto"/>
                                                                            </Grid.RowDefinitions>
                                                                            <TextBlock HorizontalAlignment="Center" TextAlignment="Center" Text="{Binding PrintProgress}" VerticalAlignment="Center"/>
                                                                            <telerikControls:RadProgressBar x:Name="PrintProgressBar" Grid.Row="1" Style="{StaticResource ProgressBarStyle}" Visibility="Collapsed"/>
                                                                        </Grid>
                                                                        <Grid Grid.Row="1">
                                                                            <Grid.ColumnDefinitions>
                                                                                <ColumnDefinition Width="*"/>
                                                                                <ColumnDefinition Width="auto"/>
                                                                                <ColumnDefinition Width="auto"/>
                                                                            </Grid.ColumnDefinitions>
                                                                            <telerikControls:RadButton Content="Print" Grid.Column="1" Command="{Binding PrintDocumentCommand}" Margin="5" Padding="10, 3" telerikControls:StyleManager.Theme="{StaticResource Theme}"/>
                                                                            <telerikControls:RadButton Content="Cancel" Grid.Column="2" Command="{Binding CancelPrintDocumentCommand}" Margin="5" Padding="10, 3" telerikControls:StyleManager.Theme="{StaticResource Theme}"/>
                                                                        </Grid>
                                                                    </Grid>
                                                                </telerik:DialogBox>
Regards,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
General Discussions
Asked by
Rob
Top achievements
Rank 1
Answers by
Steve
Telerik team
David
Top achievements
Rank 1
Peter
Telerik team
Share this question
or