Calling double click from javascript for a row.

4 replies. Last post: December 29, 2009 5:49 AM by Madhavan G
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Madhavan GMember

Hi ALL,

We have a functionality of CellDoubleclick and also RowSelect.

On cellDoubleClick or rowSelect our window will get open depends on the property set to open the window on row select or row double click.

We are doing Move Next Record Scenario in our control.

For that We are using the following javascript

function MoveNextWorkItemRecord()

{

var grid = ISGetObject("WebGrid1"); var selectedObject = grid.GetSelectedObject(); if (selectedObject != null)

{

var selectedRow = selectedObject.ToRowObject(); // return WebGridRow object var nextRow = selectedRow.GetNextRow(); // get next row object if(nextRow !=null)

{

if(strAllowRowDoubleClick=="False")

nextRow.Select();

else

{

?????

}

}

else

{

wgLoadMore(grid.Id);

}

if(mywindow !=null)

mywindow.focus();

}

else

{

alert (
"Please select a row first.");

}

}

 

In the following script you can See nextRow.Select(); will open the window when clicking the MoveNext button.

But if We set the Property for opening the window on double click.How we will achive the double click event for the row.

 

Regards,

Madhavan

All times are GMT -5. The time now is 3:38 PM.
Previous Next