Populate Grid Panel based on tree panel selection

  1. #1

    Populate Grid Panel based on tree panel selection

    <P align=left>I am trying to populate a grid panel with records that are queried from a database using the id of one of the nodes from a tree panel as the identifier.

    What I did is create a tree panel and add a listener to it to call an ajaxmethod when a node is clicked. In that method I call a webservice that pulls the records into a data source(myds). I then set the store object datasource equal to data source that I just created.

    
    Store1.DataSource = myds
    Store1.DataBind() 
    GridPanel1.DataBind()
    The problem is that the panel is not rendering anything when i click the node. I have the StoreID of the gridpanel set to Store1 with only one column being displayed. Is there something else I need to add to my method to force the panel to render or am I just going about this the wrong way?
  2. #2

    RE: Populate Grid Panel based on tree panel selection

    Hi,

    Set DataSource and DataBind for Store is enough for update data.
    I think you should post full example which demostrates how you try to bind data


    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 0
    Last Post: May 01, 2012, 10:43 AM
  2. [CLOSED] Tree Panel: Multiple selection with check boxes
    By gokcemutlu in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 16, 2011, 3:07 PM
  3. Replies: 3
    Last Post: Jan 06, 2011, 5:46 PM
  4. Replies: 3
    Last Post: Nov 19, 2009, 10:17 AM
  5. Update Panel from Tree Panel selection
    By Marius.Serban in forum 1.x Help
    Replies: 1
    Last Post: May 07, 2009, 7:36 AM

Posting Permissions