Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

character limit when to use the CUSTOMLABELSTEXT ?

Last post 09-04-2008 14:29 by kknguyen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-15-2008 3:07

    • kknguyen
    • Not Ranked
    • Joined on 08-13-2008
    • Points 25

    character limit when to use the CUSTOMLABELSTEXT ?

    I wonder is there a limitation on the number of character when to use the CUSTOMLABELSTEXT opttion, the outcome cut off  at the position 8 of the last line. any help greatly appreaciated

    CustomLabelsText="$10
    $20
    $30
    $40
    $50
    $60
    What ever it takes

    -----------------------------------------------------------
    $10      20$        $30       $40       $50       $60       What ev

     

    <cc1:WebSlider ID="WebSlider1" runat="server" MaxValueAsString="70" MinValueAsString="10"ValueAsString="10" Width="100%" StyleSetName="RubberBlack" ValueType="Int">

    <ValueLabel Location="FloatTopOrLeft" CssClass="igsli_ValueLabelFloatLShowAll" Format="${0}" />
    <Tickmarks Location="BottomOrRight" NumberOfLabels="7" NumberOfMajorTickmarks="7"NumberOfMinorTickmarks="10" CustomLabelsText="$10
    $20
    $30
    $40
    $50
    $60
    What ever it take">

    </Tickmarks>

     

    </cc1:WebSlider>

    Filed under:
    • Post Points: 20
  • 08-29-2008 17:03 In reply to

    Re: character limit when to use the CUSTOMLABELSTEXT ?

    Hello,

     It is assumed that the labels are within a certain length since they look a little odd with the tickmarks if they are too long. You have a  couple of options to get the label to display the entire text: you can let the text overflow or you can break the text into several lines.

    Create a style for the label, which has the class name igsli_LabelB. Give the style an overflow setting of visible or give it a width and height and put a line break in the long text label.

    div .igsli_LabelB

    {

    overflow: visible;

    }

    Duc Nguyen
    Documentation Specialist
    Infragistics, Inc.
    • Post Points: 20
  • 09-04-2008 14:29 In reply to

    • kknguyen
    • Not Ranked
    • Joined on 08-13-2008
    • Points 25

    Re: character limit when to use the CUSTOMLABELSTEXT ?

    Thanks

    I change on of the css on the control bold below and break a text an it working

    .igsli_ElectricBlueLabelB
    {
     position:absolute;
     overflow:visible;
     text-align:center;
     margin-left:-23px;
     width:46px;
     height:14px;
     white-space:nowrap;
     font-family:Arial, Verdana, Sans-Serif, Courier;
     font-size:11px;
     font-weight:normal;
     color: Black;
    }
     
     
    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems