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 ForumsClientAPIClientAPIDNNTree donDNNTree don't show
Previous
 
Next
New Post
1/31/2006 6:31 AM
 

Hi, I have downloaded the WebControls and tries to get DNNTree to work in a UserControl. I took the following subroutines as a start.

   SetTreeDefaults() 
   PopulateTree()
   and
   Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
      
MyBase.OnInit(e)
      DotNetNuke.UI.Utilities.ClientAPI.HandleClientAPICallbackEvent(
Me.Page)
   End Sub

Also I registered in the .ascx the DotNetNuke.UI.WebControls, and set up the control exactly as in the DNNTree.aspx example. however I see nothing. No errors, the code runs through all fine, but nothing shows up. Any ideas what I'm missing? I have DNN3.2.2 and the WebControls are the last versions available on http://www.dotnetnuke.com/Default.aspx?tabid=874. IE6

Thanks,
/Rob

 
New Post
1/31/2006 9:02 AM
 

If I had to take a guess, I'd say that you are missing the clientapi script files in your project...  I assume by your post that you are trying to use the webcontrols in a separate project.

If you do a view source on the page what do you see?


 
New Post
1/31/2006 10:21 AM
 

Thanks Jon! This is what I see from the source of my app. What I've done is just to add an extra usercontrol to the HelloAJAX example called DNNTree.ascx, registered it in ModuleDefinitions and run in together with the rest of the HelloAJAX example files. The module shows up nicely together with the other two, and the code is runs through SetTreeDefault() nice and easy, but nothing shows up.

<script src="js/dnn.controls.dnntree.js"></script>
 <SPAN ID="dnn_ctr368_dnnACTIONS_ctldnnACTIONS_divOuterTables"></SPAN>
 <script language=javascript src="/DotNetNuke/DesktopModules/MyCompany - HelloAJAX/helloajax.js"></script>
 <script src="/DotNetNuke/js/dnn.js"></script>
 <SPAN ID="dnn_dnnMENU_ctldnnMENU_divOuterTables"></SPAN>
 <script src="/DotNetNuke/js/dnn.xml.js"></script>
 <script src="/DotNetNuke/js/dnn.xmlhttp.js"></script>
 <SPAN ID="dnn_ctr369_dnnACTIONS_ctldnnACTIONS_divOuterTables"></SPAN>
 <SPAN ID="dnn_ctr367_dnnACTIONS_ctldnnACTIONS_divOuterTables"></SPAN>

<!-- Solution Partner's ASP.NET Hierarchical Menu (v1.6.1.0) -
http://www.solpart.com -->
<SCRIPT SRC="/DotNetNuke/controls/SolpartMenu/spmenu.js"></SCRIPT>

/Rob
 
New Post
1/31/2006 2:50 PM
 

Jon, thanks a million for your mail. you solved it as usual.

your suggestion to other here suffering from the same problem I had.. I copied the .ascx code strait from the .aspx example without reading.(wonder if that is common, or if I'm becoming lazy?) Ending up telling the DNNTree object to look for it's script at the wrong place. Removing the reference attribute "TreeScriptPath="js/"" solved the issue.

<DNN:DNNTree id="MyDNNTree" runat="server" CallbackStatusFunction="callbackStatus" TreeScriptPath="js/"
    DefaultNodeCssClassSelected="SelClass" ExpandedNodeImage="Images/ElementMinus.jpg" CollapsedNodeImage="Images/ElementPlus.jpg"
    DefaultNodeCssClassOver="HoverClass" DefaultNodeCssClass="NodeDefault" DefaultChildNodeCssClass="ChildNodeDefault"
    DefaultIconCssClass="NodeIconDefault" IndentWidth="100" ExpandCollapseImageWidth="9"></DNN:DNNTree>

Thanks again Jon!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNTree donDNNTree don't show


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