How to create a dynamic set of grid

  1. #1

    How to create a dynamic set of grid

    Hi guys,
    I want to know how I have to do in ordet to create a set of grid in Ext.NET.MVC ( cshtml ) to manage the following model :
    List of 
        public class PianoFerieOreMeseModel 
        {
            public int? PF_RefTo { get; set; } // piano ferie a cui si fa riferimento ( serve per catturare l'id da db )
            public int? Giorno { get; set; }  // giorno ( costruzione data )
            public int? Mese  { get; set; }   // mese ( costruzione data )
            public int? Anno { get; set; }    // anno ( costruzione data )
            public bool Totale { get; set; } // dice se il numero di ore ? relativo a  un totale ore di un mese.  true se si
            [PresenceValidation]
            [ModelField(UseNull = true)]
            public double? Ore { get; set; }    // ore giornaliere con validazione - vedi specs 
         }
    I have to change grid when in the list the flag totale is true.
    Any suggestions ?
    Thanks in advance,
    Simone
    Last edited by simonespagna; Oct 14, 2014 at 11:03 AM.
  2. #2
    Hi Simone,
    maybe this could help you http://erhanabay.com/2009/01/29/dyna...el-for-ext-js/
    Basically the controller returns the 'columns' model, and the DynamicGrid builds the column based the gived model.
  3. #3
    Hi @simonespagna,

    Welcome to the Ext.NET forums!

    Maybe, this example is what you are looking for.
    http://mvc.ext.net/#/Models/GridPanelFor/
  4. #4
    Thanks guys for your help.
    I'll try the solutions you have exposed below.
    Thanks,
    Simone

Similar Threads

  1. Replies: 1
    Last Post: Nov 12, 2012, 1:21 PM
  2. [CLOSED] Create dynamic columns grid and store.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 10, 2011, 8:53 PM
  3. [CLOSED] Create a dynamic event for dynamic components.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: May 10, 2011, 9:16 PM
  4. [CLOSED] Create dynamic grid from XML
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 07, 2010, 1:43 PM
  5. How to dynamic create DesktopWindow?
    By iscript in forum 1.x Help
    Replies: 2
    Last Post: Aug 07, 2009, 2:25 AM

Tags for this Thread

Posting Permissions