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

How to get the values and the content dynamically from the database?

5 Answers 181 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
durga bhavani
Top achievements
Rank 1
durga bhavani asked on 07 Jun 2012, 09:27 AM
Hi,

I am having a table with three columns Id,name and Bit
I want to display the names of the tabstrip from the name column which contains some names
and the i want to display the content also based on the bit filed the bit filed is a boolean value
i.e either true or false.If the bit filed is 0 i want to display some content and if the bit field is 1 i want
to display another content.And i am trying to do this entire process dynamically.

Is it possible using kendoUI,please provide me sample or examples

Thanks

5 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 11 Jun 2012, 02:09 PM
Hi Durga,

It is possible to set the field of the data item that provides the text content and the tab name of the TabStrip through dataContentField and dataTextField.
$("#tabstrip").kendoTabStrip({
    dataTextField: "textFieldName",
    dataContentField: "contentFieldName",
    dataSource: dataSource
});

In that demo page you can observe this functionality in action. The conditional binding based on boolean field is not supported though.

Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
durga bhavani
Top achievements
Rank 1
answered on 12 Jun 2012, 11:02 AM
Hi Alexander,

Thanks for the reply.
Now i can add tabs dynamically,But when ever i am adding a new tab it is displaying two views on the previously created tab.
i.e whenever i select the last tab a new tab will be added and the newly created tab is having one content and the already existing 
tabs are displaying two contents one is newly created content and other is the content of the previous tab

Hopefully you understand my question

Thanks
0
Alexander Valchev
Telerik team
answered on 13 Jun 2012, 12:46 PM
Hi Durga,

I am afraid that your question is a bit unclear, I tried to reproduce the problem connected with append new tab functionality with this demo, but to no avail. Could you please provide a code snippets demonstrating your current implementation or a small but runnable project that I can test locally? Please send me such example and I will check it right away.
Thank you in advance.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
durga bhavani
Top achievements
Rank 1
answered on 30 Jun 2012, 05:05 AM
Hi Alexander ,

Thanks for the Reply.

I have tried to solve that issue but i cant able to do that.I am sending the screen shots of the output page.Please have a look 
and rectify my problem.
I have placed a newtab tab statically with a div empty.When ever i am clicking the newtab tab it has to add a new tab.That's working properly.But the issue is added new tab is displaying only one view and the remaining tabs will showing two tabs.
Probably you understand my problem.


Thanks



0
Alexander Valchev
Telerik team
answered on 04 Jul 2012, 01:48 PM
Hi Durga,

I am afraid that the provided information is not sufficient enough to determine what is going wrong. As I said in my previous reply, it would be best to send me a small but runnable project that shows your current implementation and replicates the issue.
I tested your scenario in a sample page and got everything to work as expected on my side. For convenience I am attaching the test project.

In case you need any further assistance, I would like to recommend that you open a support ticket, preferably with a runnable project attached. We will do our best to help.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
durga bhavani
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
durga bhavani
Top achievements
Rank 1
Share this question
or