PDA

View Full Version : [CLOSED] Grouped header through code behind



ermanni.info
May 28, 2014, 1:46 AM
Hi!

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

http://examples2.ext.net/#/GridPanel/Miscellaneous/ColumnHeaderGroup/

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

Daniil
May 28, 2014, 4:39 AM
Hi @ermanni.info,

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