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

URGENT : Please help me !

4 Answers 76 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 26 Feb 2009, 07:22 PM

I'm using the Q3 2008 version of the RadCalendar control and am facing multiple issues:

* Set the Max, Min Date and Selected dates on load and populate a grid based on the selected date -- works fine.
* Change the selected date on the datepicker using the popup -- grid is refreshed ok with data for new date
* When I enter an invalid date, it execute the js function handling the OnError  *twice* as a result of which the alert is popped up twice to the user.
* After handling the validation error using OnError, when I enter a valid date and hit enter it fires the SelectedDateChanged event but *not* if I use the popup. What can I do to ensure that the control is again in a valid state and the popup selection works?

NOTE: I'm using the RadAjaxManager to update the grid data based on the date selection made

Thanks

Snippets enclosed:

 

 

<telerik:RadDatePicker ID="MMDDatePicker"

 

 

runat="server"

 

 

Skin="Office2007"

 

 

Width="90px"

 

 

 

 

AutoPostBack="true">

 

 

<DateInput runat="server" ClientEvents-OnError="OnError"></DateInput>

 

 

</telerik:RadDatePicker>

 

 

 

 

function OnError(sender, args)

 

{

 

var datePicker = $find("<%= MMDDatePicker.ClientID %>");;

 

 

var date = datePicker.get_selectedDate();

 

 

alert(

'Invalid date or date is not with in available date range of ' +

 

datePicker.get_minDate().format(

"d") + ' and ' +

 

datePicker.get_maxDate().format(

"d") );

 

 

return false;

 

}

 

 

4 Answers, 1 is accepted

Sort by
0
Arun
Top achievements
Rank 1
answered on 26 Feb 2009, 10:37 PM
Telerik Team ---> can you suggest a workaround ?

Thanks
0
Accepted
Pavlina
Telerik team
answered on 03 Mar 2009, 02:35 PM
Hello Arun,

We will need some additional time to investigate the matter. We will postback in this thread once we come up with results.
Thank you in advance for your understanding and patience.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Arun
Top achievements
Rank 1
answered on 04 Mar 2009, 05:45 PM
Pavlina/Telerik -

Any feedback from your findings?

Thanks
- Arun
0
Pavlina
Telerik team
answered on 07 Mar 2009, 05:12 PM

Hello Arun,

Our developers has been notified about the issue, thus they should look into it after the Q1 2009 release.

Please excuse us for inconvenience caused.

All the best,

Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Arun
Top achievements
Rank 1
Answers by
Arun
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or