Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by praveen on Dec 03, 2008 20:23
open dhtmlx forum
Context menu for specific column

Can i get the sample code of Context menu for specific column ????


Thanks
Praveen
Answer posted by Support on Dec 04, 2008 02:51
You can check the full code of sample in you package of dhtmlxGrid
            sampels/context_menu/pro_context_column.html

The key points are

mygrid.attachEvent("onBeforeContextMenu",my_pre_func);
and
 function my_pre_func(rowId,celInd,grid){
  if (celInd==1) return false;
  return true;
 }


my_pre_func called each time before context menu opening, and based on its result context menu will be shown or hidden.