Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brett on Jan 22, 2009 16:31
open dhtmlx forum
When submitting a grid within a form, not all rows are returned

I have the following grid

var mygrid = new dhtmlXGridObject('peopleoncourse_grid');
            mygrid.setImagePath("/dhtmlxGrid/codebase/imgs/");
            mygrid.setHeader("Attended, ID, Firstname, LastName, Course");
            mygrid.setColTypes("ch,ro,ro,ro,ro");
            mygrid.setInitWidths("80, 30, 100, 100, 60");
            mygrid.setColAlign("center, center, center, Left, Left");
            mygrid.setSkin("modern");
            mygrid.submitOnlyChanged(false);
            mygrid.submitOnlyRowID(false);
            mygrid.init();    
            mygrid.enableSmartRendering(true);
            gridQString = "/components/com_bcm/views/bcm/peopleoncourses.php";
            mygrid.loadXML(gridQString);

I am able to load the xml file (with 4 records as an example) and have created a 'save' button on the form. When I dump the contents of the POST I am only seeing the contents of Rows 2, 3, and 4. Row 1 is missing from the POST.

Any help would be appreciated.
Answer posted by Support on Jan 23, 2009 01:48
Please check the IDs in your XML
 - they must be unique
 - they must not be equal to 0, null, false

If issue still occurs - please provide an example of used XML