9 Answers, 1 is accepted
0
Hello Andi,
Yavor Georgiev
the Telerik team
You can easily do this. You just need to tweak GridViewRow's template a bit. When you extract the XAML in Blend, look for a Border with x:Name="PART_IndicatorPresenter". You can place anything you wish in it.
Greetings,Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Andi
Top achievements
Rank 2
answered on 26 Aug 2010, 10:18 AM
Is it possible to do this by runtime out of the C#-Code?
0
Hello Andi,
Yavor Georgiev
the Telerik team
You can try something like:
var border = row.ChildrenOfType<Border>().Where(b => b.Name ==
"PART_IndicatorPresenter"
).FirstOrDefault();
However, this can play merry hell with virtualization and can introduce numerous issues. I still strongly recommend the templating approach.
Regards,Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Andi
Top achievements
Rank 2
answered on 26 Aug 2010, 10:48 AM
ok, thank you.
0

Andi
Top achievements
Rank 2
answered on 09 Sep 2010, 01:50 PM
Ok, I've tried out differrent things but they all does not satisfy me.
Now I take the first column as read only, so I don't need to write into the Rowheader and I don't need the Rowheader. Is there a way to blank the Rowheader out?
Now I take the first column as read only, so I don't need to write into the Rowheader and I don't need the Rowheader. Is there a way to blank the Rowheader out?
0
Hi,
Vlad
the Telerik team
You can set RowIndicatorVisibility="Collapsed" to hide this.
All the best,Vlad
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Andi
Top achievements
Rank 2
answered on 09 Sep 2010, 03:14 PM
Great, thank you
0

Andrew
Top achievements
Rank 1
answered on 29 Mar 2011, 06:49 PM
I've made a new template for GridViewRow, but now I have an alignment problem (see image).
Here's the new indicator presenter in the new GridViewRow ControlTemplate:
How can I make the column headers aligned with their cells? Do I need to just set a fixed width on the border and match it in another template for the column headers (if so, where is that)?
I'd rather make the width of the row header auto-sized if possible, but I imagine that might not work well with row virtualization?
Here's the new indicator presenter in the new GridViewRow ControlTemplate:
<
Border
x:Name
=
"PART_IndicatorPresenter"
Background
=
"{StaticResource GridView_HeaderBackground}"
BorderThickness
=
"0"
Grid.Column
=
"0"
Grid.RowSpan
=
"3"
VerticalAlignment
=
"Stretch"
Visibility
=
"{TemplateBinding RowIndicatorVisibility}"
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation
=
"Vertical"
>
<
Grid
>
<
TextBlock
Foreground
=
"{StaticResource GridView_HeaderForeground}"
Text
=
"{Binding EmployeeName}"
/>
</
Grid
>
</
Border
>
How can I make the column headers aligned with their cells? Do I need to just set a fixed width on the border and match it in another template for the column headers (if so, where is that)?
I'd rather make the width of the row header auto-sized if possible, but I imagine that might not work well with row virtualization?
0

Andrew
Top achievements
Rank 1
answered on 29 Mar 2011, 08:18 PM
Ah, I bet I have to choose a fixed width and make sure it matches with the width of the indicator presenter in the ControlTemplate for GridViewHeaderRow. I'll give that a shot. Please let me know if you have anything to add. Thanks!