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

change of calendar date, need dropdown

1 Answer 87 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
pandu
Top achievements
Rank 1
pandu asked on 19 Mar 2009, 04:53 PM

Hi,
I have a Radgrid and in EDIT Template section, I have a RadTimePicker and Dropdown list..

On selecteddatechange event I am filling the values to the Dropdown. ( with Autopostbackcontrol="both")..

But, with this AutoPostbackcontrol, entire page getting posted and loosing other parameters in the page (like images, and other variables).. I have used ajax based Raddropdown, but the same issue..

Do you have any suggestion, how to work around this???  I need to fill the dropdown based on change of date..


Here is the ASPX section...


<EditItemTemplate>
                        <asp:Label ID="CutOffError" runat="server" Text=""></asp:Label>
                       
                        <rad:RadDateTimePicker ID="RadDateTimePicker_CutOffDate" SelectedDate='<%# DateTime.Parse(Eval("CutOffDateTime").ToString()) %>'

                                runat="server"
                               
                                Font-Names="Arial, Verdana, Tahoma"
                        ForeColor="Black" Style="border-color: #ececec;"
                        Width="130px"
                       
                                AutoPostBackControl="Both"  OnSelectedDateChanged="SelectedDateChange" >
                              
                                <TimeView ID="TimeView2" runat="server" Visible="TRUE"></TimeView>
                                <TimePopupButton Visible="false" />
                            
                             <DateInput ID="DateInput1" runat="server">
                            </DateInput>
                            <Calendar ID="Calendar1"
                                ShowRowHeaders ="false"
                                runat="server"   >
                            </Calendar>
                            </rad:RadDateTimePicker>
                     
                     
                                          
                                  <asp:DropDownList ID="DropDownListBatch"
                                 
                                 runat="server"
                                    
                        ForeColor="Black" Style="border-color: #ececec;" Width="70 px"
                 Font-Names="Arial, Verdana, Tahoma" Font-Size="X-Small"          
                        ></asp:DropDownList>       
                                   
                            <div style = "font-size: 8px;">
                        <asp:CheckBox ID="CheckBox_isEndOfDay" runat="server"
                        Checked ='<%# Eval("isEndOfDay") %>' Text ="End of Day" /></div>
                    </EditItemTemplate>       

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Mar 2009, 06:48 AM
Hello Pandu,

You can ajaxify your entire grid using an AjaxPanel or AjaxManager rather than using an ajaxified dropdownlist. Refer to the following documents which may help you in achieving the same:
Postback vs. AJAX
AJAX Manager
AJAX Panel

Thanks
Princy.
Tags
Calendar
Asked by
pandu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or