Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 02, 2009 05:39
open dhtmlx forum
dhtmlxgrid

I have a grid which is populated using a xml file. On click of a particular cell i want a list to be displayed in a html form based on the cell value. I am trying to do this using dhmlxgrid rowselect event. But i did not know how to proceed through dhtmlxajax. The same event i could do with dwr. I want a example of the same using dhmlxajax using the post method . I saw an example using php but i am using javascript so i want an example using javascript
Answer posted by Stanislav (support) on Oct 08, 2009 07:14
grid.attachEvent("onRowSelect",function(id,ind){
            dhtmlxAjax.get("some_script.do?id="+id,function(loader){
                     //here you have
                     // loader.xmlDoc.responseText - response from server
                     // id,ind - coordinates of the cell
                    any code to render list from response
            })
})