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.
Thanks,
Here is the Code and I've shown both Calendar controls here. The radCalendar control is currently commented out.
Thanks,
<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" |
BorderColor="Black"> |
<Columns> |
<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" > |
<ItemTemplate> |
<asp:Label ID="holidayDateLabel" Text='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate.ToString() : String.Format("{0:MM/dd/yyyy}", Eval("HolidayDate")) %>' runat="server" /> |
</ItemTemplate> |
<EditItemTemplate> |
<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" />--%> |
</EditItemTemplate> |
</rad:GridTemplateColumn> |
<rad:GridBoundColumn DataField="HolidayID" UniqueName="HolidayID" ReadOnly="true" Display="false" /> |
<rad:GridBoundColumn DataField="HolidayYear" UniqueName="HolidayYear" ReadOnly="true" Display="false" /> |
</Columns> |
</MasterTableView> |
<ClientSettings EnablePostBackOnRowClick="true"> |
<ClientEvents OnGridCreated="holidayRadGridCreated" OnRowContextMenu="holidayRadGridRowContextMenu" /> |
</ClientSettings> |
</rad:RadGrid> |