I want to open a WebDialogWindow when a user clicks on a cell if the cell is within a certain column. I want to use the WebDialogWindow as a screen for the user to add a new comment to a row.Any suggestions?
Add this event in your grid:
<ClientSideEvents CellClickHandler="dgItems_ItemDetails" />
Javascript method.
function
dgItems_ItemDetails(gridName, cellId, button)
{
//check the key name
if( igtbl_getCellById(cellId).Column.Key == "columnKey")
//open the web dialog window.
var
oDialog = $find("dlgModal");
oDialog.set_width(
"800px");
oDialog.set_height(
"400px");
oDialog.get_contentPane().set_contentUrl("NewPage.aspx");
oDialog.show();
}
//Design your new page as per your requirement.
Do you want to set the comments to the same cell?
If yes, then pass the cell Id in querystring to the new page. and on closing the dialog box set the value in that cell.
Thanks,
Ani