Assembly for GridViewEditorPresenterTemplate

2 posts, 0 answers
  1. Gaoming
    Gaoming avatar
    13 posts
    Member since:
    Mar 2017

    Posted 03 Mar 2017 Link to this post

    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?



  2. Stefan
    Stefan avatar
    1073 posts

    Posted 08 Mar 2017 Link to this post

    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.
Back to Top