Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetColByKey |
Gets the client-side column index for the specified server-side column index.
[JavaScript]
var ret = FpSpread1.GetColByKey(FPKey);
Integer, index of the client-side column
This method returns the index of the column based on the Spread column key. You may have more than one table of columns if you have frozen columns. The Spread column key is unique for each column.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> function getHValue() { var ss = document.getElementById("FpSpread1"); var totalRow = ss.GetColByKey(10); } </script> |