This question is locked. New answers and comments are not allowed.
How do you use the new Razor syntax to add multiple lines to the OnDocumentReady method of the ScriptRegistrar?
I currently have it working like this:
But obviously this is less than ideal. I tried using the @<text> syntax, but couldn't get it to work. Does anyone have a working example with the RC build?
I currently have it working like this:
@{
string docReady = "$('#preferences_button').button({icons: {primary: 'tool-settings'}, text: false});";
docReady += "$('#account_menu').menu({ content: $('#account_menu').next().html(),showSpeed: 200});";
}
@Html.Telerik().ScriptRegistrar().OnDocumentReady(docReady)
But obviously this is less than ideal. I tried using the @<text> syntax, but couldn't get it to work. Does anyone have a working example with the RC build?