Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by franco Merola on Nov 20, 2008 04:26
open dhtmlx forum
Autocomplete

Hi,
i'm using the autocomplete in grid and i've one problem: i must pass additional parameter to the server side (the parameter is an userdata of row).
How can i do?
Thank you
Answer posted by Support on Nov 20, 2008 06:34
If you mean the "combo" excell in autocomplete mode, you can reset filtering url on the fly , by  next code

mygrid.attachEvent("onEditCell",function(stage,id,ind){
  if (stage == 1 && ind == COMBO_INDEX )  {
         mygrid.getColumnCombo(ind)._xml="some.php?data="+mygrid.getUserData(id,"some");
  }
  return true;
})