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

Jquery Calendar Inside a radgrid

4 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vvamc
Top achievements
Rank 1
Vvamc asked on 27 Jan 2014, 04:28 PM
Hi ,

I wanted to have a column with J-query calendar and i am not able to achieve this using rad grid .But  the normal grid i am able to assign it with the class name. Can you help me out.

Thanks 
Vk

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jan 2014, 09:18 AM
Hi,

Please try the following code snippet to show JQuery DatePicker in RadGrid.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false"                                        DataSourceID="SqlDataSource1">
    <MasterTableView>
        <Columns>
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                    <input type="text" id="datepicker" value='<%# Eval("OrderDate") %>'>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

JavaScript:
</script>
</script>
    rel="Stylesheet" type="text/css" />
<script type="text/javascript">
    $(function () {
        $("[id$=datepicker]").datepicker({
            showOn: 'button',
            buttonImageOnly: true,
        });
    });
</script>

Hope this will helps you.
Thanks,
Shinu.
0
Vvamc
Top achievements
Rank 1
answered on 28 Jan 2014, 02:30 PM
Thanks a lot shinu.It works perfectly.
0
Karu
Top achievements
Rank 1
answered on 30 Jun 2014, 09:48 AM
 <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Date" UniqueName="R_Date" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="100px" DatePopupButton-Visible="false"
                                        ShowPopupOnFocus="true" DbSelectedDate='<%# Bind("R_Date") %>'>
                                        <DateInput ID="DateInput1" runat="server" DateFormat="MM/dd/yyyy" onkeydown="keyDown(this, event)">
                                        </DateInput>
                                    </telerik:RadDatePicker>                                    
                                </ItemTemplate>
                            </telerik:GridTemplateColumn> I am using Telerik Rad datepicker to showin the grid . thats working fine. But problem is - Export to PDF am not able to get the DatePicker value. 


0
Eyup
Telerik team
answered on 03 Jul 2014, 10:27 AM
Hello Karu,

In addition to the suggestion in this post:
http://www.telerik.com/forums/problem-with-export-to-excel-with-template-columns-data-not-displaying#864sWWuHPkCNUJgfy_Usag

I am sending a sample RadGrid web site to demonstrate how you can achieve the requested functionality. Please run the attached application and let me know if it helps you.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Vvamc
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vvamc
Top achievements
Rank 1
Karu
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or