This question is locked. New answers and comments are not allowed.
Stéphan Parrot
Top achievements
Rank 1
Stéphan Parrot
asked on 13 May 2010, 06:35 PM
Hi all,
I have a partial view that contains a Telerik DatePicker inside and this partial view gets loaded from a button on my main view which is an Ajax.ActionLink.
When the partial view gets rendered on screen, the DatePicker shows up but I can't get the date selector to show up by clicking the DatePicker textbox or it's button...
I've tried many things but couldn't get it to work...
Thanks,
Stéphan
I have a partial view that contains a Telerik DatePicker inside and this partial view gets loaded from a button on my main view which is an Ajax.ActionLink.
When the partial view gets rendered on screen, the DatePicker shows up but I can't get the date selector to show up by clicking the DatePicker textbox or it's button...
I've tried many things but couldn't get it to work...
Thanks,
Stéphan
6 Answers, 1 is accepted
0
Accepted
Hi Stéphan Parrot,
This help article will help.
Sincerely yours,
Atanas Korchev
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.
This help article will help.
Sincerely yours,
Atanas Korchev
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
Stéphan Parrot
Top achievements
Rank 1
answered on 13 May 2010, 08:09 PM
Scratch that!
I misinterpreted the article!
At step 7 of the MVC part, it says to register the telerik javascript required for the controls used and I thought I had to register them in the partial view when actually, it's in the main view page where it needs to be!
Now it's working!
Thanks and sorry for that!
Stéphan
Hi Atanas, I did try this but it's still not working.
In the article, it's for having a grid in a partial view which have mechanism to bind on the client which the DatePicker nor the Calendar component have.
A note in this article stipulates this:
Maybe I'm missing something but, I triple-checked everything and, got no luck so far...
Thanks,
Stéphan
I misinterpreted the article!
At step 7 of the MVC part, it says to register the telerik javascript required for the controls used and I thought I had to register them in the partial view when actually, it's in the main view page where it needs to be!
Now it's working!
Thanks and sorry for that!
Stéphan
Hi Atanas, I did try this but it's still not working.
In the article, it's for having a grid in a partial view which have mechanism to bind on the client which the DatePicker nor the Calendar component have.
A note in this article stipulates this:
| Important Note: |
|---|
| It is mandatory that the grid is bound client-side (either Ajax or WebService). Otherwise the grid will disappear after the first operation (changing the page or sorting a column). |
Maybe I'm missing something but, I triple-checked everything and, got no luck so far...
Thanks,
Stéphan
0
Yusuf
Top achievements
Rank 1
answered on 05 May 2011, 08:56 PM
Hello Stephen, have u been able to solve this particular problem? I have been having the same problem...I'd appreciate if u could help me with the solution, thanks.
0
Yusuf
Top achievements
Rank 1
answered on 05 May 2011, 09:00 PM
Hi, the solution here (http://www.telerik.com/help/aspnet-mvc/using-with-partial-views-loaded-via-ajax.html) does not seem to solve the problem...When the partialView loads,the datePicker and even clientside validation don't seem to work (I guess this means all javascript)...I as well have been looking all over google but there seems to be no solution...please could u help? Thanks.
0
Stéphan Parrot
Top achievements
Rank 1
answered on 05 May 2011, 09:08 PM
Yusuf,
Make sure you have specified every required javascript files for this control to work properly as the list below at the bottom of the aspx page:
<%
Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.min.js")
.Add("telerik.calendar.min.js")
.Add("telerik.datepicker.min.js")
.Add("telerik.timepicker.min.js")
.Add("telerik.datetimepicker.min.js")
.Add("~/Scripts/MicrosoftAjax.js") // those might not be required
.Add("~/Scripts/MicrosoftMvcAjax.js") // those might not be required
);
%>
Hope this help!
Make sure you have specified every required javascript files for this control to work properly as the list below at the bottom of the aspx page:
<%
Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.common.min.js")
.Add("telerik.calendar.min.js")
.Add("telerik.datepicker.min.js")
.Add("telerik.timepicker.min.js")
.Add("telerik.datetimepicker.min.js")
.Add("~/Scripts/MicrosoftAjax.js") // those might not be required
.Add("~/Scripts/MicrosoftMvcAjax.js") // those might not be required
);
%>
Hope this help!
0
Yusuf
Top achievements
Rank 1
answered on 05 May 2011, 10:22 PM
Thanks steven, soon as I used the references and load with jquery instead of Ajax.AjaxLink, it began working