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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -