Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Aleajndro Valverde on Aug 20, 2008 12:26
open dhtmlx forum
on combobox change, submit form and refresh grid data

Hi, I have a combo box and one grid, I would like to refresh the grid data when the combobox changes, doing a form post with, then refresh the grid data with the result of the form post.

Thanks
Answer posted by Support on Aug 21, 2008 02:08
combo.attachEvent("onChange",function(){
    grid.clearAll();
    grid.post("base.url","combo="+combo.getActualValue());
})

post method not supported by default, but there is a separate patch, which adds such functionality
http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=3450&ssr=yes&s=post%20load%20xml