I'm trying to populate a RadComboBox on $(document).ready
The information comes from an .ashx file that renders the json for me. Currently, with a normal dropdownlist, i would add the following script:
And this works fine. Needless to say, this doesn't work with the rad control. So my question is how can I achieve this same effect with the RadComboBox?
The information comes from an .ashx file that renders the json for me. Currently, with a normal dropdownlist, i would add the following script:
$(document).ready(
function
() {
$.ajax({
url:
"ResponsePages/Assignees.ashx?userID="
+ $(
"#hfCurrentUserGuid"
).val(),
data:
""
,
type:
"GET"
,
datatype:
'json'
,
success:
function
(data) {
var
list = $(
"#cboAssignees"
);
$.each(data,
function
() {
list.append($(
"<option />"
).val(
this
.Guid).text(
this
.Name));
});
}
});
});
And this works fine. Needless to say, this doesn't work with the rad control. So my question is how can I achieve this same effect with the RadComboBox?