Hi,
I'm using rad combo box within the rad grid. The combo box is populated on the client and within the combo there's an "add new item" link.
When I insert new item, the item is inserted into the database via web service but the combo box doesn't update with the new item. I think if i'm able to some how invoke or call the combo_onload client event after I've inserted the new item that this would work. So my question is can I call the combo_onload client event from another method?
Thanks,
ron.
I'm using rad combo box within the rad grid. The combo box is populated on the client and within the combo there's an "add new item" link.
When I insert new item, the item is inserted into the database via web service but the combo box doesn't update with the new item. I think if i'm able to some how invoke or call the combo_onload client event after I've inserted the new item that this would work. So my question is can I call the combo_onload client event from another method?
function OwnerComboBox_OnLoad(sender, eventArgs) { InvoiceWebService.GetItemsByCompanyId(sessionStorage.CompanyId, OnItemsComplete); } function OnItemsComplete(result) { for (var i = 0; i < result.length; i++) { var item = new Telerik.Web.UI.RadComboBoxItem(); item.set_text(result[i].Items + ""); var grid = $find("ctl00_BodyContentPlaceHolder_grdInvoiceItems"); var masterTbl = grid.get_masterTableView(); var gridRow = masterTbl.get_dataItems()[0]; var comboBox = gridRow.findControl("ddlItems"); comboBox.get_items().add(item); } }ron.