Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFGrid double click event handler

Explorer ,
Mar 17, 2008 Mar 17, 2008
Is there anybody can send an example of how to handle double click event with CFGrid type html? Thank You In Advance.
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , May 19, 2008 May 19, 2008
I guess I found the answer by myself.
<script>
function init()
{
grid = ColdFusion.Grid.getGridObject("MainGrid");
gb = grid.getColumnModel();
grid.reconfigure(grid.getDataSource(),gb);

grid.addListener("rowdblclick", function(grid, rowIndex, e)
{

var record = grid.getDataSource().getAt(rowIndex); // Get the Record
var Mykey = record.data.MyKEY;

ColdFusion.Window.create('windiow1','My Window Title','win_mywindow.cfm?URLkey='+MyKEY,{height:500,width:620,modal:false,closable:tru...
Translate
Explorer ,
May 19, 2008 May 19, 2008
LATEST
I guess I found the answer by myself.
<script>
function init()
{
grid = ColdFusion.Grid.getGridObject("MainGrid");
gb = grid.getColumnModel();
grid.reconfigure(grid.getDataSource(),gb);

grid.addListener("rowdblclick", function(grid, rowIndex, e)
{

var record = grid.getDataSource().getAt(rowIndex); // Get the Record
var Mykey = record.data.MyKEY;

ColdFusion.Window.create('windiow1','My Window Title','win_mywindow.cfm?URLkey='+MyKEY,{height:500,width:620,modal:false,closable:true,draggable:true,resizable:false,center:false,initshow:true});

e.stopEvent();
//console.log(record);
});

}
</script>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources