• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 528
  • Last Modified:

How to fill ComboBox in View from controller

Actually i am new in mvc3 and not experience in JQuery, I am filling

Html.Telerik().ComboBox()
on client site like

var combobox = $('#ComboBox').data('tComboBox');

var dataSource =
[
    { Text: "Product 1", Value: "1" },
    { Text: "Product 2", Value: "2" },
    { Text: "Product 3", Value: "3" },
    { Text: "Product 4", Value: "4" },
    { Text: "Product 5", Value: "5" },
    { Text: "Product 6", Value: "6" },
    { Text: "Product 7", Value: "7" },
    { Text: "Product 8", Value: "8" },
    { Text: "Product 9", Value: "9" }
];

combobox.dataBind(dataSource);

actually i want to pull this data from controller and want to fill in view can you tell me how i will do that, send me code exemple that would be easy for me. Thanks
0
farjack1
Asked:
farjack1
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now