How to set focus on controls inside TabPage in DevExpress MVC tabpage? -
i using devexpress mvc application.in using 3 tabpages.the content of tab pages in different partial views.my question how set focus on controls in each tab page when tab page clicked?
you can try html.renderaction. example:
@html.devexpress().pagecontrol( settings => { settings.name = "mytabs"; settings.callbackroutevalues = new { controller = "tabs", action = "callbacktabs" }; settings.tabpages.add("tab1").setcontent(() => { viewcontext.writer.write("<div class='tab1content'>"); html.renderaction("gettab1", "tabs"); viewcontext.writer.write("</div>"); }); settings.tabpages.add("tab2").setcontent(() => { viewcontext.writer.write("<div class='tab1content'>"); html.renderaction("gettab2", "tabs"); viewcontext.writer.write("</div>"); }); }
and controller actions:
public actionresult gettab1() { return partialview("_tab1", result); } public actionresult gettab2() { return partialview("_tab2", result); }
Comments
Post a Comment