CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamically Changing Sorter name

Print topic Send  topic

Author Message
Benultra

Posts: 17
Posted: 02/03/2004, 5:55 PM

Hi,

Has anyone come up with away of changing the Names of Sorter Labels. I am trying to implement a multi-language solution for my application, and have I am stuck on a way of changing the names on the sorters at top of my grids dynamically.


Ben:-/
View profile  Send private message
DonB
Posted: 02/03/2004, 6:52 PM

I've never tried it, but you might consider replacing the text of the sorter
with labels. Seems like it should work. The sorter text is (unfortunately)
embedded directly in the HTML file, and is not a tag that you can interact
with at runtime.

--
DonB

http://www.gotodon.com/ccbth


"Benultra" <Benultra@forum.codecharge> wrote in message
news:64020511aceb46@news.codecharge.com...
> Hi,
>
> Has anyone come up with away of changing the Names of Sorter Labels. I
am trying to implement a multi-language solution for my application, and
have I am stuck on a way of changing the names on the sorters at top of my
grids dynamically.
>
>
> Ben:-/
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 02/04/2004, 12:21 PM

Here is a "hacked" example of how to currently solve this in "Before Show" event:
  Tpl.Block("Grid ages").Block("Sorter Sorter_age_id").Variable("Caption") = "MyCaption" 
The above code should work with the sample "ages" Grid shown below:
<!-- BEGIN Sorter Sorter_age_id --><a href="{Sort_URL}">{Caption}</a>
<!-- BEGIN Asc_On --><img src="Themes/Default/AscOff.gif" border="0"><!-- END Asc_On -->
<!-- BEGIN Desc_On --><img src="Themes/Default/DescOff.gif" border="0"><!-- END Desc_On --><!-- END Sorter Sorter_age_id -->

We will make additional improvements to handle this situation cleaner in the next version when implementing internationalization features.

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.