<
selector:CTS
x:Key
=
"CTS"
DataTemplate1
=
"{StaticResource SomeThing}"
DateTemplate2
=
"{StaticResource SomeThing2}"
></
selector:CTS
>
<
telerik:RadPane
x:Name
=
"FiltersPane"
ContentTemplateSelector
=
"{StaticResource CTS}"
Content
=
"{Binding Data, Mode=TwoWay}"
>
<
DataTemplate
x:Key
=
"SomeThing"
>
<
vw:aView
DataContext
=
"{Binding}"
></
vw:aView
>
</
DataTemplate
>
<
telerik:RadPane
x:Name
=
"FiltersPane"
ContentTemplate
=
"{StaticResource SomeThing}"
Content
=
"{Binding Data, Mode=TwoWay}"
>
<telerik:RadDocking x:Name="radDockingst" HasDocumentHost="False" Background="Transparent">
<telerik:RadSplitContainer x:Name="radSplitContainerst" Orientation="Vertical">
<telerik:RadPaneGroup>
<telerik:RadPane Header="Pane Left 1" >
<telerik:RadGridView Height="auto" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" telerikControls:StyleManager.Theme="Office_Blue" Margin="0,5,0,0" x:FieldModifier="public" x:Name="radGridRighe" FilteringMode="FilterRow" FontSize="11" RowHeight="18" CanUserSortGroups="True" CanUserSortColumns="True" CanUserSelect="True" AlternationCount="1" FontFamily="Tahoma" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" IsReadOnly="True" Grid.Row="0" IsManipulationEnabled="True" />
</telerik:RadPane>
</telerik:RadPaneGroup>
<telerik:RadPaneGroup Background="Transparent">
<telerik:RadPane Header="Pane Left 2" Background="Transparent">
<Grid x:FieldModifier="public" Name="GridStandard">
<Grid.RowDefinitions>
<RowDefinition Height="0"/>
<RowDefinition Height="0"/>
</Grid.RowDefinitions>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
public
class
RowViewModel : INotifyPropertyChanged
{
public
RowViewModel(Deal deal)
{
Deal = deal;
}
public
Deal Deal {
get
;
private
set
; }
public
event
PropertyChangedEventHandler PropertyChanged;
public
void
UpdateBookingStatus()
{
Deal.IsBooked =
true
;
Deal.BookingTime = DateTime.UtcNow;
OnPropertyChanged(
"Deal"
);
}
protected
virtual
void
OnPropertyChanged(
string
propertyName)
{
var handler = PropertyChanged;
if
(handler !=
null
)
handler(
this
,
new
PropertyChangedEventArgs(propertyName));
}
}
public
class
Deal
{
public
string
Id {
get
;
private
set
; }
public
DateTime ReceivedTime {
get
;
private
set
; }
public
DateTime? BookingTime {
get
;
set
; }
public
bool
IsBooked {
get
;
set
; }
public
Deal(
string
id, DateTime receivedTime)
{
Id = id;
ReceivedTime = receivedTime;
}
}
OnPropertyChanged(
"Deal"
)
event and update all columns using that property?