thanks
13 Answers, 1 is accepted
You can use CellTemplate property of GridViewColumn/GridViewDataColumn. Please check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/CellEditTemplate
<telerik:GridViewDataColumn HeaderText="Name" DataMemberBinding="{Binding Name}">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Button Content="Delete" />
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
Sincerely yours,
Vlad
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.

xmlns
:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
Here is my entire namespace definition just as an FYI:
<
UserControl xmlns:telerikMedia="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer"
xmlns:expressionLight="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.ExpressionLight"
xmlns:shinyBlue="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.ShinyBlue" xmlns:bureauBlack="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.BureauBlack" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
x:Class="ApprovedTitlesControl.Page" Background="Black"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
xmlns:display="clr-namespace:Cokkiy.Display;assembly=Cokkiy.Display.Carousel"
Width="auto" Height="auto" >
Thanks
Do you have our latest official release?
Regards,
Vlad
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.


thanks again.

thanks again.
You can get the row using our extension methods and the row DataContext is your business object:
GridViewRow row = ((Button)sender).ParentOfType<GridVIewRow>();
if(row != null)
{
Customer c = (Customer)row.DataContext;
}
Best wishes,
Vlad
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.

I have the following namespaces in the xaml.
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
I am not able to see CellTemplate under GridViewColumn or GridViewDataColumn. I see CellStyle, but that is not what I am looking for. What am I missing here?
Please check if you have our latest SL3 build:
http://www.telerik.com/account/latest-internal-builds.aspx
Best wishes,
Vlad
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.

I am using SL 4 with RadGridView but I could not find you extension method ParentOfType<T>
Did you remove it ?
Regards,
S
This method is part of Telerik.Windows.Controls namespace.
Best wishes,Vlad
the Telerik team


That template really doesn't seem to quite do what it needs to. I find that when I select the row, I can see an edit box behind the button, and if I click on it, the row goes into edit mode and I can type into that box. How do I put a button in the grid and disable editing for that cell?
(I tried setting IsReadOnly = true for the column, but when I did that, I did not get button clicks)