Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Require event handler for web grid

Last post 05-17-2008 2:47 by abiram01. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 05-15-2008 9:15

    • abiram01
    • Top 500 Contributor
    • Joined on 05-10-2008
    • Points 215

    Require event handler for web grid

    Hi All,

    I have two gripds on a web page. When I select the row in the 1st grid then the second grid data has to accordingly. So I need to get the row number the user has selected. So please let me know which event is fired when clicked on the first.

    The same can be done in Windows web grid.

     Thanks

    • Post Points: 20
  • 05-15-2008 9:30 In reply to

    Re: Require event handler for web grid

    On the client side, you can setup the javascript event CellClickHandler (displaylayout, clientsideevents), then get the row using a webgrid utility function:

    function UltraWebGrid1_CellClickHandler(gridName, cellId, button){
        var row = igtbl_getActiveRow(gridName);
    }

     

    • Post Points: 20
  • 05-15-2008 9:54 In reply to

    • abiram01
    • Top 500 Contributor
    • Joined on 05-10-2008
    • Points 215

    Re: Require event handler for web grid

    Can you please send me a sample of handling this. Because I am not able to use the function igtbl_getActiveRow in my script?

    • Post Points: 20
  • 05-15-2008 10:18 In reply to

    Re: Require event handler for web grid

    Are you trying to do this on the client (via javascript) or on the server?

    • Post Points: 20
  • 05-16-2008 1:24 In reply to

    • abiram01
    • Top 500 Contributor
    • Joined on 05-10-2008
    • Points 215

    Re: Require event handler for web grid

    I am trying to add at client using Javascript.

     

    • Post Points: 20
  • 05-16-2008 8:42 In reply to

    Re: Require event handler for web grid

    The igtbl_getActiveRow is one of the WebGrid CSOM Utility Functions.  You should be able to find them in the docs.

    • Post Points: 20
  • 05-17-2008 2:47 In reply to

    • abiram01
    • Top 500 Contributor
    • Joined on 05-10-2008
    • Points 215

    Re: Require event handler for web grid

    Hi,

    I tried to work out that and i was able to add the handler on client side. But the getActiveRow is returing "Object object" Instead of the row number.

    So please suggest.

    The code I used is below:

    function UltraWebGrid2_CellClickHandler(gridName, cellId, button){

    //Add code to handle your event here.

    var i;

    i = igtbl_getActiveRow(gridName);

    alert(i);

    }

    ClientSideEvents AfterExitEditModeHandler="AfterExitEditModeHandler" AfterRowActivateHandler="UltraWebGrid2_AfterRowActivateHandler"

    BeforeExitEditModeHandler="BeforeExitEditModeHandler" CellClickHandler="UltraWebGrid2_CellClickHandler" />

    • Post Points: 5
Page 1 of 1 (7 items)
Powered by Community Server (Commercial Edition), by Telligent Systems