Feb 13, 2011, 6:17 PM
MVC + PartialViewResult And Model
Hey All,
i am trying to make this Example work on my end,
and upon setting up the RenderMode to RenderTo, Everything is working ok but the Panel is rendered outside the Container Panel
and Completly iggnores the FitLayouts.
when i am trying to set it up as RenderMode.AddTo
i get an Error in the ext.net js:
"
while ((match = re.exec(html))) { attrs = match[1]; srcMatch = attrs ? attrs.match(srcRe) : false; if (srcMatch && srcMatch[2]) { s = DOC.createElement("script"); s.src = srcMatch[2]; typeMatch = attrs.match(typeRe); if (typeMatch && typeMatch[2]) { s.type = typeMatch[2]; } hd.appendChild(s); } else if (match[2] && match[2].length > 0) { if (window.execScript) { window.execScript(match[2]); } else { window.eval(match[2]); } } }
"
on the line : window.execScript(match[2]);
and dont see the rendered usercontrol.
can you guys help me out.
the sample is getting a treeNodeId from TreePanel and onClick Event calls the Controller to Load the needed UserControl
i am trying to make this Example work on my end,
and upon setting up the RenderMode to RenderTo, Everything is working ok but the Panel is rendered outside the Container Panel
and Completly iggnores the FitLayouts.
when i am trying to set it up as RenderMode.AddTo
i get an Error in the ext.net js:
"
while ((match = re.exec(html))) { attrs = match[1]; srcMatch = attrs ? attrs.match(srcRe) : false; if (srcMatch && srcMatch[2]) { s = DOC.createElement("script"); s.src = srcMatch[2]; typeMatch = attrs.match(typeRe); if (typeMatch && typeMatch[2]) { s.type = typeMatch[2]; } hd.appendChild(s); } else if (match[2] && match[2].length > 0) { if (window.execScript) { window.execScript(match[2]); } else { window.eval(match[2]); } } }
"
on the line : window.execScript(match[2]);
and dont see the rendered usercontrol.
can you guys help me out.
the sample is getting a treeNodeId from TreePanel and onClick Event calls the Controller to Load the needed UserControl