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
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.
Resolved by replacing the WARP with MS Update panel,
Thanks for the support.