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
0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 08 Apr 2019, 03:04 PM
Hi, Joel,
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:
@(Html.Partial("_GridPartial"))
- 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:
In case you have something else in mind, please elaborate on the specifics of the scenario so I may alter my suggestion accordingly.
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.