Categories | Question details Back To List | ||
dhtmlxgrid_form.js in standart edition I talked with your colleague who told me that I can use dhtmlxgrid_form.js in Standart Edition set of dhtmlx components, but dhtmlxgrid_form.js wasn't included into the 90904 STD package by mistake, and he send to me version witch allowing return grid data to server side on submit event. But I do not get expected result when used this file. I have following code on client side : <html> <head> ... <link rel="STYLESHEET" type="text/css" href="codebase/grid/dhtmlxgrid.css"> <script src="codebase/grid/dhtmlxgrid.js"></script> <script src="codebase/grid/dhtmlxgridcell.js"></script> <script src="codebase/grid/dhtmlxcommon.js"></script> <script src="codebase/grid/excells/dhtmlxgrid_excell_dhxcalendar.js"></script> <script src="codebase/grid/ext/dhtmlxgrid_form.js"></script> ... <form action="SocketClient" method='post' id="frm" name="frm" onsubmit="return OnSubmitEvent(this)" style="width:100%; height:100%;"> ... <div id="TREE_STRUCTURE_GRID" style="position:absolute;top:155.2px;left:9.6px; width: 787.2px; height: 201.6px;"></div> ... </form> ... <script> ... function OnSubmitEvent(Form){document.getElementById(Form).submit();} </script> ... <script> var mygrid1 = new dhtmlXGridObject('TREE_STRUCTURE_GRID');mygrid1.setSkin("gray");var data= [["1","0","Портфейл"," "," "," "," "," "]]; mygrid1.setImagePath("codebase/grid/imgs/"); mygrid1.setHeader("Номер,Избор,Подпортфейл,Портфейл,Списък,Филтър,Структура,Пазарна лихва"); mygrid1.setInitWidths("50,44.0,107.2,107.2,115.2,115.2,115.2,115.2"); mygrid1.setColumnColor("#DFDFDF,#D1C9A8,#D0D0D0,#D1C9A8,#D1C9A8,#D1C9A8,#D1C9A8,#D1C9A8"); mygrid1.setColAlign("right,left,left,left,left,left,left,left"); mygrid1.setColTypes("cntr,ch,ro,ed,ed,ed,ed,ed"); mygrid1.setColSorting("na,str,str,str,str,str,str,str"); mygrid1.init(); mygrid1.parse(data,"jsarray"); </script> </head> </html> I don't receive data from grid on server side after submit. Where is my mistake? Sorry for bad english :). Best Regards! Answer posted by dhxSupport on Oct 26, 2009 09:18 Unfortunately we cannot reproduce this issue locally. Please find example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/13_interaction_other_components/02_pro_form.html Answer posted by Stanislav (support) on Oct 26, 2009 09:46 Is the above form submitted by submit button or by js command? In second case you need to call grid.parentFormOnSubmit(); form.submit() Answer posted by Bulent Yakub on Oct 27, 2009 08:37 I trying with two variant, but do not get result. Can be associated with grid initialization in this case is with javascript array? Answer posted by Byulent Yakub on Oct 28, 2009 00:39 I can't see dhtmlxgrid_form.js file in http://www.dhtmlx.com/docs/download/dhtmlxGrid.zip" class="bl_middle">v.2.5 Standard Edition dhtmlxGrid set. Are you sure that is possible using this functionality with free version? Answer posted by dhxSupport on Oct 28, 2009 02:21 dhtmlxgrid_form.js wasn't included into the 90904 STD package by mistake. You can download this file here http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=12426 |