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

[Solved] RadGrid/RadTimePicker and AJAX

3 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexander Kho
Top achievements
Rank 1
Alexander Kho asked on 29 Oct 2009, 02:02 PM
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:

<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:&nbsp;&nbsp;</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!



3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Oct 2009, 07:52 AM
Hi,

By default, the RadTimeView is an embedded control in the RadTimePicker and RadDateTimePicker controls which displays as a popup. It is used seperately only in the case when you want to share  the Embedded Popup Controls  between two date pickers or time pickers.

So I would suggest adding a RadTimePicker  in the Form Template  and manipulating it accordingly.

Thanks,
Princy
0
Alexander Kho
Top achievements
Rank 1
answered on 30 Oct 2009, 10:52 AM
Hi Princy,
Thank you for the reply.

Sorry, maybe my question was not clear...
The problem is that the time picker pop-up window doesn't appear on the page. Thus, I'm not able to select values (can input them manually though).
The same issue with the RadDatePicker inside the grid when the grid is referenced in the RadAjaxManager.

Thanks in advance.
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2009, 10:05 AM
Hi,

Does this happen in FireFox ? They are existing  some issues with the RadDatePicker  control in FF.
Check out the forum links that discuss on the same....

http://www.telerik.com/community/forums/aspnet/calendar/popupbutton-doesn-t-work-in-firefox.aspx
http://www.telerik.com/community/forums/aspnet-ajax/calendar/firefox-datepicker.aspx

Thanks,
Shinu
Tags
Grid
Asked by
Alexander Kho
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Alexander Kho
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or