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

custom controls inheriting from telerik base controls

1 Answer 198 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 07 Apr 2011, 03:51 PM
Custom Controls:
public class CustomGridView : RadGridView
    {
        public CustomGridView()
        {
        }
          
    }
  public class RadGridViewCommands
    {
  
    }
  
  
<framework:CustomGridView x:Name="gvCustomerOrder" ItemsSource="{Binding Orders}" 
               CanUserDeleteRows="{Binding IsChecked, Mode=TwoWay, ElementName=CanUserDeleteRowsCheckBox}"
               IsReadOnly="{Binding IsChecked, Mode=TwoWay, ElementName=IsReadOnlyCheckBox}" 
               SelectionMode="Extended" VerticalAlignment="Stretch" AutoGenerateColumns="False">
                <framework:CustomGridView.Columns>
                    <framework:CustomGridViewToggleRowDetailsColumn/>
                    <framework:CustomGridViewSelectColumn x:Name="gvcSelect"/>
                    <framework:CustomGridViewDataColumn DataMemberBinding="{Binding Name" Header="S.no" />
                </framework:RTPOGridView.Columns>
 </framework:RTPOGridView>
  
<Button Content=" Delete" Style="{StaticResource GreyButtonStyle}" Command="framework:RadGridViewCommands.Delete" CommandTarget="{Binding ElementName=gvCustomerOrder}"/>
  
  
But In Run Time it gives an Error:
'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '141' and line position '60'
Hi,
We are using a custom controls inheriting from telerik base controls.
E.g. In case of datagrid,(Please find attched code Block), Command property is not accesible. It gives an Error.
We use a MVVM Pattern.
Please help on this.

1 Answer, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 1
answered on 09 Apr 2011, 02:37 PM
Issue is resolved. Its because of reference could not found in view load.
Tags
GridView
Asked by
Rahul
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 1
Share this question
or