Client side IsBreak

4 posts, 1 answers
  1. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 31 Mar 2010 Link to this post

    Hi,

    Exist some way to define IsBreak for Tabs client side formed.

    Thanks.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 01 Apr 2010 Link to this post

    Looking through the client-side API it doesn't seem like this is available on the client-side of things. Looking through the HTML output in FireBug I see that all the RadTabs are being represented with <li> tags, with the class "rtsLI". When you define a "isBreak" on an item there is an added <li> with the class "rtsBreak". If you are looking into doing this client-side I believe you would have to modify the HTML to incorporate this <li> element yourself.
  3. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 02 Apr 2010 Link to this post

    Hello guys,

    Looking through the code I found the getter and setter of the IsBreak property:
    get_isBreak() and set_isBreak(true|false)


    Regards,
    Veskoni
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 02 Apr 2010 Link to this post

    Hi

    Thanks guys, exist some optimizing solution to limit the multilines to min and obtain best presentation? I have tested using some modulus but is not very accurated.

        var q1=count%6;var q2=count%7;var q3=count%8; //count is tab count
        var arraysol=[q1,q2,q3]; 
        var best=Math.max(q1,q2,q3); 
        var bestpos=arraysol.indexOf(best); 
        /*var perfect=Math.min(q1,q2,q3); //search modulus zero for 6,7,8
        var pefpos=arraysol.indexOf(perfect); 
        if(perfect==0) 
        {   
          best=perfect
          bestpos=pefpos
        }*/ 
        if(bestpos==1){ useq=6;} 
        if(bestpos==2){ useq=7;} 
        if(bestpos==3){ useq=8;} 

    regards.
     
Back to Top