Unplanned
Last Updated: 09 Sep 2024 12:32 by ADMIN
Martin Ivanov
Created on: 11 Mar 2021 17:21
Category: GridView
Type: Feature Request
3
GridView: Add visual element under the last pinned row
Add a separator element under the last pinned row, similar to the frozen columns splitter. The visual could be e horizontal line shown at the bottom border of the row.
2 comments
ADMIN
Martin Ivanov
Posted on: 09 Sep 2024 12:32

Hello Jonas,

This can be done via the RowStyle property of RadGridView. You can set a different background based on the IsPinned value of the GridViewRow element. For example:

  <telerik:RadGridView.RowStyle>
      <Style TargetType="telerik:GridViewRow">
          <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsPinned, Converter={StaticResource PinnedToBackgroundConverter}}"/>
      </Style>
  </telerik:RadGridView.RowStyle>


public class PinnedToBackgroundConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        var isPinned = (bool)value;
        return isPinned ? Brushes.Green : Brushes.Transparent;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jonas
Posted on: 03 Sep 2024 08:51
It will be great to also have the possibility to change the pinned row background. Thank you