Hello,
Im using the RadDataForm Control together with the RadGrid Control. They both are based on the same collection of type
QueryableCollectionView. The objects in the collection are class based objects, the class implements IEditableObject, INotifyPropertyChanged,IDataErrorInfo intrrfaces. My problem is that I want to hide the Commit and the Cancel button but only when
RadDataForm is in ReadOnlyMode, is this possible do this in other way than implementing my own buttons?
Also is it possible to scroll to the new added row of the grid when Im adding it using RadDataForms add button ?
Regards,
Im using the RadDataForm Control together with the RadGrid Control. They both are based on the same collection of type
QueryableCollectionView. The objects in the collection are class based objects, the class implements IEditableObject, INotifyPropertyChanged,IDataErrorInfo intrrfaces. My problem is that I want to hide the Commit and the Cancel button but only when
RadDataForm is in ReadOnlyMode, is this possible do this in other way than implementing my own buttons?
<telerik:RadDataForm.ReadOnlyTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height=
"Auto"
/>
<RowDefinition Height=
"Auto"
/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=
"Auto"
/>
<ColumnDefinition Width=
"Auto"
/>
</Grid.ColumnDefinitions>
<Label Grid.Row=
"0"
Grid.Column=
"0"
Width=
"40"
Content=
"Key"
IsTabStop=
"False"
/>
<Label Grid.Row=
"1"
Grid.Column=
"0"
Width=
"40"
Content=
"Value"
IsTabStop=
"False"
/>
<TextBox Grid.Row=
"0"
Grid.Column=
"1"
Width=
"170"
Height=
"23"
Foreground=
"Black"
Text=
"{Binding Key}"
IsTabStop=
"False"
IsEnabled=
"False"
TextWrapping=
"Wrap"
IsReadOnly=
"True"
/>
<TextBox Grid.Row=
"1"
Grid.Column=
"1"
Width=
"170"
Height=
"23"
Foreground=
"Black"
Text=
"{Binding Value}"
IsTabStop=
"False"
TextWrapping=
"Wrap"
IsEnabled=
"False"
IsReadOnly=
"True"
/>
</Grid>
</DataTemplate>
</telerik:RadDataForm.ReadOnlyTemplate>
Also is it possible to scroll to the new added row of the grid when Im adding it using RadDataForms add button ?
Regards,