I have a GridViewToggleRowDetailsColumn in the RadGridView. Now I want two things.
Using down-arrow and up-arrow instead of plus and minus icon. The down-arrow is attached.
I want the icon stick on the top. Now it is in the middle vertically.
Thanks for the sample code help.
1 Answer, 1 is accepted
0
Accepted
Martin
Telerik team
answered on 16 Feb 2018, 02:04 PM
Hello,
You can create an implicit style and override the PlusMinusTemplate (which is the default template the button uses if the PresentationMode is not changed) of the GridViewToggleButton to create your custom button appearance. You can also use our new RadGlyph to visualize this kind of arrow out of the box (you would need to merge the dictionary mentioned in example 3 in our help article to access the glyphs as static resources, or you can get the string value directly from the cheatsheet):
You can change the setters for the color to match the theme that you have chosen. This template is for the Fluent theme. If you are using some completely different theme, you can find the default control template in the Themes.Implicit/<theme> folder in your installation path in the Telerik.Windows.Controls.GridView.xaml and modify it for your project's needs. Furthermore, you can try alignments or margins to position the arrow as needed.
Regards,
Martin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.