Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben Leah on Dec 07, 2009 06:06
open dhtmlx forum
Grid - onRowDblClicked is not firing

Hi,

The onRowDblClicked event does not appear to fire.

I have attached the event as follows ..

displayGrid.attachEvent('onRowDblClicked', onGridRowDblClicked);

but onGridRowDblClicked is never called.

The grid is built using the following options, (everything else works fine)

scriptBuilder.Append(
"displayGrid.setHeader('" + colList.ToString() + "');" +
"displayGrid.setInitWidths('" + widthList.ToString() + "');" +
"displayGrid.setColSorting('" + sortList.ToString() + "');" +
"displayGrid.setColAlign('" + colAlignList.ToString() + "');" +
"displayGrid.setColTypes('" + colTypes.ToString() + "');" +
// "displayGrid.enableAutoSaving();" +
((attachFilter) ? "displayGrid.attachHeader('" + filterRow.ToString() + "', 'text-align:left');" : "") +
"displayGrid.attachHeader('" + headerRow.ToString() + "', ['text-align:center', 'text-align:center', 'text-align:center', 'text-align:center']);" +
"displayGrid.attachFooter(" + totals[0] + ", 'text-align:left');" +
"displayGrid.attachFooter(" + totals[1] + ", 'text-align:left');" +

"displayGrid.attachEvent('onRowSelect', onGridRowSelected);" +
"displayGrid.attachEvent('onRowDblClicked', onGridRowDblClicked);" +
"displayGrid.attachEvent('onHeaderClick', onHeaderClick);" +
"displayGrid.attachEvent('onAfterSorting', onAfterSorting);" +
"displayGrid.attachEvent('onXLS',function(){ onGridCallbackStart();});" +
"displayGrid.attachEvent('onXLE',function(){ onGridCallbackEnd();});" +
"displayGrid.preventIECaching(true);" +

"displayGrid.init();" +
"displayGrid.enableSmartRendering(true);" +
"displayGrid.splitAt(" + (v.FrozenColumns + 1).ToString() + ");" +
"gridQString = 'data_providers/GridProvider.ashx';" +
"displayGrid.loadXML(gridQString, afterGridInitialisation());");

Do I have to enable anything else to get the double click working?
Thanks,
Ben
Answer posted by dhxSupport on Dec 07, 2009 07:36
onRowDblClicked event is available in PRO version only.
Answer posted by Ben Leah on Dec 07, 2009 07:42
We are currently evaluating the PRO version but the event is not being fired?
Thanks,
Ben
Answer posted by Stanislav (support) on Dec 07, 2009 08:49

Working sample will be sent by email. 

If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.( you can send such info directly to support@dhtmlx.com