How to customize eventmask (loading text) for GridPanel in MVC

  1. #1

    How to customize eventmask (loading text) for GridPanel in MVC

    Hello I have the following partial View:

    @using Ext.Net
    @using Ext.Net.MVC
    @{
        var x = Html.X();
    }
    
    @(x.Window().Title("Title")
          .Icon(Icon.TextListBullets)
          .Modal(true)
          .Closable(true)
          .Layout(LayoutType.Fit).Width(600).Height(400)
          .Items
          (
              x.GridPanel().ID("grdView")
                  .Store
                  (
                      x.Store().Model
                          (
                              x.Model().Fields
                                  (
                                      x.ModelField().Name("x"),
                                      x.ModelField().Name("y"),
                                      x.ModelField().Name("z")
                                  )
                          )
                          .RemoteSort(true).AutoLoad(true).RemotePaging(true).PageSize(15)
                          .Proxy(x.AjaxProxy().Url(Url.Action("GetResults", "MyController",new {id = 5}))
                          .Reader(x.JsonReader().Root("data")))
                  )
                  .ColumnModel
                  (
                      x.Column().Sortable(false).Hideable(false).DataIndex("x"),
                      x.Column().Sortable(false).Hideable(false).DataIndex("y"),
                      x.Column().Sortable(false).Hideable(false).DataIndex("z")
                  )
                  .BottomBar
                  (
                      x.PagingToolbar()
                  )
          ))
    This partial view is loaded and shown in a modal window.

    When i click the refresh button of grid's pager, the text "Loading..." appears for a little while.

    How can i change this text?
  2. #2
    Found it.

    It should be provided in GridView like this:

    x.GridPanel().View(x.GridView().LoadingText("New Text"))

Similar Threads

  1. How Customize Text of HDMenu in GridPanel ?
    By hihill in forum 1.x Help
    Replies: 0
    Last Post: Jul 03, 2012, 6:43 AM
  2. Replies: 2
    Last Post: Jun 01, 2011, 8:12 AM
  3. [CLOSED] how to customize text displayed in MultiCombo
    By Leonid_Veriga in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 13, 2011, 7:04 AM
  4. Replies: 6
    Last Post: Aug 13, 2009, 9:35 AM
  5. Replies: 2
    Last Post: Feb 10, 2009, 7:45 PM

Tags for this Thread

Posting Permissions