Hello,
I would like to know how to display columns that are hidden in my igGrid in the Row Edit Dialog Row Template. I thought that I would be able to do this, but haven't found a way nor any information in the documents. I am not auto-generating columns, but configuring each column manually and certain columns I have configured as "hidden: true" since I do not want them to appear in the igGrid itself, but would like them to appear in my Row Edit Template. Can you please shed some light as to getting this functionality to work?
Thanks in advance
Hello Angel,
Thanks for the response. I found that if I use the "Width" parameter on the columns I want to display and do not use it on the ones that I don't, it will hide the columns in the grid but still make it available in the Row Edit Template. I am not setting a "Width" on the igGrid itself. This allows me to hide the columns I need. Now, this may not be hidden technically, but the width of the columns where I do not set a "Width" parameter is probably getting a "1px", but it is thin enough to look hidden. So, until a fix comes about, this is an acceptable method.
best,
John
Hi,
Let's assume that you have the second column (with index 1) of your grid hidden.
It's possible to display hidden columns in the Row Edit Dialog Row Template using the rowEditDialogOpening and rowEditDialogOpened events.
Here is an example:
rowEditDialogOpening: function(event, ui) {
// Make the desired column visible
ui.owner.grid.options.columns[1].hidden = false; }, rowEditDialogOpened: function(event, ui) {
// Restore back the initial state ui.owner.grid.options.columns[1].hidden = true; }
The idea is to change the column visibility before the RET dialog renders and restore the initial state after it's rendered.
I hope that helps you.
regards
Lyubo
Currently this isn't supported, but I agree with you it is an important scenario. We will make sure it is prioritized and implemented as soon as possible.
Thank you,
Angel