I use WebHierarchicalDataGrid, there are several bands (several levels of data).
For each band the RowEditingTemplate is specified.
I see that final page markup contains "rendered" template for each parent row. In other words, if a dropdown element is specified as template for child band, it will be rendered for each parent rows.
It is very insufficient, because the dropdown has a lot of values, and if my grid has a lot of rows, the size of page of will be excessively increased.
UltraWebGrid renders template only one time.
Maybe there is any option that forces to render template only once?
Hi AlexanderZh,
Currently, this is the expected behavior. It is because each child grid derives from the WebDataGrid, so has its own options, and thus sends down a template for itself. It would need to be fixed by us for this to work. I would submit a feature request.
regards,David Young
Hi, David!
Thank you for answer.
Could you explain me one else thing regarding WebHierarchicalDataGrid.
Using UltraWebGrid I've implemented following scenario:
User clicks on the button, the new row is added to the grid on the client side(not postbacks), actually it is empty row, and 'edit template' is opened for that newly added row.User enters values and clicks 'OK'. After that the postback is invoked.
Is it possible to do the same for WebHierarchicalDataGrid?
Could new row be added without postback?
for now the code below lead to immediate postback
grid.get_rows().add(new Array(1, 'text'));
Please explain, for now I am getting rid of old UltraWebGrid and there are a lot of things that I have to remake.
Alexander