This is a migrated thread and some comments may be shown as answers.

Client side IsBreak

3 Answers 74 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 01 Apr 2010, 12:16 AM
Hi,

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

Thanks.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 01 Apr 2010, 04:25 PM
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.
0
Accepted
Veselin Vasilev
Telerik team
answered on 02 Apr 2010, 09:59 AM
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.
0
Pierre
Top achievements
Rank 1
answered on 02 Apr 2010, 04:28 PM
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.
 
Tags
TabStrip
Asked by
Pierre
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or