I am trying to add elements to RadComboBox in "success" ajax request method.
However, I am getting "Telerik is not defined" error when I try to create the item.
How to achieve my goal?
I have tried a lot of stuff, but no luck and I am out of ideas now :(
This happens in MASTER PAGE. On usual pages everything is ok.
And yes, I have read this: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html
And I do not have outputcache directive and I do have webresource reference in my web.config
However, I am getting "Telerik is not defined" error when I try to create the item.
How to achieve my goal?
$.ajax({ type: 'POST', url: '../WebServices/GlobalEntityHelper.svc/GetEntityData', data: JSON.stringify({ request: JSON.stringify(dataToSend) }), contentType: 'application/json; charset=utf-8', dataType: 'json', success: function (result, status) { srcWindow.GlobalEntityRadCombobox.set_visible(result.d.Visible); if (srcWindow.GlobalEntityRadCombobox.get_visible()) { var entityItems = srcWindow.GlobalEntityRadCombobox.get_items(); entityItems.clear(); srcWindow.GlobalEntityRadCombobox.trackChanges(); for (var i = 0; i < result.d.DataSource.length; i++) { var entityItem = new Telerik.Web.UI.RadComboBoxItem(); entityItem.set_text(result.d.DataSource[i].Key); entityItem.set_value(result.d.DataSource[i].Value); entityItems.add(entityItem); } srcWindow.GlobalEntityRadCombobox.commitChanges(); ddlHilightOption(srcWindow.GlobalEntityRadCombobox, '', result.d.EntityValue); jQuery.data(srcWindow.GlobalEntityRadCombobox, 'filter-datamember', result.d.EntityFilterDataMember); srcWindow.GlobalEntityRadCombobox.prop('entityTypeConst', result.d.EntityTypeConst); } }, error: function (jqXHR, textStatus, errorThrown) { }I have tried a lot of stuff, but no luck and I am out of ideas now :(
This happens in MASTER PAGE. On usual pages everything is ok.
And yes, I have read this: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html
And I do not have outputcache directive and I do have webresource reference in my web.config