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 ForumsClientAPIClientAPIquestions on dnntextsuggest pleasequestions on dnntextsuggest please
Previous
 
Next
New Post
2/20/2007 4:38 PM
 

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 1:36 PM
 

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 4:30 AM
 

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

John B

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIquestions on dnntextsuggest pleasequestions on dnntextsuggest please


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