Infragistics Home

Infragistics Forums

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

WebGrid selection to filter another WebGrid

Last post 07-03-2008 5:07 by [Infragistics] Rumen Stankov. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-02-2008 7:48

    • jgold7
    • Not Ranked
    • Joined on 06-26-2008
    • Points 100

    WebGrid selection to filter another WebGrid

    Oops..I placed in the wrong Discussion group.

     

    Hi,

    I am trying to filter a webgrid based on another webgrid's selection.  When the page is first loaded my toBeFilteredGrid shows all rows and my selectionGrid defaults to one of the rows (selected).  When I click on another row, the SelectedRowChanged event gets appropriately fired, but upon postback it filters my toBeFilteredGrid to the same row that was defalut selected.  Is there a better way of doing this, especially on the Client Side via javascript of AJAX?  I have tried moving the binding of my dataset based on myIsPostBack (true/false) setting, but depending on where I move my databind my dataset doesn't get filled properly.  Any assistance would be Greatly Appreciated!!

     Jason

    • Post Points: 20
  • 07-03-2008 5:07 In reply to

    Re: WebGrid selection to filter another WebGrid

    Hi Jason, 

    I can suggest something that can get you get started or provide some additional ideas - you can handle the CellClick client side event handler and get the column / key / row and use it to open a new popup (or use this information in some way) to filter the second grid,

    e.g.

    function UltraWebGrid_CellClickHandler(gridName, cellId, button)
    {
        col=igtbl_getColumnById(cellId);
        cell=igtbl_getCellById(cellId);
        grd=igtbl_getGridById(gridName);
        if(col.Key == 'CellKeyID')
        {
            window.open('popup.aspx?id=' + 0 + '&GridID=' + grd.ClientID,'user','location=0,status=0,scrollbars=no,height=550,width=510');
        }
    }

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems