I have grid cell using calendar. when I pick date from calendar, CellExitedEditMode fired and show value.
When I type date, event fires, but value is empty. Is there property to change that behavior?
Still using v9.2.
I use windows resources to create calendar:
<Style x:Key="WideCalendarStyle" TargetType="controls:Calendar"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFD3DEE8" Offset="0" /> <GradientStop Color="#FFD3DEE8" Offset="0.16" /> <GradientStop Color="#FFFCFCFD" Offset="0.16" /> <GradientStop Color="#FFFFFFFF" Offset="1" /> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFA3AEB9" Offset="0" /> <GradientStop Color="#FF8399A9" Offset="0.375" /> <GradientStop Color="#FF718597" Offset="0.375" /> <GradientStop Color="#FF617584" Offset="1" /> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="controls:Calendar"> <Grid x:Name="Root" HorizontalAlignment="Center"> <Grid.RenderTransform> <ScaleTransform ScaleX="1.15" ScaleY="1.15"/> </Grid.RenderTransform> <System_Windows_Controls_Primitives:CalendarItem x:Name="CalendarItem" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"> </System_Windows_Controls_Primitives:CalendarItem> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>
Thanks
Hello,
After investigating this further, our developers said that this is an issue in the DatePicker. The suggest the workaround discussed in this forum thread:
http://stackoverflow.com/questions/8451781/datepicker-doesnt-update-view-model-unless-focus-changes-to-another-control
Basically instead of using DatePicker's SelectedDate you can use its Text property. You can either use this workaround or as I suggested before you can use DateTimeColumn.
I have logged this with development under ID: 177467 and I have also created a support ticket on your behalf: CAS-141639-G5C1D1 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
Also I modified the sample, so now instead of TemplateColumn it uses DateTimeColumn and everything works as you want.
I downloaded latest version 14.1 to try and have same problem.
See project attached.
Unfortunately, we cannot upgrade at this time. Can you suggest work around?
I have been looking into your sample and I tested it with our latest version 14.1 and everything seems to work ok, so I can suggest you use it since version 9.2 is a retired version and we no longer implement features or provide fixes for it. Please let me know if you have further questions on this matter.
Looking forward fro your reply.