This is a migrated thread and some comments may be shown as answers.
Html.Telerik().DatePickerFor() not supporting in Version 2010.2.825.235
3 Answers 93 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ratna Karthik Chandu M
Top achievements
Rank 1
Ratna Karthik Chandu M asked on 14 Sep 2010, 07:36 AM
I am using the latest version of Telerix MVC "Version 2010.2.825.235" and when using the DataBinding like

<%: Html.Telerik().DatePickerFor(model => model.InventoryTypeTemplateInstance.ActivationDate)%>

In webpage instead of displaying the DatePicker Control ,  it is displaying like below:
  
<div class="t-widget t-datepicker"
id="InventoryTypeTemplateInstance_ActivationDate"><input class="t-input"
id="InventoryTypeTemplateInstance_ActivationDate-input"
name="InventoryTypeTemplateInstance.ActivationDate"
title="InventoryTypeTemplateInstance.ActivationDate" value="9/15/2010"
/><a class="t-link t-icon t-icon-calendar" href="#" tabindex="-1"
title="Open the calendar">select date</a></div

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 14 Sep 2010, 11:31 AM
Hello Ratna Karthik Chandu M,

Currently strongly-typed methods which creates Telerik UI components does not support "<%:" tag. This will be included for the next official release of the Telerik components for ASP.NET MVC.

I will suggest you using DatePicker().Name() or just change server tag "<%:" to "<%=".

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ratna Karthik Chandu M
Top achievements
Rank 1
answered on 14 Sep 2010, 12:47 PM
Hello Georgi Krustev,
<%= Html.Telerik().DatePickerFor(model => model.InventoryTypeTemplateInstance.ActivationDate)%> is working fine. 

But can u explain me the difference between using server tags "<%:"  and  "<%=" , which server tag should be used in what scenario.

Thank U.
0
Accepted
Georgi Krustev
Telerik team
answered on 14 Sep 2010, 01:41 PM
Hello Ratna Karthik Chandu M,

Check this link - Html Encoded Code Expressions section.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Date/Time Pickers
Asked by
Ratna Karthik Chandu M
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Ratna Karthik Chandu M
Top achievements
Rank 1
Share this question
or