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

Kendo Grid in Partial View and Javascript errors!

4 Answers 311 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan Lege
Top achievements
Rank 1
Ryan Lege asked on 08 Aug 2012, 01:13 PM
I did not have issues with Telerik Extensions for MVC with the same setup. 

I have a Kendo Tabstrip that loads partialviews with Kendo Grids contained within. They render fine! However, when I click edit, it throws the following error:

jQuery('#MilitaryPlanned').tTextBox({val:0, step:1, minValue:-2147483648, maxValue:2147483647, digits:0, groupSize:3, negative:1, text:'Enter value', type:'numeric'});

I took the datatype annotation on the model  out, and it worked giving me just a generic textbox, which is useless to me. I must have specific data types.

I tried adding the script references directly to the partial view and no joy.

I then proceeded to test this outside the partial in a full view page supported by the layout page. It worked great!

So I believe the question is:
WHY ARE THE JS REFERENCES NOT WORKING IN THE PARTIAL? Are they not seeing the javascript files in the layout?

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 13 Aug 2012, 02:30 PM
Hello Benjamin,

I tried to reproduce the issue on my local version of the demos - Grid loaded with ajax withing TabStrip. Everything seems to work fine. Could you send a small project which we can run to see the problematic behavior (using the latest version) ?

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ryan Lege
Top achievements
Rank 1
answered on 14 Aug 2012, 07:18 AM
Fixed! When I was converting from Telerik MVC Extensions to Kendo, it would have been helpful to convert the EditorTemplates as well! Stupid Me! I wish there was a wizard for this. At least for the absent minded like me.
0
mark
Top achievements
Rank 1
answered on 14 Aug 2015, 08:25 PM

Do you have sample code for loading the Tab content from MVC Partial Views?  I have done it with the server side/Razor code, but the JS/HTML code is not working.  I've "contentURL" using relative paths to the Controller/Action, but no go.  I tried hard coding the PartialView inside the div in the tab...No go...Not finding much on the web except examples that use full length url's...was hoping to keep it to relative Paths...

 

Thanks

0
Dimo
Telerik team
answered on 19 Aug 2015, 12:49 PM
Hi Mark,

Our TabStrip Ajax demo uses relative URLs:

http://demos.telerik.com/kendo-ui/tabstrip/ajax

You can run our demos locally on your machine to verify that the above functionality works properly.

In case you need further assistance with your scenario and/or believe that there is an issue with the TabStrip widget, please provide a standalone runnable example for inspection.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ryan Lege
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Ryan Lege
Top achievements
Rank 1
mark
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or