Right Click Functionality
Is there any option for adding right click functionality on activewidgets table or how I can add right click on a row of the table
Sandeep Saha
July 18,
// assign html event handler to row template
table.getCellTemplate().setEvent("oncontextmenu", raiseMenuEvent);
// assign grid event handler
table.onCellContextMenu = function(event, col, row){
holdtext.innerText = table.getCellValue(col,row);
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}
// html event handler translates to grid events
function raiseMenuEvent(event){
this.raiseEvent("onRowContextMenu", event, this.$0);
}
// assign html event handler to row template
obj.getRowTemplate().setEvent("oncontextmenu", raiseMenuEvent);
// assign grid event handler
obj.onRowContextMenu = function(event, row){
alert("row=" + row + " x=" + event.clientX + " y=" + event.clientY);
}
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021