[CLOSED] GridPanelFor + HttpProxy

  1. #1

    [CLOSED] GridPanelFor + HttpProxy

    Hi,

    I would like to know if is possible reload a gridpanel when using GridPanelFor with data comming from Controller.

    Please, look:

    public ActionResult Index()
            {
                List<Person> p = new List<Person>();
                p.Add(new Person() { ID = 1, Name = "aaa" });
                p.Add(new Person() { ID = 2, Name = "bbb" });
                ViewData["Person"] = p;
                return View();
            }
    @(Html.X().GridPanelFor((List<General.Controllers.RelatorioProdutosController.Person>)ViewData["Person"]))

    So, when I click in a button and call a controller's method that update ViewData["Person"] what should I do to reload this GridPanel?

    Thank you
    Last edited by Daniil; Jan 15, 2013 at 4:09 AM. Reason: [CLOSED]
  2. #2
    Hi @mcfromero,

    Please configure a ServerProxy for the Store.

    Example
    .Store(s => {
        var store = s[0];
        store.ServerProxy(...);
    })
    Calling
    store.reload();
    client side will initiate a load request via a ServerProxy.

Similar Threads

  1. [2.1] GridPanelFor RowNumbererColumn
    By millenovanta in forum 2.x Help
    Replies: 2
    Last Post: Dec 26, 2012, 8:55 PM
  2. [2.1] GridPanelFor Batch Update
    By millenovanta in forum 2.x Help
    Replies: 20
    Last Post: Dec 26, 2012, 12:27 PM
  3. SyncParameters in GridPanelFor
    By millenovanta in forum 2.x Help
    Replies: 0
    Last Post: Dec 05, 2012, 8:04 PM
  4. [2.1] GridPanelFor Editor field related to model
    By millenovanta in forum 2.x Help
    Replies: 2
    Last Post: Nov 30, 2012, 3:34 PM
  5. [CLOSED] HttpProxy
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 08, 2008, 11:09 AM

Posting Permissions