Hello,
I am initializing my grid with hidden columns inside a helper class:
Columns.Add(new GridColumn { HeaderText = "ViewModelType", Key = "ViewModelType", Hidden = true, Width = "0%" }); Columns.Add(new GridColumn { HeaderText = "DevianceEntityIds", Key = "DevianceEntityIds", Hidden = true, Width = "0%" }); Columns.Add(new GridColumn { HeaderText = "EntityType", Key = "EntityType", Hidden = true, Width = "0%" });
When I try to edit non-hidden cells, I always receive a javascript exception:
Error: Uncaught TypeError: Cannot read property 'template' of undefined
url: http://localhost:60470/Scripts/Infragistics/infragistics.lob.jsline: 135column: 30844error: TypeError: Cannot read property 'template' of undefined
Hello Mohamed,
Thank you for posting in our forums!
I do not have a clear understanding of how you are initializing grid with hidden columns inside a helper class.
The JS file which you sent me is in your localhost (Your machine) so I can’t see it.
To better assist you with this, please attach JS file again which reproduce the issue you are seeing.
Also provide me with the steps to reproduce so I may better understand the issue.
Hello again,I figured out that this problem occurs in combination with Virtualization feature.I have a sample attached for you!When editing any cell the already mentioned error occurs.Due to the hidden column "ID" the "_renderRow" function which the error points to iterates over all visible columns (2 elements) but uses the virtualColumnCount as the last index (which is 3).Please, notice that I have columnVirtualization set to false!Best regards,Mohamed
I am building the Ignite UI grid in C#. My Helper class extends your GridModel Class. There I am setting some hidden columns.
The JS file is your own file from the 2015.2 release. So you should have it yourself. I did not attach the file I merely showed you the console error I received.
When I try to edit a cell, I will immediatly get this error.