Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 26, 2008 22:22
open dhtmlx forum
Ajax Call on Link

I would like to know if I can make a dhtmlAjax call on clicking a link if possible can you help me with a sample code snippet.

Can I control the cell type of a column to be a link on the DhtmlxGrid level rather than on the XML level with having to specify ^url on the <cell>.
Answer posted by Support on Nov 27, 2008 02:29
>>if I can make a dhtmlAjax call on clicking a link
       <a href='#' onclick='dhtmlxAjax.get(url)'>Click</a>
If you mean dhtmlxgrid's cell, than for link column type it will be 
       Click^javascript:dhtmlxAjax.get(url)^_self

>>Can I control the cell type of a column to be a link on the DhtmlxGrid level
The grid renders data based on column type, the "^url" formatting is just a default way to store both text and url inside the same cell.
It possible to create a custom excell which will threate and format incoming data in any necessary way.