This question is locked. New answers and comments are not allowed.
AutoEdit does not seem to be working for me
<
telerik:RadWindow
x:Class
=
"agControls.DateRangeSelector"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:dataFormToolkit
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
xmlns:local
=
"clr-namespace:agControls"
Header
=
"Report Range"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
telerik:RadWindow.Resources
>
<
local:DataRangeSelectorInput
x:Key
=
"DesignData"
/>
</
telerik:RadWindow.Resources
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadDataForm
CommitButtonContent
=
"Report"
x:Name
=
"dfRangeSelector"
CommandButtonsVisibility
=
"Commit,Edit"
CurrentItem
=
"{StaticResource DesignData}"
AutoEdit
=
"True"
>
</
telerik:RadDataForm
>
</
Grid
>
Imports
System.Windows.Data
Imports
Telerik.Windows.Controls
Imports
System.ComponentModel
Imports
System.ComponentModel.DataAnnotations
Imports
System.Collections.ObjectModel
Imports
agClassLibrary
Imports
System.Linq
Imports
System.Runtime.CompilerServices
Public
Class
DataRangeSelectorInput
Inherits
agDataClassBase
<Display(Name:=
"Start Date"
, Description:=
"Report Starting Date"
, Prompt:=
"Start Date"
)> _
Public
Property
StartDate()
As
Nullable(Of
Date
)
Get
Return
_StartDate
End
Get
Set
(
ByVal
value
As
Nullable(Of
Date
))
_StartDate = value
FirePropertyChanged(
"StartDate"
)
End
Set
End
Property
Protected
_StartDate
As
Nullable(Of
Date
) =
Nothing
<Display(Name:=
"End Date"
, Description:=
"EndDate"
)> _
Public
Property
EndDate()
As
Nullable(Of
Date
)
Get
Return
_EndDate
End
Get
Set
(
ByVal
value
As
Nullable(Of
Date
))
_EndDate = value
FirePropertyChanged(
"EndDate"
)
End
Set
End
Property
Protected
_EndDate
As
Nullable(Of
Date
) =
Nothing
End
Class
thanks
dco