If I have a script inside a Partial, help me understand how I can call a script on the Host/Parent View. So, from a Grid Command, how do I call a function locally to capture a value then feed that value to the Host/Parent View?
1 Answer, 1 is accepted
answered on 08 Apr 2019, 03:04 PM
A function declared in the partial view will have access to any widgets which are in the main view. Since I do not understand the entirety of the scenario, I will give you an example.
- I have a Kendo UI TreeList in my Index.cshtml view which also renders a grid partial:
- In the partial file, the grid has a command column with a click event handler that gets the currently clicked row and highlights a row from the TreeList which is on the main page: