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

Getting error while dynamically update RadDatePicker

1 Answer 35 Views
Input
This is a migrated thread and some comments may be shown as answers.
Pravin Magdum
Top achievements
Rank 1
Pravin Magdum asked on 14 May 2010, 05:50 AM
hi all,

i have two datepicker on page viz. date1 and date2

i disable all dates in date2 which are less than date1 now it is always date1<date2

i use ondayrender(...,..) event for date2  and set date1's autopostback=true.. it works fine and

now i added radajaxmanager as 


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadDatePicker2"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadDatePicker1" /> 
                             <telerik:AjaxUpdatedControl ControlID="RadDatePicker2" /> 
                             
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

and now it wont work more :( plz help me 


1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 May 2010, 06:52 AM

Hello Pravin,

Another approach that you can try is, setting the MinDate property of RadDatePicker2 to the SelectedDate of RadDatePicker1 in the 'OnSelectedDateChanged'. Also set the AjaxSettings accordingly.

ASPX:

 
           <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">   
                <AjaxSettings>   
                    <telerik:AjaxSetting AjaxControlID="RadDatePicker1">   
                        <UpdatedControls>   
                             <telerik:AjaxUpdatedControl ControlID="RadDatePicker2" />                               
                        </UpdatedControls>   
                    </telerik:AjaxSetting>   
                </AjaxSettings>   
            </telerik:RadAjaxManager>  

-Shinu.

Tags
Input
Asked by
Pravin Magdum
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or