asp.net mvc - reuse kendo grid but change action -
I try to reuse a condo grid on MVC by calling it another view as a partial view I am here. Read the property properties of the grid's Ajax attribute as set as follows:
@ (Html.Kendo (.) Grid & lt; MyModel & gt; () Ajax (.) Read ( Read = & gt; read.Action ("MyMethod", "MyController") .data ("getData"))) However, I want this grid from any other view If it is said, then 'some other' method and 'some other controller' changes from 'microcontroller' to 'mammothi'. how can I do this? Thanks!
I have an alternative solution for what you are trying to achieve, please below See:
-
In all the ideas you are trying to use all the grids, set the TempData value below:
@ {TempData [ Next, you need a normal master reading controller operation, which is based on the above tempdata value to another controller. By calling Ga. In your case, in a scenario, it will be called 'Maemanthi' of 'Miantra' and in some other scenarios it will call 'some other system' of 'some other controller'.
Comments
Post a Comment