RadDatePicker giving Inner Exception

2 posts, 0 answers
  1. Abhi
    Abhi avatar
    38 posts
    Member since:
    Nov 2012

    Posted 17 Mar 2014 Link to this post

    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...............


  2. Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 18 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top