Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
AsyncPostBack from change in the datasource of a DropDownList Column of a UltraWebGrid
posted

 I need to raise an AsyncPostBack

when the datasource of a DrowpDownList Column of an UltraWebGrid change.

The ultrawebgrid is inside a WebAsyncRefreshPanel.

There are a way to do this?

Parents
  • 24497
    posted

    Hi,

    To raise async postback you may use member function refresh(), or invoke "submit" action of any child element in WARP, or call explicitly __doPostBack with id of any html element in WARP. Below example for local element and refresh().

    <script type="text/javascript">
    function
    submitWARP()
    {
     
    var submitByRefresh = true;
     
    if(submitByRefresh)
      {
       
    var warp = ig$('WebAsyncRefreshPanel1');
       
    if(warp)
           warp.refresh();
      }
     
    else
        
    __doPostBack('elemInWARP', '');
    }
    </script>

    <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server">
      <span id="elemInWARP"></span>
      <input value="submit" type="button" onclick="submitWARP()" />
    </igmisc:WebAsyncRefreshPanel>

Reply Children