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 ForumsClientAPIClientAPIDNN Text Suggest ProblemsDNN Text Suggest Problems
Previous
 
Next
New Post
5/29/2008 10:34 PM
 

I am working with DNN TextSuggest.

 <dnn:DNNTextSuggest ID="txtTo"
                    runat="server"
                    onpopulateondemand="txtTo_PopulateOnDemand"
                    Width="250px" DefaultNodeCssClass="SuggestTextMenu"
                    DefaultNodeCssClassOver="SuggestNodeOver"
                    onnodeclick="txtTo_NodeClick">                    
</dnn:DNNTextSuggest>

 

I am able to load the values in "_PopulateOnDemand" event handler. But when I click on the displayed list to select any value I never get the "txtTo_NodeClick" event fired on the server side.

 

Any idea how to get the event handler called?

 

Also, How do I retrieve the selected nodes. For e.g there is a Property in TextSuggest called "DNNNodes". Is that supposed to contain all the selected nodes? I have a button on the form, where I am checking the size of DNNNodes and its always empty no matter how many nodes I select???

 
New Post
5/30/2008 8:53 PM
 

I got the samples from https://sourceforge.net/project/showfiles.php?group_id=77052&package_id=195906

and even there I dont get an event generated for NodeClicK?

 

Also, One thing I observed, after I select the node and click on a Button, I am doing this to get the value.

 

            foreach (DNNNode node in txtTo.SelectedNodes)
            {

               int SelID = Int32.Parse(node.ID);

               string SelectedText = node.text
            }

 

node.ID is null but node.text has correct selected value..When I am loading the nodes, I am assigning an ID to it??

 

 

 

 
New Post
5/31/2008 7:55 PM
 

The control is written to allow for downlevel to render the same way...  ID will only be populated when one is posted back.  This can be done by specifying the ID Token


 
New Post
5/31/2008 11:15 PM
 

ok..I am not sure If I understood your answer.

 

I specified the ID token as braces and when I select one value from the autocompleteresults, the TextBox is populated with Something like "name [1]"..

I dont want that to happen..instead, if I select multiple values (separated by ",") and then click some button which postsback..when in the button click event I am looping through  SelectedNodes collection to get all selected items..I can see the value (or Text) coming properly but ID is null...

 

My appplication is something similar to sending an email..where you have "To" textbox (which is DNNTextBox) and "Send" button..

 

Make sense?

 
New Post
6/4/2008 8:37 AM
 

What if I as a user simply typed in my answer?  You would get the same scenario, where only the text is populated.  Your code needs to support this use of the control as the IDs here would obviously be null).

The control could, I suppose, have a hidden field to store the IDs for the specific scenario you mention, but it would need to be enhanced.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNN Text Suggest ProblemsDNN Text Suggest Problems


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