4 Answers, 1 is accepted
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:
JavaScript:
Hope this will helps you.
Thanks,
Shinu.
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 src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"
type=
"text/javascript"
>
</script>
<script src=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"
type=
"text/javascript"
>
</script>
rel=
"Stylesheet"
type=
"text/css"
/>
<script type=
"text/javascript"
>
$(
function
() {
$(
"[id$=datepicker]"
).datepicker({
showOn:
'button'
,
buttonImageOnly:
true
,
buttonImage:
'http://docs.intersystems.com/cache20102/csp/docbook/images/ddd_icon_add_control_date_picker.png'
});
});
</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.
<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
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
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.