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

RadTimePicker in row grid

4 Answers 61 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Flavio
Top achievements
Rank 2
Flavio asked on 01 Dec 2010, 12:32 PM
I'm trying to use the RadTimePicker in a grid row in edit mode (Inplace or editform is the same) but if I click on popup button the table it's not show.

I've try to use the control stand-alone, not in the grid, and in this mode the control work correctly.

Thanks.
Flavio Dossena

Here the source used:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="WebUserControl.ascx.vb"
    Inherits="privato_WebUserControl" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
**** this work correctly
<telerik:RadTimePicker ID="RadTimePicker1" runat="server" Skin="Web20">
</telerik:RadTimePicker>
**** this work correctly
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"
    GridLines="None" AllowAutomaticUpdates="True" OnItemUpdated="RadGrid1_ItemUpdated"
    Skin="Sunset">
    <MasterTableView DataSourceID="ObjectDataSource1" DataKeyNames="seqGiorno" EditMode="InPlace">
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                <ItemStyle CssClass="MyImageButton" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="idGiorno" DataType="System.Int64" HeaderText="idGiorno"
                SortExpression="idGiorno" UniqueName="idGiorno" Visible="False" Display="False"
                Groupable="False" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="nomeGiorno" HeaderText="nomeGiorno" SortExpression="nomeGiorno"
                UniqueName="nomeGiorno" Groupable="False" ReadOnly="True">
            </telerik:GridBoundColumn>
            *** don't work
            <telerik:GridDateTimeColumn UniqueName="mattinoOraApertura" DataField="mattinoOraApertura"
                PickerType="TimePicker" HeaderText="Ora Inizio" DataType="System.TimeSpan">
            </telerik:GridDateTimeColumn>
            *****
            <telerik:GridTemplateColumn DataField="mattinoOraChiusura" DataType="System.TimeSpan"
                Groupable="False" HeaderText="mattinoOraChiusura" SortExpression="mattinoOraChiusura"
                UniqueName="mattinoOraChiusura">
                <EditItemTemplate>
                    *** don't work
                    <telerik:RadTimePicker ID="mattinoOraChiusuraTextBox" dbselectdate='<%# Eval("mattinoOraChiusura") %>'
                        runat="server">
                    </telerik:RadTimePicker>
                    ******
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="mattinoOraChiusuraLabel" runat="server" Text='<%# Eval("mattinoOraChiusura") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="seqGiorno" DataType="System.Int64" HeaderText="seqGiorno"
                SortExpression="seqGiorno" UniqueName="seqGiorno" Groupable="False" Display="False"
                ReadOnly="True" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="ricPrenotazione" HeaderText="ricPrenotazione"
                UniqueName="ricPrenotazione" EditFormColumnIndex="1">
            </telerik:GridCheckBoxColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True">
    </HeaderContextMenu>
</telerik:RadGrid>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="GetData" TypeName="myDataSetTableAdapters.tblGiorniAperturaAdapter"
    UpdateMethod="UpdateGiornoQuery">
    <UpdateParameters>
        <asp:Parameter Name="mattinoOraApertura" Type="DateTime" />
        <asp:Parameter Name="mattinoOraChiusura" Type="DateTime" />
        <asp:Parameter Name="ricPrenotazione" Type="Int32" />
        <asp:Parameter Name="Original_seqGiorno" Type="Int32" />
    </UpdateParameters>
</asp:ObjectDataSource> 

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 02 Dec 2010, 04:57 PM
Hello Flavio,

I could not reproduce the issue. Could you let me know how to do so in the attached sample?

Regards,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Flavio
Top achievements
Rank 2
answered on 02 Dec 2010, 07:47 PM
Hello Tsvetoslav,

with your simple grid project I've reproduced my issue. How can I send to you my testing project where you can see the problem ?
Replying to the post I can't attach a zip file with the project.

Thanks,
Flavio Dossena
0
Flavio
Top achievements
Rank 2
answered on 06 Dec 2010, 11:55 AM
Hello Tsvetoslav,

I've resolved this problem.
The error was in the position of the control RadAjaxManager: I've put it in the main page and append the RadAjaxManagerProxy in the webcontrol that contain the grid. So the radtimepicker work correctly.

Thank,
Flavio Dossena
0
Tsvetoslav
Telerik team
answered on 07 Dec 2010, 02:12 PM
Hello Flavio,

Glad to hear that you have found a solution.

Best wishes,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Calendar
Asked by
Flavio
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Flavio
Top achievements
Rank 2
Share this question
or