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  |  

telerik -- supercharge your DNN websites
  Ads  
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNN Text Suggest Problems
Previous Previous
 
Next Next
New Post 5/29/2008 8:34 PM
User is offline pullp
34 posts
10th Ranked


DNN Text Suggest Problems 

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 6:53 PM
User is offline pullp
34 posts
10th Ranked


Re: DNN Text Suggest Problems 

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 5:55 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNN Text Suggest Problems 

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 9:15 PM
User is offline pullp
34 posts
10th Ranked


Re: DNN Text Suggest Problems 

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 6:37 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNN Text Suggest Problems 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNN Text Suggest Problems
 


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.

 


DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca

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