TreeGrid submit problem

Hi,

this is the jsp where i place the grid:





<%@page import=“com.alisea.web.app.servlet.Constants”%>





    

    

    

    

    

    







    

    

    







    body {font-size:12px}

    .{font-family:arial;font-size:12px}

    h1 {cursor:hand;font-size:16px;margin-left:10px;line-height:10px}

    xmp {color:green;font-size:12px;margin:0px;font-family:courier;background-color:#e6e6fa;padding:2px}

    div.hdr{

        background-color:lightgrey;

        margin-bottom:10px;

        padding-left:10px;

    }







    



        

            

        



        

            

        

        

            

            

        

    


                


            


                




            

            


            

            


























When i click on the submit button i cant found the [GRIDID]_ROWS_ADDED and [GRIDID]_ROWS_DELETED parameter on the server side. As you can see i also used mygrid2.formCreateInputCollection(); but nothing change.

Can you help me?

Thank you.



The code looks correct
There are two possible reasons of problem
a) you are using dhtmlxgrid 1.5 ( it not supported sending info about added||deleted rows. You need update to 1.6 ( technicallly you need to update dhtmlxgrid_form.js to one from version 1.6, all other can be preserved to prevent any unrequired changes )
b) the mode was not auto-enabled ( not sure how it may occurs ) - please try to add next line to the grid’s init
grid.submitAddedRows(true)
If it will throw js error - you are using old version of extension for sure.