Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTree don't show
Previous Previous
 
Next Next
New Post 1/31/2006 3:31 AM
User is offline cent_usr
88 posts
10th Ranked


DNNTree don't show 

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 6:02 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNNTree don't show 

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 7:21 AM
User is offline cent_usr
88 posts
10th Ranked


Re: DNNTree don't show 

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 11:50 AM
User is offline cent_usr
88 posts
10th Ranked


Re: DNNTree don't show 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTree don't show
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP