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

FindTabByValue

1 Answer 82 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 19 May 2011, 02:00 PM
I am new to the company, and new to Telerik controls.  In addition, I THINK we are using an older version right now.

What I need to do is have ALL of the following Tabs text values return true from the FindTabByValue if I pass in 'Notes' as the value.

Notes
Notes(0)
Notes(3)

Will this work with this method?  Is there a way to do this?

Thanks!

Rich

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 20 May 2011, 02:30 PM
Hello Rich,

Unfortunately the FindTabByValue() method will not help you as it  is searching by equal value. In your case you'll need something which performs "Contains" search. You can use the Where<> extension method provided with System.Linq namespace:

var tabs = RadTabStrip1.GetAllTabs().Where(t => t.Value.Contains("Notes"));

Regards,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TabStrip
Asked by
Rich
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or