This question is locked. New answers and comments are not allowed.
Hi Team,
I am facing a different issue with the RadDatePicker,
xaml code : -
<telerik:RadDatePicker Grid.Row="0" Grid.Column="7" Background="White" Width="150" HorizontalAlignment="Left" Height="26" SelectedDate=" {Binding StartDate, Mode=TwoWay}" />
<telerik:RadDatePicker Grid.Row="0" Grid.Column="11" Background="White" Width="150" HorizontalAlignment="Left" Height="26" SelectedDate=" {Binding EndDate, Mode=TwoWay}" />
In ViewModel,
private DateTime? _startDate = DateTime.Now.Date;
public DateTime? StartDate
{
get
{
return _startDate;
}
set
{
_startDate = value;
this.NotifyChanged("StartDate");
}
}
private DateTime? _endDate = DateTime.Now.Date;
public DateTime? EndDate
{
get
{
return _endDate;
}
set
{
_endDate = value;
this.NotifyChanged("EndDate");
}
}
When the Page Loads, Current Date will be displayed in both the and based on Date some search is going to happen, but If I keep on changing the One Date (not modifying the other), and If I make a DB call then it was throwing some exception stating that ("Operation makes the result invalid.Please the check the Inner Exception for details"). but my question is........it is absolutely working fine in local system..I am getting this error only if I deployed at live and I am not able to trace this........please guide me........how can I over come this...............
I am facing a different issue with the RadDatePicker,
xaml code : -
<telerik:RadDatePicker Grid.Row="0" Grid.Column="7" Background="White" Width="150" HorizontalAlignment="Left" Height="26" SelectedDate=" {Binding StartDate, Mode=TwoWay}" />
<telerik:RadDatePicker Grid.Row="0" Grid.Column="11" Background="White" Width="150" HorizontalAlignment="Left" Height="26" SelectedDate=" {Binding EndDate, Mode=TwoWay}" />
In ViewModel,
private DateTime? _startDate = DateTime.Now.Date;
public DateTime? StartDate
{
get
{
return _startDate;
}
set
{
_startDate = value;
this.NotifyChanged("StartDate");
}
}
private DateTime? _endDate = DateTime.Now.Date;
public DateTime? EndDate
{
get
{
return _endDate;
}
set
{
_endDate = value;
this.NotifyChanged("EndDate");
}
}
When the Page Loads, Current Date will be displayed in both the and based on Date some search is going to happen, but If I keep on changing the One Date (not modifying the other), and If I make a DB call then it was throwing some exception stating that ("Operation makes the result invalid.Please the check the Inner Exception for details"). but my question is........it is absolutely working fine in local system..I am getting this error only if I deployed at live and I am not able to trace this........please guide me........how can I over come this...............