
<telerik:GridViewDataColumn Name="GridColumnSelector" Header=""> <telerik:GridViewDataColumn .CellTemplate> <DataTemplate> <RadioButton Name="rdCheck" GroupName="RadioSelectors" /> </DataTemplate> </telerik:GridViewDataColumn .CellTemplate> </telerik:GridViewDataColumn >
public
class TngButton : TngBaseTemplateControl
{
static TngButton()
{
DefaultStyleKeyProperty.OverrideMetadata(
typeof(TngButton), new FrameworkPropertyMetadata(typeof(TngButton)));
}
#endregion
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
RadButton btn = this.Template.FindName("PART_BaseControl", this) as RadButton;
ContentPresenter content = this.Template.FindName("PART_ContentControl", this) as ContentPresenter;
btn.Hover+=new EventHandler<Telerik.Windows.RadRoutedEventArgs>(btn_Hover);
}
void btn_Hover(object sender, EventArgs e)
{
// code to change the image at the hover .
}
i want to have two properties like 'originalimage' and 'hoverimage" which can be changed on mover hover action
can you help me in how to setting the logic for this ?
regards,
Srinivas
Hi,
I would like to select all the rows that contain a true value in a specific column using XAML. I am able to do this in code like so:
grid.SelectedItems.Clear();
foreach (var item in grid.Items.Cast<MyBusinessObject>().Where(c => c.IsSelected))
grid.SelectedItems.Add(item);
But I would rather have the row selection directly bound to the underlying object. Is this possible?
Thanks,
Jose
Hello,
I want to apply a style to a item container of a RadTreeListView.
I proceed like this :
1.<telerikGridView:RadTreeListView.ItemContainerStyle> 2. <Style TargetType="{x:Type ???}"> 3. <Setter .... /> 4. </Style> 5.</telerikGridView:RadTreeListView.ItemContainerStyle> but I don't know what's the target type.
Could you help me ?
Thanks in advance.
Patrick