Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDatagrid Databind Not Working Under ClientAPI??Datagrid Databind Not Working Under ClientAPI??
Previous
 
Next
New Post
2/21/2007 4:43 PM
 

I'm trying to build a "File Manager" for allow our students to access files on a network drive at home just like they do when they're in our labs but I can't seem to get the datagrid that'll list the files to populate when a node on the DNNTree is clicked. If I bind a test datagrid in the Page_Load function it binds but the exact same code doesn't when I call it from PopulateTree. The grid appears to get the datasource and binds without any errors (rows match what the source has) but it never displays on the page. Any idea what I'm missing?

 
New Post
2/21/2007 5:03 PM
 

If I am understanding you correctly you are trying to populate another control during the callback of the treeview's populate on demand?  While it is true that the context of the callback is maintained, only the data relevant to the control raising the callback is sent back.  The rest of the page's html is not sent back down to the treeview. 

Am I understanding you correctly?

 


 
New Post
2/21/2007 5:35 PM
 
Yes that is what I'm trying to do. What I'm trying to do is populate a datagrid based on the node of the tree that's selected (similar to DNN's File Manager). I realize that the html isn't being regenerated (no postback) but I'm not sure what I need to do to force (I guess) a postback.
 
New Post
2/21/2007 5:54 PM
 
The way the filemanager works is it uses the NodeClick event to populate the grid.  This occurs during a postback only when your node has it's ClickAction set to PostBack.  I believe this is the default for the TreeNodes (didn't check).

 
New Post
2/21/2007 6:15 PM
 
Doh!!!! I had it set to Expand. I just changed it to Postback and it's working closer to what I need. Would I need Javascript to be able to have both the postback and expand happen on a NodeClick?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDatagrid Databind Not Working Under ClientAPI??Datagrid Databind Not Working Under ClientAPI??


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out