Menu text truncation

Last post 12-19-2007 11:14 AM by micjones. 4 replies.

Sort Posts:

  • Menu text truncation

    08-03-2006, 5:40 PM
    • Loading...
    • micjones
    • Joined on 07-21-2006, 12:44 PM
    • Posts 35

    Some of my database tables have long, descriptive names like "RateScheduleType".  I added spaces in the title attributes of the sitemap file for readability, however, the menu items are truncated.  For example, what should read "Rate Schedule Types" reads "Rate Schedule Ty...", and instead of "New Rate Schedule Type", the submenu reads "New Rate Schedul...".  I've been messing with the stylesheets to no avail.  Any help would be appreciated.  Thanks.

    Mike

  • Re: Menu text truncation

    08-06-2006, 3:05 PM
    • Loading...
    • phuff
    • Joined on 06-11-2002, 12:39 PM
    • Redmond, WA
    • Posts 547
    • AspNetTeam

    Mike, the truncation is done in the CSS Adapter (CssAdapters.dll).  You can not use the CssAdapter by changing the CssAdapters.browser file to not use the CssAdapters file.

    Hope this helps...

    Polita Paulus

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Menu text truncation

    12-12-2007, 6:40 PM
    • Loading...
    • micjones
    • Joined on 07-21-2006, 12:44 PM
    • Posts 35

    I see this is an old chestnut for me.  Can I change the CssAdapters.dll to change the length at which truncation begins?  Thanks.

     mj

  • Re: Menu text truncation

    12-13-2007, 2:13 PM
    • Loading...
    • micjones
    • Joined on 07-21-2006, 12:44 PM
    • Posts 35

    I found a tutorial on CSS Friendly Adapters at:  http://www.asp.net/CSSAdapters/Default.aspx.  I'll go through that and see what I can do.  But, in the meantime, if you know of a "surgical" method I can use to solve this immediate problem, it will be deeply appreciated.  Thanks.

    mj

  • Re: Menu text truncation

    12-19-2007, 11:14 AM
    • Loading...
    • micjones
    • Joined on 07-21-2006, 12:44 PM
    • Posts 35

    I solved the problem by creating a new CssAdapters class ala http://blogs.tamtam.nl/frank/ using CSS Friendly Adapters.  After removing the CssAdapters.dll from my Blinq-generated app, and registering the new one, I had to change adapterType="Microsoft.Web.Blinq.CssAdapters.MenuAdapter" to adapterType="CssFriendly.MenuAdapter" in my CSSAdapters.browser file in the App_Browsers folder.  I lost the hovering feature of my menu control, but I can live without that.

     mj

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter