How to Assign the data to Kendo Dropdown in web page?

4 posts, 0 answers
  1. Bahakaran
    Bahakaran avatar
    2 posts
    Member since:
    Jun 2015

    Posted 22 Jun 2015 Link to this post

    Hi,

     

    I have a Kendo drop down (html.kendo().dropdownlist()) in my webpage and I have identified it through the id. how can I assign the option that passed through data sheet. Currently I have to do a foreach search and compare all the available items in the dropdown. Is there any easy way to do this.

    I am using C#  as the language to code.

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 25 Jun 2015 Link to this post

    Hi Bahakaran,

    Here is how you can get the data from the source file:

    Pages.YouKendoApplication.KendoList.SelectItem(Data["columnName"]);

    Let me know if this helps.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Bahakaran
    Bahakaran avatar
    2 posts
    Member since:
    Jun 2015

    Posted 03 Jul 2015 Link to this post

    Hi Boyan,

     

    The application I am using is rendering the Kendo controls to HTML controls. therefore , I have identified them as HTML Controls.

    how can this be done now?

     

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 08 Jul 2015 Link to this post

    Hello,

    You should use the same approach but for the HTML control.

    Regards,
    Ivaylo
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!