Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
webdatgrid TemplateDataField add row does not create the button in the template field
posted

I have a button that invokes the following and adds a new row to the grid in batch mode. The 6 position is a template field with a little button in it. The new row is missing the button when the code below is invoked. I cannot figure out how to add a row and ahve my template field load properly. Ideas? 

            var grid = $find("dgOther");

            // Create array of cell values for all values that cannot be null.

            var uniqueid = (new Date()).getTime().toString().substring(7, 14);

            var row = new Array("", uniqueid, "", "1/1/1900", "", "", "", "", "", "");

            grid.get_rows().add(row);