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
390
programmatical add refreshpanel
posted

Hello!

 I want to add a refreshpanel to my page by VB code:

 Dim refreshpanel As New Infragistics.WebUI.Misc.WebAsyncRefreshPanel
 refreshpanel.ID = "gridrefresh"
 refreshpanel.Controls.Add(grid) 'grid is defined bevore...
 Me.Controls.Add(refreshpanel)

the problem is that it can't be found by JS:

  var warp = ig$("gridrefresh");
  if(warp)
        warp.refresh();

 i found out, that the difference between a refreshpanel added in the aspx code and added in the vb code is this JS (added automatically):

 try{ig_shared.getCBManager().newPanel('WebAsyncRefreshPanel1','WebAsyncRefreshPanel1',null,[,null);}catch(e){window.status='Can not init WebAsyncRefreshPanel1';}

How can I change my vb - generated Panel that this function is added automatically too?

regards, Philipp 

Parents
No Data
Reply
  • 21382
    posted

     Philip,

    I would think that the WARP panel needs to be on the Form of the page, not the page itself.  VB.Net might have direct property to the main Form  (Me.Form if memory serves) object but you should be able to reach it via:

     

    Me.Controls.FindControl("Form1").Controls.Add()

     

Children