hi ,
i need to set a double click event to a column that open WebdialogWindow , how can i do it ?
thank you.
Hi,
You can use the grid client event DoubleClick to check the item column and if the column key is same as you want to show WebdialogWindow.
I am attaching a small sample with this.
WDGShowDialogOnDoubleClick.zip
hi , it work but any double click in the header or the footer opens the windows as well , i only need the click on the cell of the row to open the windows , not the entire column from hearder to footer !
You can check the target of the click event from the eventArgs.
how so ?
EXEMPLE ?
You can check the type of the eventArgs and if it is cell to open the dialog.
In the sample which I send you have to change function WebDataGrid1_Grid_DoubleClick to:
function WebDataGrid1_Grid_DoubleClick(sender, eventArgs) { if (eventArgs.get_type() == "cell") { var column = eventArgs.get_item().get_column(); if (column.get_key() == "id") { showDilaog('<%= WebDialogWindow1.ClientID %>') }