JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › ERROR in datagrid
Tagged: error
In my code I do an getColumn(dataField) using my datafield as key but I get an error
this.columnByDataField is undefined
http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js:59″
Is it a bug ?
I’m running 17.0.3
Tks
Hi,
This may happen when you call this method before the Grid is rendered. Make sure you call it after the Grid is created.
Regards, Markov
I do the operation in page onload event.
Is the grid rendered at that time ?
How can I verify if it was already rendered ?
The Grid has onLoad callback. In page onload it is not necessary the Grid to be rendered as you may have code to render it dynamically. Page onload only ensures that a given script is loaded.