MVC TabPanel - Set tab ready to load content after Activate

  1. #1

    MVC TabPanel - Set tab ready to load content after Activate

    Hi, I have a grid with a list of people and a formPanel into the first tab where the data of the selected person is loaded. The second tab load a grid with aditional data whit a Loader sending de PersonID for selected person.

                    X.Panel()
                    .ID("TabPedidosEntregados")
                    .Title("Pedidos Entregados")
                    .Disabled(true)
                    .AutoScroll(true)                                                
                    .Loader(X.ComponentLoader()
                        .Url(Url.Action("PedidosEntregados"))
                        .LoadMask(m => m.ShowMask = true)
                        .Params(new Parameter("containerId", "TabPedidosEntregados"))
                        .Params(new Parameter("id_cliente", "App.HiddenIdCliente.getValue() == '' ? 0 : App.HiddenIdCliente.getValue()", ParameterMode.Raw))
                        .Mode(LoadMode.Frame)
                    )
    The thing is that when I select a new person to the grid on the left, on the grid of the second tab from the right panel, the previous data remains. How can I leave the tab ready to fire the loader when activate de tab like de first load?

    Click image for larger version. 

Name:	ui.jpg 
Views:	12 
Size:	67.1 KB 
ID:	16281

    Thanks
    Last edited by logidat; Nov 15, 2014 at 8:58 PM.

Similar Threads

  1. [CLOSED] Load data to Grid on Documenet ready
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 18, 2014, 8:21 AM
  2. Replies: 1
    Last Post: May 18, 2012, 1:52 PM
  3. Replies: 0
    Last Post: May 07, 2012, 7:50 AM
  4. [CLOSED] need a TabPanel Tab to REDIRECT, not load content
    By hillscottc in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 14, 2010, 2:12 PM
  5. [CLOSED] TabPanel load content in AjaxEvent
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 01, 2009, 1:26 PM

Tags for this Thread

Posting Permissions