hi team,
we have a kendo grid in our application.. we have applied common fix for all the grids of the application in common file.
we need a solution for the below scenario:
kendo grid having a property of NoRecords so if there are no records then will display the message which kept under the property.
but its throwing some axe issue . So we need enable/disable or remove this property as common page wise.
can any one give me solution how to set this property for the grid to on/off dynamically
Jayraj ChhayaPosted Feb 7, 2024, 7:53 AM
To dynamically set the NoRecords property in a Kendo Grid, you can use JavaScript or jQuery to manipulate the grid's configuration. Here's how you can achieve this:
First, make sure you have a reference to the Kendo Grid widget on the page. You can do this by assigning an ID to the grid element and using the
$("#gridId")selector.To enable or disable the NoRecords property, you can use the
setOptionsmethod of the Kendo Grid. This method allows you to update the grid's configuration dynamically. Here's an example:nullorundefined. Here's an example:By using the
setOptionsmethod, you can dynamically enable, disable, or remove the NoRecords property in your Kendo Grid based on your specific requirements.Remember to replace
"gridId"with the actual ID of your Kendo Grid element.