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  |  

Affordable ASP.NET Hosting Service
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


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
1623 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.

 


Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com

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