How to pass an exernal parameterto filter a grid panel with paging tool bar connected to a webservice

  1. #1

    How to pass an exernal parameterto filter a grid panel with paging tool bar connected to a webservice

    Hi,

    I have a grid panel which uses a store (XML reader) bound to a webservice and has a paging tool bar with the paging managed remotely. I need to set a parameter value to filter the data coming back according to which Item the user has selected on a tree panel.

    So the user clicks a node on the tree panel and I want to pass this value into the webservice so that the server returns the first n ( as defined by the paging tool bar) records filtered by the value of the tree node. I cannot find a away to make this work.

    I can get the webservice working and returning data to the grid panel, and can apply a filter from the grid panel that gets to sent to the server, but I have had no joy in cracking the above issue.

    Can you please provide some assistance as to how to do this.

    many thanks

    Mark Phillips
  2. #2
    How do you initiate a request to the webservice? DirectEvent of TreePanel?
    If yes then use ExtraParameters of that direct event
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    I am not sure I follow, however my grid is bound to the store which is uses an HTTP Proxy Get to retrieve the data, and uses base params to pass the filters coming from the grid panel filters plugin.

    When a user clicks on a tree node this triggers a direct event through which I want to get the store to rebind to the web service passing in the value of the currently selected node to the webservice which then passes that as a parameter to the stored procedure which in turn filters the query on this value.

    I have tried to rebind my store in code behind, I assume I need to bind this to the same webservice by setting up a reference to the webservice?

    My other thought would be to try and get the grid filter to source its value from the treepanel via JS ?

    Not sure which is the right / best approach?

Similar Threads

  1. Replies: 11
    Last Post: Feb 08, 2012, 8:18 AM
  2. [CLOSED] Grid view Paging tool bar
    By majestic in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Dec 01, 2010, 11:37 AM
  3. <ext:filter panel> missing in tool box
    By purvi in forum 1.x Help
    Replies: 2
    Last Post: Oct 05, 2010, 6:14 PM
  4. grid panel filter with paging
    By snow_cap in forum 1.x Help
    Replies: 1
    Last Post: Aug 02, 2010, 6:31 PM
  5. Replies: 1
    Last Post: Oct 09, 2009, 3:46 AM

Tags for this Thread

Posting Permissions