This is a migrated thread and some comments may be shown as answers.

Assembly for GridViewEditorPresenterTemplate

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gaoming
Top achievements
Rank 1
Gaoming asked on 03 Mar 2017, 09:19 PM

I want to change the style of selected cell of RadGridView in my WPF form. I found the following style from RadGridView documentation and I used it.

<Style TargetType="{x:Type telerik:GridViewEditorPresenter}"><Setter Property="Template" Value="{StaticResource GridViewEditorPresenterTemplate}"/><Setter Property="Padding" Value="5"/></Style>

However, I got the warning error "Resource GridViewEditorPresenterTemplate is not found."

Do I need to include some assemblies in my xaml file?

Also, in Excel, if I use mouse to select a range of cells, there is a solid black border for all the selected ranges, can we do the same for RadGridView selected cells?

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Mar 2017, 05:22 PM
Hello Gaoming Fu,

I assume that you are receiving this error because you are using standard binaries instead of the NoXAML ones with implicit styles. In such scenario, there simply is no ControlTemplate with such x:Key except if you have defined such by yourself. In order to get familiar with the Implicit Styles topic, please, check the relevant article from our documentation. You may also find the Difference implicit/non-implicit themes forum thread useful.

As to the requirement in particular, note, that you do not need to modify the template of GridViewEditorPresenter, as it is responsible for the cell being in edit mode. For styling the selected cell, please, check out the Change RadGridView current cell focus style forum thread. In addition, you can review the Styling Cells article from RadGridView's online help.

I hope I've managed to clarify your concern. Feel free to approach me in case further assistance is needed.

Best Regards,
Stefan X1
Telerik by Progress
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.
Tags
General Discussions
Asked by
Gaoming
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or