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

6 posts, 0 answers
  1. durga bhavani
    durga bhavani avatar
    19 posts
    Member since:
    May 2012

    Posted 07 Jun 2012 Link to this post

    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
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2895 posts

    Posted 11 Jun 2012 Link to this post

    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!
  3. durga bhavani
    durga bhavani avatar
    19 posts
    Member since:
    May 2012

    Posted 12 Jun 2012 Link to this post

    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
  4. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2895 posts

    Posted 13 Jun 2012 Link to this post

    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!
  5. durga bhavani
    durga bhavani avatar
    19 posts
    Member since:
    May 2012

    Posted 30 Jun 2012 Link to this post

    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



  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2895 posts

    Posted 04 Jul 2012 Link to this post

    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!
Back to Top