Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > ajax bound grid inside tab strip needs tab index
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered ajax bound grid inside tab strip needs tab index

Feed from this thread
  • Alden avatar

    Posted on Dec 11, 2011 (permalink)

    Hi,

    I have an ajax-bound grid inside a tabstrip that is loaded with loadcontentfrom().  All of the tabs use the same grid, but each time it is bound to different items in the model.  I would like to use a single grid and pass the tab index in the ajax select method.  How do I do this?  Specifically:
    Part of tab strip:
     
    @{ Html.Telerik().TabStrip()
            .Name("TabStrip")
            .Items(parent => {
                parent.Add()
                    .Text("My Tasks")
                    .Selected(true)
                    .LoadContentFrom("MyTasks", "Tasks");
    ...
     
    And Grid inside tabstrip:
     
    @(Html.Telerik().Grid(Model).Name("TaskGrid")
                    .ToolBar(commands => commands.Insert())
                    .DataKeys(keys => keys.Add(c => c.Id))
            .DataBinding(dataBinding => dataBinding
                  .Ajax().Select("_AjaxMyTasks", "Tasks", new { tabindex = WHAT GOES HERE? })
     
    And the Ajax select method in the controller:
     
            public ActionResult _AjaxMyTasks(string tabindex)
            {
    ...
    Thanks for your help!

    AldenG

  • MrSena avatar

    Posted on Dec 15, 2011 (permalink)

    http://demos.telerik.com/aspnet-mvc/razor/grid/editingajax
    .Ajax().Select("_AjaxMyTasks", "Tasks")
    in Controller:
    [GridAction]
    public ActionResult _SelectAjaxEditing()
    {
      return View(new GridModel(GETDATA()));
    }

    GetData mast be return ICollection

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > ajax bound grid inside tab strip needs tab index
Related resources for "ajax bound grid inside tab strip needs tab index"

ASP.NET MVC TabStrip Features  |  Documentation  |  Demos  |  Telerik TV ]