Hi Guys,
I have an ascx control (DNN module) with the RadGrid, RadAjaxManager and ASP.NET Timer controls.
The grid contains datetime column and edit form with the RadTimePicker control.
All looks great until I set the grid as a control to be updated by the ajax manager.
In this case, when the edit form is opened, there's no way to open the timer picker view. It doesn't appear by some reason.
I'm just wondering how to get it working. You help is highly appreciated.
Code snippet:
Thank you for you help!
I have an ascx control (DNN module) with the RadGrid, RadAjaxManager and ASP.NET Timer controls.
The grid contains datetime column and edit form with the RadTimePicker control.
All looks great until I set the grid as a control to be updated by the ajax manager.
In this case, when the edit form is opened, there's no way to open the timer picker view. It doesn't appear by some reason.
I'm just wondering how to get it working. You help is highly appreciated.
Code snippet:
<asp:Panel ID="Panel1" runat="server">
<asp:Timer ID="tmrActiveCampaigns" runat="server" Interval="10000" OnTick="Timer1_Tick" Enabled="false" />
</asp:Panel>
<div>
<div>
<rad:RadAjaxManager ID="ajaxManager" runat="server">
<AjaxSettings>
<rad:AjaxSetting AjaxControlID="ajaxManager">
<UpdatedControls>
<rad:AjaxUpdatedControl ControlID="tmrActiveCampaigns" LoadingPanelID="AjaxLoadingPanel" />
</UpdatedControls>
</rad:AjaxSetting>
</AjaxSettings>
</rad:RadAjaxManager>
...
<rad:RadGrid ID="grdActiveCampaigns" runat="server" ... >
<MasterTableView DataKeyNames="Id,TriggerId" GridLines="None" Width="100%" >
<Columns>
<rad:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditButton" />
<rad:GridDateTimeColumn DataField="TriggerDate" HeaderText="Scheduled Date" UniqueName="TriggerDate" ItemStyle-Wrap="false" />
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table4" cellspacing="1" cellpadding="1" width="100%" border="0" class="module">
<tr>
<td align="right">End Time: </td>
<td><rad:RadTimePicker Skin="Telerik" runat="server" ID="TriggerDate" /></td>
</tr>
</table>
<br /><br />
</FormTemplate>
</EditFormSettings>
</MasterTableView>
</rad:RadGrid>
</div>
</div>
<asp:Timer ID="tmrActiveCampaigns" runat="server" Interval="10000" OnTick="Timer1_Tick" Enabled="false" />
</asp:Panel>
<div>
<div>
<rad:RadAjaxManager ID="ajaxManager" runat="server">
<AjaxSettings>
<rad:AjaxSetting AjaxControlID="ajaxManager">
<UpdatedControls>
<rad:AjaxUpdatedControl ControlID="tmrActiveCampaigns" LoadingPanelID="AjaxLoadingPanel" />
</UpdatedControls>
</rad:AjaxSetting>
</AjaxSettings>
</rad:RadAjaxManager>
...
<rad:RadGrid ID="grdActiveCampaigns" runat="server" ... >
<MasterTableView DataKeyNames="Id,TriggerId" GridLines="None" Width="100%" >
<Columns>
<rad:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditButton" />
<rad:GridDateTimeColumn DataField="TriggerDate" HeaderText="Scheduled Date" UniqueName="TriggerDate" ItemStyle-Wrap="false" />
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table4" cellspacing="1" cellpadding="1" width="100%" border="0" class="module">
<tr>
<td align="right">End Time: </td>
<td><rad:RadTimePicker Skin="Telerik" runat="server" ID="TriggerDate" /></td>
</tr>
</table>
<br /><br />
</FormTemplate>
</EditFormSettings>
</MasterTableView>
</rad:RadGrid>
</div>
</div>
Thank you for you help!