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  |  

Maximum ASP
  Ads  
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


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.

 


DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com

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