We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cell reference in client side

Can I get the value of a cell in client side, like GridWeb1.getCellValueByCell(“J12”) ? Other than passing rows and columns what are the other ways of getting a value of the cell in the client side? Can I use that getCellValueByCell without the row and column?

Thanks.





Hi,

We will check if we can support for your need. I think you may try if it works for your scenario.

e.g..,

in .aspx.cs file, I write the following lines of code:

protected void Page_Load(object sender, EventArgs e)

{

// Put user code to initialize the page here

if (!IsPostBack)

{

GridWeb1.WebWorksheets[0].Cells["J12"].PutValue("Hello world!");

GridWeb1.Attributes["cellval"] = GridWeb1.WebWorksheets[0].Cells["J12"].StringValue;

}

}

html javascript source code:

.....

<body>

<form id="form1" runat="server">

<agw:GridWeb id="GridWeb1" runat="server" XhtmlMode="true" Height="226px" OnSubmitClientFunction = "onSubmit"></agw:GridWeb>

<script language="javascript">

function onSubmit(arg, cancelEdit)

{

var cval = GridWeb1.cellval;

window.alert(cval);

}

</script>

</body>

</html>

Thank you.