Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
getCellValue in grid with multiple-column-key
posted

Hello.

I've a grid that has 3 columns as key. When I execute the method getCellValue, an error is thrown saying that can't get 'dataType' from null or undefined. The error is produced in this line:

if(primaryKeyCol.dataType==="number"||primaryKeyCol.dataType==="numeric")

The previous line is this one:

primaryKeyCol=this.columnByKey(this.options.primaryKey);

As this.options.primaryKey has multiple columns, this.columnByKey return null.

How can I do to execute this method?