I am using oracle as my back end. how to bind radcombobox with database(oracle) table values form client side. as follows if i have emp table then columns are emp id and name so i has to bind emp id and name to rad combo box form client side.
Asked
Active
Viewed 8,431 times
1 Answers
3
Get your values using ajax method (you can use ajax method of jquery).
function BindListToCombo(cbo, list) {
$find(cbo).clearItems();
$.each(list, function (a, item) {
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(item.Name);
comboItem.set_value(item.Id);
$find(cbo).get_items().add(comboItem);
});
var comboItem = $find(cbo).findItemByValue(0);
comboItem.select();}
Use this function to bind the list to combo.

Jagz W
- 855
- 3
- 12
- 28
-
thanks for reply, what is code for code behind in cs file will you plz share it. – Sreedhar goud Nov 08 '12 at 06:20
-
Write a web-method with return type of JSON List. Call that method using jquey-Ajax method – Jagz W Nov 08 '12 at 06:24
-
http://www.codeproject.com/Articles/287430/Calling-ASP-Net-WebMethods-using-jQuery – Jagz W Nov 08 '12 at 07:41