Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 27, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: SelectAll() with a Currency Control
Remy
Posts: 42
 
SelectAll() with a Currency ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 12 10:07 AM
fiogf49gjkf0d

Is there an equivalent to C# SelectAll() for Currency Control boxes? I currently use Focus() after a OnChange event, but this places the cursor at the beginning of the box. I either need it to select all the text or place the cursor at the end...Any ideas?


 


Thanks!

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: SelectAll() with a Currency ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 12 10:51 AM
fiogf49gjkf0d

Keep in mind that you are dealing with a Composite control. Part of it is a Text Box, so in theory you should be able to obtain a reference to the actual Text box and then apply your code directly to it.

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: SelectAll() with a Currency ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 12 4:44 AM
fiogf49gjkf0d

I dont think there is an out of the box ASP.NET selectall(), but you could add some javascript to do this from your onchange event...


As Raul mentioned it is a composite control, I think the TextBox is the first control in the colleciton though so something like this may do the trick:


((TextBox)MYCURRENCYCONTROL.Controls[0]).Attributes.Add("onfocus", "this.select()");


Do this as well as your Focus() call and it should then run the javascript you have attached to the control to select everything. Give that a try..


Cheers,


Nick



[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: SelectAll() with a Currency ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 12 5:15 AM
fiogf49gjkf0d

Or you could of course (probably better actually) just run this on a quickformload:


 


((TextBox)MYCURRENCYCONTROL.Controls[0]).Attributes.Add("onfocus", "this.select()");


Keep your onchange as is, just calling the Focus();..

[Reply][Quote]
Remy
Posts: 42
 
Re: SelectAll() with a Currency ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 12 8:58 AM
fiogf49gjkf0d

That worked great Nick. Thanks!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/27/2025 9:05:41 PM