I really like the Add New Row feature in UltraWinGrid where it will display a Row Edit Template when you click in the special row marked with an asterisk. This feature does not seem to be availabe in WebDataGrid.
Is there some way to mimick this behavior in WebDataGrid? Any suggestions?
Regards,
Arthur
Hello Arthur,
Unfortunately this functionality is not available at the moment. You can find the hidden DIV of the edit template in the dom and show it on click event for this TD. But that is of course more of a hack than a real solution.
Hi,
I have a webdatagrid with add new row enabled. I now am able to use my editrowtemplate to add new row with few javascript.
My prob is i have one ready only column(dropdownlist). and when i try to add new row on templateclose it is giving some object ref error.
OnRepaireditTemplateclosed(webDataGrid, evntArgs)
{
)
Array();
ara.clean();
ara.length = 3;
ara[0] = webDataGrid._auxRowsTop[0]._cells[0].get_text();
ara[1] = webDataGrid._auxRowsTop[0]._cells[1].get_text();
//webDataGrid._auxRowsTop[0]._cells[2] is a read only column cell
ara[2] = webDataGrid._auxRowsTop[0]._cells[3].get_text();
webDataGrid.get_rows().add(ara);
}
Plz help.
Thanks. I was able to mimic this behavior by showing the hidden DIV.