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  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
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
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  questions on dnntextsuggest please
Previous Previous
 
Next Next
New Post 2/20/2007 1:38 PM
User is offline John Braga
73 posts
10th Ranked


questions on dnntextsuggest please 

I have been experimenting with the DNNTextSuggest control (using the latest 1.5.0 webcontrol download, VWD, DNN 4.4.1) and feel sure it will eveutnally do what I need.  But some questions please:

a.  If I set the defaultnodecssclass property the cssclass property gets set to the same value.  Conversely if I delete the cssclass property, the defaultnodecssclass property also gets deleted.  Is this a bug?

b. I understand that the NodeClick event will not fire when I select a node from the nodelist (because I am not using a postback).  But I would like to set a label.text value to the node text when the user selects a node (preferably rather than setting the text value of the dnntextsuggest control).  How can this best be done?  Where would I add the javascript function?  Add it to the DNNNode as it is created in the populateondemand event?

c.  I would be grateful if you could explain the use of the Target property.

d.  On your webcontrols sample website, if you press 'a' when in the text suggest control, you see a list of 3 items: Adams, Addison, Andrews.  The first 2 have the font color yellow (or white?), while Andrews has font color of black.  Why is this?

thanks!

 
New Post 2/21/2007 10:36 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: questions on dnntextsuggest please 

a. Yes, this is a bug.  I just created an issue for it.

b.  A JS function can either be added on each node (JSFunction property), or if they are all going to point to the same function use the JSFunction specify it on the control itself to save on payload.  Your next question most likely will be how do I get a reference to the selected node.  This can be accomplished like this.

dnn.controls.controls['MyDNNTextSuggest'].selNode

(obviously you cannot hardcode the control id, but this should get you started).

c.  The target property I admit is a bit of a far stretch for the textsuggest control.  It is only applicable to scenerios where you have specified a clickaction of navigate.  It would specify which frame to do the navigation.  I doubt anyone will wish to use it for textsuggest.

d.  I am simply demonstrating the ability to specify unique CSS for each node.  If you download the sample code you will find logic that is setting specific nodes to have a class of SpecialNode. 


 
New Post 2/22/2007 1:30 AM
User is offline John Braga
73 posts
10th Ranked


Re: questions on dnntextsuggest please 

Thanks Jon.  All is becoming just a little clearer...

John B

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  questions on dnntextsuggest please
 


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.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

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