BasedOn="{StaticResource GridViewRowStyle}"

4 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 09 Aug 2013 Link to this post

    Using 2013.Q2.SP1

    I am trying to use the Drag and Drop example in my application and it uses the style below. However, when I run my application I get an error because of the BasedOn="{StaticResource GridViewRowStyle}". Where is this style? I could not find it in the VS 2012 samples. 

    Error Message:
    {"Cannot find resource named 'GridViewRowStyle'. Resource names are case sensitive."}

    <Style TargetType="telerik:GridViewRow" x:Key="OrderItemStyle" BasedOn="{StaticResource GridViewRowStyle}">
                <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
                <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 12 Aug 2013 Link to this post


    It seems that you do not use Implicit Styles, but you try to set the BasedOn attribute. Please remove it.
    I would recommend you to also check our online documentation here for a further reference.

    Hope this helps.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Robert
    Robert avatar
    32 posts
    Member since:
    Apr 2011

    Posted 04 Jan 2016 in reply to Dimitrina Link to this post

    Using 2015 Q3 components, I get the same error when trying to duplicate the code the DragAndDrop.WPF project in the ExampleCS_WPF solution.

    The advice given above is confusing, this 'BasedOn ' usage is verbatim from the example code.

    I  found this class in the GridView example, which may be the clue.  Any guidance here would be helpful.


  4. Stefan
    Stefan avatar
    1073 posts

    Posted 06 Jan 2016 Link to this post

    Hi Robert,

    Basing a Style depends on whether you are using NoXAML binaries or standard ones. As already suggested by my colleague, since the example uses NoXAML assemblies and you have referenced the standard ones, you should simply remove the BasedOn attribute.

    Please check the help topic referred in the previous post for more information on the matter.

    Stefan X1
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top