This is a migrated thread and some comments may be shown as answers.

RadDatePicker giving Inner Exception

1 Answer 15 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Abhi
Top achievements
Rank 1
Abhi asked on 17 Mar 2014, 12:09 PM
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...............


1 Answer, 1 is accepted

Sort by
0
Ventzi
Telerik team
answered on 18 Mar 2014, 09:20 AM
Hello Abhi,

It's seems that the issue you are currently facing is more an issue in your WebService and not in the RadDatePicker control. I could suggest you to check the endpoint in the web.config file. It's should point to your web site and not to localhost. If you've already did it, you could also check this Silverlight forum for possible solutions.

Hope this is helpful.

Regards,
Ventzi
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
DatePicker
Asked by
Abhi
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Share this question
or