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
Hi All,
I need some help to modify "Horizontal Bar" chart created using Portlet Factory. I have following problem in my chart
For your reference I have attached one image file with this post.
Please help me to resolve this.
Thanks in advance...
regards
Vikas
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
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
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