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

[Solved] BindTo and LoadContentFrom

1 Answer 81 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mario
Top achievements
Rank 1
Mario asked on 02 Aug 2011, 04:02 PM
Hi guys!

I've a problem: I would use the "BindTo" method to render my tabs reading information from a DB.
Here my basic code
Html.Telerik().TabStrip()
.Name("TabStrip")                     
.BindTo(Model.categorie, (item, data) =>
{
   item.Text = data.Nome;                                
})
.Render();

Well, now I would use the method LoadContentFrom to load my data only when I click on the Tab but on the "item" object hasn't this method.
How can I load dynamic content using BindTo?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Aug 2011, 03:44 PM
Hello Mario,

 You can try this:

Html.Telerik().TabStrip()
.Name("TabStrip")                     
.BindTo(Model.categorie, (item, data) =>
{
   item.Text = data.Nome;
   item.ContentUrl = Url.Action("Action", "Controller");
})
.Render();


Regards,
Atanas Korchev
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

Tags
TabStrip
Asked by
Mario
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or