asp.net mvc - Jquery Mobile / Telerik Globalization Error -
i have asp.net mvc 3 project using telerik mvc , jquerymobile. enable globalization work items such mvc grid enable globalization using following in master layout page:
@(html.telerik().scriptregistrar().globalization(true).defaultgroup(group => group.combined(true).compress(true)))
this works fine if call page mvc grid directly e.g. mycontroller/gridpage , if try call same action via jquerymobile dialog following message:
0x800a01b6 - javascript runtime error: object doesn't support property or method 'load'
the link use call via jquerymobile is:
@html.actionlink("my grid", "gridpage ", "mycontroller", new { data_rel = "dialog", data_theme = "b", data_transition = "flip" }) removing globalization attribute stops error, stops globalization
can advise how can past error?
thanks
mark
alright, figured out work around, although not it. think when dynamically add html dom this, wipes out jquery.telerik object, leaving behind cultureinfo. around this, need "register" telerik controls in dynamic html with/when original page loaded.
for example, if have popup 2 textboxes named txtprice , txtquantity, in page can display popup, need declare 2 telerik controls named txtprice , txtquantity. after being declared, can remove them dom. when popup gets added dom, see controls name defined , work normal. strange error considering works fine when globalization turned off.
Comments
Post a Comment