Hello,
I have an igHierachicalGrid which have one child grid.
On the first display of the grid, everything is fine.
I want to append some rows to the grid but only the parent values is getting displayed.
How can I proceed to append both the parent and child values?
I am using the follow to add new row to my grid
- $("#myGrid").igGridUpdating("addRow", row);
Thanks in advance.
Ainjaka
Hello Ainjaka,
Is there anything else I can assist you with on the matter? Please do not hesitate to contact me.
I am very glad I was able to help you understand the igHierarchicalGrid component, and that you were able to achieve the desired behavior. Please do not hesitate to contact me if I can be of further assistance to you.
Hi Joe,
Thank you very much for your help concerning this issue. Your sample really helped me to better understand the igHierarchicalGrid component.
However, my client asked me if it is possible to hide the "+" on which we can expand the child grid if the row does not contain any child.
I implemented the solution suggested by this forum http://es.infragistics.com/community/forums/t/80284.aspx.
It disables only the expanding functionality but do not hide the "+". No problem, it's fine for me :)
thanks again and regards,
I have found a solution to the issue you were having. To allow the behavior you were looking for, we must set the initialDataBindDepth option to 1, and the autoCommit option to true. The issue you were encountering was related to the grid's parent row not being committed which resulted in strange behavior when trying to view the child grid. Please run my attached sample and let me know if this gives you the desired behavior.
Please do not hesitate to contact me for further assistance.
I had already tried to set the initialDataBindDepth option to 1 but it did not resolved the issue.
I will try to create a little sample from my real development and post it here.
Hope that we will find a solution very soon as my client really need it urgently :)
Thanks for your support and regards,