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

BasedOn="{StaticResource GridViewRowStyle}"

3 Answers 1008 Views
GridView
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 09 Aug 2013, 02:19 PM
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"/>
</Style>

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Aug 2013, 11:32 AM
Hello,

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.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Robert
Top achievements
Rank 1
answered on 05 Jan 2016, 05:13 AM

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.

Examples\GridView\FirstLook\RowStyleSelector.cs

0
Stefan
Telerik team
answered on 06 Jan 2016, 12:18 PM
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.

Regards,
Stefan X1
Telerik
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
Tags
GridView
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Robert
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or