Alpha Video Training
Results 1 to 3 of 3

Thread: How do i change the delete icon 'tooltip' (title="Delete Row")

  1. #1
    Member
    Real Name
    Robert Earl Allin
    Join Date
    Apr 2009
    Location
    Toronto, Ontario
    Posts
    241

    Question How do i change the delete icon 'tooltip' (title="Delete Row")

    Trying to implement two languages on a grid.

    I can't find where the 'Delete Row' tooltip is defined to be able to change it for another language.

    Also - the Undo Changes and Save Changes tooltips when I have icons on the grid row.

    Does anyone know where these tooltips are stored?

    Thanks,

    Robert

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,759

    Default Re: How do i change the delete icon 'tooltip' (title="Delete Row")

    Not sure where they're actually stored but you can get at them after the grid is rendered. This is where all this stuff get really fun!

    In Grid Properties you have a Customize section that lets you get at Javascript Windows and Customize Icons, but I couldn't see a property for the tools tips that pop up when you hover over an object.

    In the Grid Javascript System Events OnGridRender, put this:

    Code:
    var divCollection = document.getElementsByTagName('img');
    for (var i=0; i < divCollection.length; i++) {
        if(divCollection[i].getAttribute("title") == "Save changes") {
    	divCollection[i].setAttribute("title","New Save changes");
        } 
        if(divCollection[i].getAttribute("title") == "Undo changes") {
    	divCollection[i].setAttribute("title","New Undo changes");
        } 
    }
    You can grab any part of the rendered HTML and look through it. To make this really functional I'm going to set up a table with a new language code and map a few tool tips. Then just go get it and set it.

    Not sure if there's an easier or better way to do this, but this is one way.

  3. #3
    "Certified" Alphaholic
    Real Name
    Frank Bicknell
    Join Date
    Feb 2010
    Location
    39.1915° N, 84.4348° W
    Posts
    2,467

    Default Re: How do i change the delete icon 'tooltip' (title="Delete Row")

    David,

    Thanks for sharing your creative ideas for expanding Alpha's functionality. I have been looking for a way to create a mouse over text for the row expander icon. I will experiment with your method to get it to work.

Similar Threads

  1. Issue: "Row Expander" vs "Linked Grids/Content"
    By roberto in forum Application Server Version 10 - Web/Browser Applications
    Replies: 8
    Last Post: 02-08-2011, 06:36 PM
  2. Cannot delete a report with "Invalid structured store image"
    By Rolin in forum Alpha Five Version 8
    Replies: 0
    Last Post: 02-19-2007, 05:53 AM
  3. Control "Delete Record" in an embedded browse
    By smrogers in forum Alpha Five Version 7
    Replies: 9
    Last Post: 03-22-2006, 02:55 PM
  4. How to capture return "Delete this record".
    By Tony Saladino in forum Alpha Five Version 6
    Replies: 2
    Last Post: 11-14-2005, 06:18 PM
  5. "Undo on delete" not working...
    By John Toalson in forum Alpha Five Version 4
    Replies: 3
    Last Post: 04-21-2001, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •