Databind a combobox in javascript

2 posts, 0 answers
  1. Josh
    Josh avatar
    5 posts
    Member since:
    Jan 2011

    Posted 27 Jul 2011 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jul 2011 Link to this post

    Hello Josh,
    One suggestion is to make an ajaxRequest on window close and call the databind method to refresh the combobox.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    function onWindowClose()
    . . . . . . . . . . .
    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

Back to Top