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
Products › Development › Forge › Component - WebControls Register  |  

 

dnn_ct_webcontrols_170x64.gif

 

  Quick Links  
 


  Team Leadership  

Jon Henning

jonhenning.jpg

 


  DotNetNuke Projects  
The DotNetNuke Projects are a special category of platform extensions which are developed by volunteers to conform to the high professional standards mandated by DotNetNuke Corporation. The DotNetNuke Projects are distributed as a standard part of the DotNetNuke core application release offerings.

 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

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
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke® Project :: WebControls

The primary purpose of the DotNetNuke WebControls project is to allow developers to utilize feature-rich controls in their applications without the associated cost or distribution restrictions associated with commercial controls. All controls utilize the ClientAPI, and therefore support a rich client side object model, work cross-browser, and utilize AJAX functionality.

The DotNetNuke TreeView control is an open-source ASP.NET WebControl that has a rich client-side object model and supports advanced featuresets like populate on demand and keyboard navigation.
The DotNetNuke Menu control is an open-source ASP.NET WebControl that has a rich client-side object model and supports advanced featuresets like populate on demand and keyboard navigation (soon).
The DotNetNuke Label Edit control is an open-source ASP.NET WebControl that allows any label to be editable on the client where it uses a client-callback to persist the changes. Simply specify a client-side event like onclick to allow the user to edit. It supports RichText and MultiLine editing.
The DotNetNuke Text Suggest control is an open-source ASP.NET WebControl that allows any textbox to suggest the results the user is looking for by dynamically populating a menu of matched items.
The DotNetNuke Tab Strip control is an open-source ASP.NET WebControl that allows a page to be displayed in a tabular manner. It supports 3 rendering modes, including AJAX on-demand loading to allow for optimal performance.
The DotNetNuke ToolBar control is an open-source ASP.NET WebControl that allows a toolbar to be attached to any control.
 


WebControls Project Blog
Mar 2

Posted by: Jon Henning
3/2/2007

DotNetNuke has supported navigation providers for about a year and a half.  Currently there are 4 providers we support.  The provider model is based off of interfaces, promoting a one-size-fits-all mentality.  This can be both a blessing and a curse.  The curse as it relates to the navigation providers is that it limits the features that the navigation provider's control can support.  For example, recently I added support for the DNNMenu to support horizontal submenus.  In order for this feature to be used in a skin (using the navigation provider), it needs a property exposed.  Adding this property, would expose it to all providers, which of course makes little sense for something like a treeview.  4.5 will no have the ability to specify custom attributes to the navigation providers.  This can be accomplished by adding the following to the skin's ascx file. 

The following directive needs to be added at the top

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>

Then within your skin object you simply embed a CustomAttributes element, then specify one or more attributes.

    <dnn:NAV ID="dnnNav" runat="server" ProviderName="DNNMenuNavigationProvider">
    <CustomAttributes>
      <dnn:CustomAttribute Name="SubMenuOrientation" Value="Horizontal"/>
    </CustomAttributes>
    </dnn:NAV>
 


If you interested in how the skin object was modified, keep reading.

This is accomplished by adding a Generics collection to the NavObjectBase (which is used by the Nav.ascx skin object).


    <DesignerSerializationVisibility(DesignerSerializationVisibility.Content), PersistenceMode(PersistenceMode.InnerProperty)> _
    Public ReadOnly Property CustomAttributes() As Generic.List(Of CustomAttribute)
      Get
        Return m_objCustomAttributes
      End Get
    End Property

The provider will then be able to enumerate these custom attributes and apply them to the underlying control.

      For Each objAttr As DotNetNuke.UI.Skins.CustomAttribute In Me.CustomAttributes
        Select Case objAttr.Name.ToLower
          Case "submenuorientation"
            Me.Menu.SubMenuOrientation = DirectCast(System.Enum.Parse(Me.Menu.SubMenuOrientation.GetType, objAttr.Value), DotNetNuke.UI.WebControls.Orientation)

        End Select
      Next

Tags:

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

" 4.5 will no have the ability to specify custom attributes to the navigation providers"

Are they looking at adding this in the future? I agree that this has been one of the great limitations of the provider model.

By pspeth on   3/5/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Thats a typo. It should say "4.5 will now have..."

By jhenning@solpart.com on   3/5/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

This is great news!! I look forward to seeing this in the upcoming release.

By edegagne on   3/6/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Thx

By pspeth on   3/6/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Westa,
I don't *think* 4.5 will include support for this attribute collection in HTML based skins.

By jhenning@solpart.com on   3/28/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Hey jon
Will this capability be impletement for HTML based skins - and if so - HOW
Westa

By wtatters on   3/28/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Hi,

This new way to add custom attributes to tell the provider information is very interesting. I look how to implement the following feature:
The web designer build a skin with two different menus. Each menu has its name: (First and Second). And when he adds a Tab, he wants to place the Tab "A" in the menu named First and then the Tab B in the menu named Second. I will use the a META tag () provided in the Tab properties. This tabs should only appear in there respective menu.

Could you give me the way should I implement it?


Christian Poirier
TELUQ - L'Université à distance de l'UQAM

By chrisptree on   3/15/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

What's the DNN 4.5 way of enabling and utilizing edit in place on controls such as DNN Tree? I was half-expecting to see "EditEnabled" on a few controls other than DNN Label.

By quaker199 on   8/17/2007

Re: Navigation Provider Custom Attributes - A Sneak Peak At 4.5.0

Hi Jon,

absolutely impressive, what you are doing for DotNetNuke!

I am playing around with DNN now for about 4 weeks - so I am a noob. In this time, I tryed to realise a homepage with DNN and I nearly fizzled out, because I want have a 2 part main- and submenu AND I want to underlay the menues with pictures for normal, hover and selected/active.

Here you can see, what I want to do:

http://www.pluginlab.com/dreamweaver-extension.asp?pr=HiMenu

(Have a look to the sample pictures)


Maybe because I am a noob on DNN, I didn't find a navigation system on DNN, which could do that. Today, finally, I detected, that you are working on these WbControls - great! With these WebControls and particularly the new DNNMenu is nearly that, what I need .
I have played a little bit around with the CSS and have seen, that the menu items are built with three parts (icon, text and arrow). If these 3 parts could be surrounded by a 4. div-Tag (or an other solution), which then includes a background-image, I guess, that should resolve my problem and could be also for others a very intresting option.

Regards
Franco

By FrancoErpf on   3/6/2007
 


PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com
Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk

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