Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1910
Open a WebDialogWindow when a cell in a specific column is clicked
posted

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?

Parents
No Data
Reply
  • 820
    posted

     

     

    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 

Children
No Data