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

UpdateCommand fires for ASP:Calendar but not for Rad:RadCalendar?

1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Julian asked on 17 Feb 2009, 06:30 PM
I have a radGrid that is using Inline Edit. The issue here is that I'm currently using a asp:Calendar control but would like to use the rad:RadCalendar control. However when I simply replace the ASP one with the radCalendar the updateCommand no longer fires when clicking update in the current row that is in edit mode? Very strange.

Here is the Code and I've shown both Calendar controls here. The radCalendar control is currently commented out.


<rad:RadGrid ID="holidayRadGrid" AllowPaging="True" 
                    AllowSorting="True" GridLines="Horizontal" HorizontalAlign="Center" ShowFooter="true" 
                    ShowStatusBar="true" EnableAJAX="false" EnableAJAXLoadingTemplate="True" LoadingTemplateTransparency="25" 
                    AutoGenerateColumns="False" Skin="Grid" SkinsPath="~/App_Themes/VertexDefault" OnNeedDataSource="holidayRadGrid_NeedDataSource" 
                    OnUpdateCommand="holidayRadGrid_UpdateCommand" PageSize="18" runat="server"
                    <MasterTableView DataKeyNames="HolidayID,HolidayYear,HolidayDate,HolidayName" EditMode="InPlace" TableLayout="Auto" AllowNaturalSort="false" 
                            <rad:GridEditCommandColumn UniqueName="EditCommandColumn" AutoPostBackOnFilter="false" HeaderStyle-Width="10px" /> 
                            <rad:GridBoundColumn HeaderStyle-Width="60px" DataField="HolidayName" HeaderText="Holiday" 
                                SortExpression="HolidayName" UniqueName="HolidayName" ReadOnly="true" /> 
                            <rad:GridTemplateColumn HeaderStyle-Width="100px" DataField="HolidayDate"   
                                SortExpression="HolidayDate" UniqueName="HolidayDate" > 
                                    <asp:Label ID="holidayDateLabel" Text='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate.ToString() : String.Format("{0:MM/dd/yyyy}", Eval("HolidayDate")) %>' runat="server" /> 
                                   <asp:Calendar ID="holidayDateCalendar" SelectedDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>'  VisibleDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>' runat="server" /> 
                                   <%--<rad:RadCalendar ID="holidayDateCalendar" AutoPostBack="true" EnableMultiSelect="false" SelectedDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>'  VisibleDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>' runat="server" />--%> 
                            <rad:GridBoundColumn DataField="HolidayID" UniqueName="HolidayID" ReadOnly="true" Display="false" /> 
                            <rad:GridBoundColumn DataField="HolidayYear" UniqueName="HolidayYear" ReadOnly="true" Display="false" /> 
                    <ClientSettings EnablePostBackOnRowClick="true"
                                <ClientEvents OnGridCreated="holidayRadGridCreated" OnRowContextMenu="holidayRadGridRowContextMenu" /> 

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 20 Feb 2009, 04:06 PM
Hello Julian,

We tried to recreate the issue in several local tests but unfortunately to no avail. To progress in our investigation, is it possible for you to isolate a stripped working demo, representing the abnormality, and send it attached to a regular support ticket? We will test it locally and will get around to you with our findings.

Kind regards,
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.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question