Hi
I have an Asp.net MVC 3 project using Telerik MVC and JqueryMobile. My problem is when using the MVC Grid with globalisation.
I need to enable Globalization to get a couple of date items to bind correctly for inline editing on the grid (if globalisation is not enabled the date fileds do not bind on empty and appear empty, and also if I then set the date and update I get a date format error).
On a view where I'm not using Jquery Mobile this works correctly and the date fields bind correctly. I can also use the grid on a view with Jquery Mobile, but if the globalisation is not turned on the date format is wrong and the fields don't bind on edit.
I then set globalisation using the following:
@(Html.Telerik().ScriptRegistrar().Globalization(true).DefaultGroup(group => group.Combined(true).Compress(true)))
This works fine if I call my page with the MVC Grid directly e.g. mycontroller/GridPage , but if I then try to call the same action via JqueryMobile dialog I get the following message:
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'load'
The link I use to call via JqueryMobile is:
@Html.ActionLink("My Grid", "GridPage ", "mycontroller", new { data_rel = "dialog", data_theme = "b", data_transition = "flip" })
Removing the Globalization attribute stops the error, but also stops the Globalization
Can anybody advise how I can get past this error?
Thanks
Mark