javascript - Rendering Partial View to w2ui Layout panel -


i have issues displaying content of partial view w2ui layout's panel. i'm trying such way

@: $().w2layout({@: name: 'layout@(string.format("{0}{1}", panelnameslist.indexof(item), helperforviewpart.htmlplusspaceexcepter(layoutid)))',     @: panels: [         foreach(var subitem in item) {             switch (item.indexof(subitem)) {                 case 0:                     @: {                         type: 'left',                         resizable: true,                         style: pstyle,                         size: '33%',                         minsize: '200',                         content: '@html.action(actionname, controllername, new {parameter = subitem, taskname = layoutid}) '                     },                     break;                 case 1:                     @: {                         type: 'main',                         resizable: true,                         style: pstyle,                         size: '33%',                         minsize: '200',                         content: '@html.action(actionname, controllername, new {parameter = subitem, taskname = layoutid}) '                     },                     break;                 case 2:                     @: {                         type: 'right',                         resizable: true,                         style: pstyle,                         size: '33%',                         minsize: '200',                         content: '@html.action(actionname, controllername, new {parameter = subitem, taskname = layoutid}) '                     }                     break;             }         }@:     ]@: }); 

this part of javascript located inside cshtml file. , works not correctly, cause @html.action methods returns part of html created razor , contains things line breaks ("\n") , whitespaces, js can't understand want, have ideas?


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -