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

[Solved] how to change the label in RadGridView "Drag a Column header and drop it here to group by that colunm" ?

4 Answers 686 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jtby
Top achievements
Rank 1
jtby asked on 10 Jul 2009, 02:28 PM
how to change the label in  RadGridView "Drag a Column header and drop it here to group by that colunm" ?

... tried below but wrappanel is not available, where does that come from?

 

 

<Grid.Resources>

 

 

 

<Style x:Key="alternateRowStyle" TargetType="gridView:GridViewRow" >

 

 

 

<Setter Property="Background" Value="#F7F3F7" />

 

 

 

</Style>

 

 

 

<Style x:Key="primaryRowStyle" TargetType="gridView:GridViewRow" >

 

 

 

<Setter Property="Background" Value="#CECFD6" />

 

 

 

</Style>

 

 

 

<Style TargetType="{x:Type gridViewGridViewGroupPanel}">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="{x:Type telerik:GridViewGroupPanel}">

 

 

 

<Grid Background="Transparent">

 

 

 

<Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.6" />

 

 

 

<Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

 

 

 

<WrapPanel: Margin="-2,0,0,0">

 

 

 

<ItemsPresenter x:Name="itemsPresenter" Margin="0,10,10,0" />

 

 

 

</WrapPanel>

 

 

 

<TextBlock Text="Some text." Margin="10, 0, 0, 0" Foreground="#7F000000" IsHitTestVisible="False" VerticalAlignment="Center" Visibility="{TemplateBinding HasItems, Converter={StaticResource invertedBooleanConverter}}" />

 

 

 

</Grid>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

 

 

 

 

</Grid.Resources>

 

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 10 Jul 2009, 03:08 PM
Hello jtby,

You can use this demo as a reference:
http://demos.telerik.com/silverlight/#GridView/Localization

Best wishes,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Marc Roussel
Top achievements
Rank 1
answered on 08 Dec 2009, 08:07 PM
Sir, sorry but I don't understand.
After looking at amm the code example on this link, I didn't find your line of code that change the text of the GridViewGroupPanel
Does that mean there's nothing like

Grid.GridViewGroupPanel.Header = "Please let us change the GroupPanel text by a simple property ?"
0
Vlad
Telerik team
answered on 09 Dec 2009, 07:27 AM
Hi,

 Here is the code:

/// <summary>
        ///   Looks up a localized string similar to Ziehen Sie der Spaltenkopf und ablegen er hier, um es dieser Spalte nach zu gruppieren..
        /// </summary>
        internal static string GridViewGroupPanelText {
            get {
                return ResourceManager.GetString("GridViewGroupPanelText", resourceCulture);
            }
        }

If you do not want to use Silverlight localization technique demonstrated in this example you can simply redefine the grid group panel template in Blend and place your own text/controls.

You can redefine template also using GroupPanelStyle property of the grid.


Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anne Lyon
Top achievements
Rank 1
answered on 04 Mar 2011, 12:54 PM

Deleted my post as I found the answer in the Telerik UserGuide under Localization 

 

Tags
GridView
Asked by
jtby
Top achievements
Rank 1
Answers by
Missing User
Marc Roussel
Top achievements
Rank 1
Vlad
Telerik team
Anne Lyon
Top achievements
Rank 1
Share this question
or