[CLOSED] Grouped header through code behind

  1. #1

    [CLOSED] Grouped header through code behind

    Hi!

    Please, how do I use the Grouped Header feature through code behind based on the link below:

    http://examples2.ext.net/#/GridPanel...mnHeaderGroup/

    I'm using adding columns through the Columns property of the Column object. When you run a bind data, the following error occurs:
    Please define Name for model field or simple ServerMapping (without dots)

    Linha 2308:            if (field.Name.IsEmpty() &&  (field.ServerMapping.IsEmpty() || field.ServerMapping.Contains(".", "(",  "[")))
    Linha 2309:                {
    Linha 2310:                    throw new Exception("Please define Name for model field or simple ServerMapping (without dots)");
    Linha 2311:                }
    Linha 2312:            }
    Thanks!

    Ermanni Info
    Last edited by Daniil; Jun 06, 2014 at 6:27 PM. Reason: [CLOSED]
  2. #2
    Hi @ermanni.info,

    I think an Exception occurs because of ModelFields, not Columns. So, please review your ModelFields.

Similar Threads

  1. Replies: 2
    Last Post: Sep 03, 2013, 1:45 PM
  2. Grouped Header and Grid Filters
    By paulc in forum 2.x Help
    Replies: 0
    Last Post: Jun 03, 2013, 1:23 PM
  3. [CLOSED] Problem with Grouped Header
    By ermanni.info in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 15, 2013, 12:07 PM
  4. Grouped Header
    By idelacruz in forum 2.x Help
    Replies: 0
    Last Post: Mar 05, 2013, 2:28 PM
  5. Replies: 3
    Last Post: Sep 23, 2010, 2:45 PM

Tags for this Thread

Posting Permissions