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
55
WARP - Webhierarchicalgrid refresh problem
posted

Hi,

I am creating a sharepoint 2010 visual webpart with a WebHierarchicalDataGrid bound to a sharepoint list.  I wanted to refresh the grid on a button click asynchronously without re-loading the page, hence i placed a WARP control and moved the WebHierarchicalDataGrid inside a WARP. 

ASP code.

 <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server"
                                    Height="402px"  Width="1600px"
                                    TriggerControlIDs="*$Button1" BorderColor="#CCFFCC"> 
                              <ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid_PT" runat="server"

......................

       </ig:WebHierarchicalDataGrid>                               
</igmisc:WebAsyncRefreshPanel>   

 

code behind (vb)

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load

        ' Set up data source and bind to grid
        BindGrid()

   End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        BindGrid()
    End Sub

 

My problem is, the grid is shown properly on the page load (full postback), but on button click, the grid disappears from the WARP.

I am a newbie in ingragistics controls.  Please help.

Thanks

Rajesh

 

Parents
  • 8160
    Verified Answer
    posted

    Hi Rajesh,

    I would suggest you to replace WARP with UpdatePanel, because WARP is an old control and it will be retired soon. Also it was designed for ASP.NET Classic controls.

     

Reply Children
No Data