Free Support Forum - aspose.com

Size of Expand/collapse column

Hello,

we have an asp.net application that uses Aspose GridWeb. We recently added to the grid the possibility of collapsing/expanding some rows, using the c# method:

MyGrid.WebWorksheets[0].GroupRows(startFlussiCollassati, riga - 1);

We have a problem: when the page makes a postback, the column that contains the expand/collapse button becomes larger and larger (+10 pixels after each postback). We would like to know the possible reason of this strange behaviour... We don't know how to force the size of that column...

Thank you!

Nino

Hi,

I have tested your case and it works fine, the expand/collapse button column remains the same in post backs. I am using the latest version. Please try our latest version/fix v2.0.2.2006 (packaged and in series with Aspose.Cells for .NET package v4.8.1: http://www.aspose.com/community/files/51/.net-components/aspose.cells-for-.net/entry207989.aspx …Aspose.Grid is merged into Aspose.Cells now with the referenced library Aspose.Cells.GridWeb.dll).

If you still find the issue, kindly create a sample project to show the issue, we will check it soon.

Thank you.

Hello,

unfortunately the latest version seems to work in the same way... I give you a sample project that shows the problem, I hope it will be useful to solve it. Thank you in advance!

Nino

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

We have found your mentioned issue after an initial test. We will look into it and get back to you soon. Your issue has been registered in our internal issue tracking system with issue id CELLSNET-13063.

Thank You & Best Regards,

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

As a workaround, please try the following code in your application, it works fine.

<?xml:namespace prefix = u1 />

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

GridWeb1.XhtmlMode = true;

GridWeb1.Width = 600;

GridWeb1.Height = 400;

FillGrid();

GridWeb1.WebWorksheets.RunAllFormulas();

}

}

Thank You & Best Regards,

Hi, thank you for your answer, but unfortunately it can't be useful in our application.

The sample code I provided was just to explain the problem. In our application after each postback some data are sent to a database, stored procedures do some computations, then the grid must be partially updated with new data. So we need to do some operations like those in the FillGrid() method, after each postback...

Thanks in advance.

Nino

The column seems to become larger and larger if, after each postback, the following command is executed:

GridWeb1.WebWorksheets[0].GroupRows(...);

If we try to group always the same rows, the column becomes larger. So a possible solution, in this case, can be to avoid this (and only this) instruction in postbaks:

if (!IsPostBack) GridWeb1.WebWorksheets[0].GroupRows(...);

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the feedback.

We will further look into your issue and get back to you soon.

Thank You & Best Regards,

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

Please try the attached latest version. We have fixed your mentioned issue.

Thank you & Best Regards,

It works! Thank you!

Nino

The issues you have found earlier (filed as 13063) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.