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-09-2008 14:47 by [Infragistics] Pamela Brasil. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-26-2008 20:18

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

    WebGrid Selection to filter another WebGrid

    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 14:40 In reply to

    Re: WebGrid Selection to filter another WebGrid

     Hi Jason,

    In your rowSelectionChangedListner event handler, you can  do the following:

            SmartRefreshManager srm = SmartRefreshManager.getCurrentInstance();
           
            srm.addSmartRefreshId(toBeFilteredGridViewBinding.getClientId(FacesContext.getCurrentInstance());

    This will ensure that the second "to be filtered" grid will be enqueued for update , via AJAX.

    You should also make sure that you update the data model of the second grid, based on the row selection in the first grid (I suppose you are already doing this).

    I hope this helps,

    --Angel 

    • Post Points: 20
  • 07-09-2008 12:55 In reply to

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

    Re: WebGrid Selection to filter another WebGrid

    Please forgive my ignorance, but which namespace does SmartRefreshManager reside in?  I cannot find it anywhere.

     Thank you,

     Jason

    • Post Points: 20
  • 07-09-2008 14:05 In reply to

    Re: WebGrid Selection to filter another WebGrid

    Jason, 

    It resides at com.infragistics.faces.shared.smartrefresh

    Pamela Brasil
    Technical Documentation Specialist
    • Post Points: 20
  • 07-09-2008 14:34 In reply to

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

    Re: WebGrid Selection to filter another WebGrid

    Ok, but I am using the NetAdvantage for .Net 2008 (CLR 3.5) , that looks more like a Java Packaging schema...Any idea which DLL it's contained in?  Or is there some kind of Add-in?

    • Post Points: 20
  • 07-09-2008 14:47 In reply to

    Re: WebGrid Selection to filter another WebGrid

    Answer

    Hi Jason,

    I'm sorry, I thought you were referring to the NetAdvantage for JSF product as this is the JSF forum.

    Are you using the NetAdvantage for ASP.NET or NetAdvantage for Windows Forms product?

    There are individual forums for each. 

    ASP.NET forum: http://forums.infragistics.com/forums/default.aspx?GroupID=34

    Windows Forms forum: http://forums.infragistics.com/forums/default.aspx?GroupID=37

    Thanks,

    Pamela Brasil
    Technical Documentation Specialist
    • Post Points: 5
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems