[CLOSED] MVC Grid Editing

  1. #1

    [CLOSED] MVC Grid Editing

    In MVC, how do I create an editor that automatically updates a record via the proxy information? I am using the rowEditor plugin and I do see the row with the red clip in the corner after pressing "Update," but I don't know how to "post" that update. I do have a proxy reader and writer configured, but my grid is not within a form. For reference, here is my proxy config:

    .Store(Sub(store)
    store.Add(Html.X.Store.Proxy(Sub(prxy)
      Dim prx As New Ext.Net.AjaxProxy
        With prx
          .ActionMethods.Read = HttpMethod.POST
          .API.Read = Url.Content("~/Assignments/_GetCedentAutoList")
          .API.Update = Url.Content("~/Assignments/_EditTeam")
          .Reader.Add(New Ext.Net.JsonReader() With {.Root = "Data"})
          .Writer.Add(New Ext.net.Jsonwriter() with {.Root="Data"})
        End With
      prxy.Add(prx)
      End Sub).AutoLoad(False).Model(Sub(mdl)
      mdl.Add(Html.X.Model.ClientIdProperty("Value").Fields(Sub(flds)
                                                     flds.Add(Html.X.ModelField().Type(ModelFieldType.String).Name("Value"))
                                                     flds.Add(Html.X.ModelField().Type(ModelFieldType.String).Name("Text"))
                                                                                      End Sub))
               End Sub))
    End Sub)
    Last edited by Daniil; May 28, 2012 at 5:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You can:

    1. Set up
    AutoSync="true"
    for the Store.
    http://docs.sencha.com/ext-js/4-1/#!...e-cfg-autoSync

    2. Or call the Store sync method.
    http://docs.sencha.com/ext-js/4-1/#!...re-method-sync

Similar Threads

  1. [CLOSED] Editing Themes
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 01, 2012, 7:12 PM
  2. [CLOSED] Editing cell of gridPanel
    By supera in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: May 23, 2012, 12:47 PM
  3. Replies: 3
    Last Post: Nov 19, 2009, 9:17 AM
  4. [CLOSED] Grid panel Editing?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 01, 2009, 8:22 AM
  5. Inline Editing in a Grid using combobox
    By gido in forum 1.x Help
    Replies: 3
    Last Post: Sep 11, 2009, 6:55 AM

Tags for this Thread

Posting Permissions