This is a migrated thread and some comments may be shown as answers.

Databind a combobox in javascript

1 Answer 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 27 Jul 2011, 09:36 PM
I have a situation where I am using a RadWindow to open up a form that allows adding/removing items from a datasource. When the window closes I would like to refresh the list (built from that datasource that the window allows the user to edit) which is the databound source for a combobox. I can fire a javascript method when the window closes, but I can't seem to get code to work that will refresh the combobox.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jul 2011, 08:36 AM
Hello Josh,
One suggestion is to make an ajaxRequest on window close and call the databind method to refresh the combobox.
aspx:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
</telerik:RadAjaxManager>
Script:
function onWindowClose()
{
. . . . . . . . . . .
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest();
}

Thanks,
Shinu.
Tags
ComboBox
Asked by
Josh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or