I have a .NET Core MVC application which uses Telerik’s control library, such as the Grid control. I want to be able to load a partial view via Ajax (into a div), and this partial view may contain a Telerik component such as a grid.
Naturally, this doesn’t work as the partial view response includes a JS function to initialise the grid, but as it’s loaded via AJAX it never gets called
An I safe to ‘eval’ this script to run it? Or is there a safer way? The script is always going to be returned from the server and will never be dictated by user input