@lswe,
Please try using our latest acwmain.js file (you may replace your existing file with this) in your project:
acwmain.zip (57.6 KB)
In order to render worksheet that has hidden rows in async loading way, we need to set RenderHiddenRow=“True”, like in the below code:
e.g
Sample code:
<acw:GridWeb ID="GridWeb1" runat="server" ShowLoading="true" XhtmlMode="true" EnableAJAX="true" EnableAsync="true" RenderHiddenRow="True"
Moreover, in your project, please write/update your code segments like this:
your code:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack )
suggestion:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack && !GridWeb1.IsPostBack)
your code:
private void SetAllGridWebCellsReadOnly()
{
var activeSheet = GridWeb1.WebWorksheets.ActiveSheet;
for (int i = 0; i < activeSheet.Cells.Count; i++)
{
activeSheet.Cells[i].IsReadonly = true;
}
}
shall be:
private void SetAllGridWebCellsReadOnly()
{
var activeSheet = GridWeb1.ActiveSheet;
activeSheet.SetAllCellsReadonly();
}
your code:
private void SetAllGridWebCellsEditable()
{
var activeSheet = GridWeb1.WebWorksheets.ActiveSheet;
for (int i = 0; i < activeSheet.Cells.Count; i++)
{
activeSheet.Cells[i].IsReadonly = false;
}
}
shall be:
private void SetAllGridWebCellsEditable()
{
var activeSheet = GridWeb1.ActiveSheet;
activeSheet.SetAllCellsEditable();
}
One more thing, please don’t use WebWorksheets/WebWorksheet any more, use GridWorksheetCollection/GridWorksheet instead.
Let us know your feedback.
Thank you.