Aspose Grid loaded abnormally after postback

Hi


I got a program at which I set the GridWed visibility to false. After I select an item from a drop down list, it will perform a postback (AJAX-Enabled postkback). Then it will set the GridView visibility to true, at this point I found that the gird display was totally out of order.

Please refer to attached file. You can see the the “Add row”, “Delete row” menu displayed on top of grid. Instead of appear after right click.

But if I set the visibility to true at the beginning, then it works perfect.

Pls help.

Hi Ryan,

Please send us your sample application and tell us which version of the GridWeb your are using.

Thanks,

Hi


I cant send you the sample program. I am uisng Aspose.Grid.Web. And I am not sure which version is it.

Hi Ryan,

We are unable to recreate the issue. The test has been performed by using following code along with Aspose.Cells.GridWeb.dll v2.3.1.2000.

Following code is used in ASPX page:

<acw:GridWeb ID="grid1" runat="server" Width="70%" Height="645px"

Following code is used in code behind file:

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
grid1.Visible = false;
}
}

protected void btnShow_Click(object sender, EventArgs e)
{
grid1.Visible = true;
grid1.EnableAJAX = true;
grid1.WebWorksheets.ImportExcelFile(@"C:\excelTrash\cellBGtest.xls");
}

In order to resolve this issue we need a sample application to view and analyze the issue. If issue persists, please forward us the sample application.

Thanks,