Hi,
I am using a Grid MVC in a PartialView and when I try add a new record, the PartialView is rendered and obviously the page lost styles and scripts.
How can I use all functionalities of a Grid MVC in a PartialView.
This is my code.
01.@(Html.Kendo().Grid(Model.RelatedCompanies)02. .Name("Relatedcompanies")03. .ToolBar(tools => tools.Create().Text("Agregar nuevo"))04. .Columns(columns =>05. {06. columns.Bound(p => p.ThirdParties.NumIdentificationThirdParty);07. columns.Bound(p => p.ThirdParties.BusinessName).ClientTemplate("#= ThirdParties.BusinessName #" +08. "<input type='hidden' name='RelatedCompanies[#= index(data)#].ThirdParties.BusinessName' value='#= ThirdParties.BusinessName #' />"09. );10. columns.Bound(p => p.DescriptionRelatedCompany).ClientTemplate("#= DescriptionRelatedCompany #" +11. "<input type='hidden' name='RelatedCompanies[#= index(data)#].DescriptionRelatedCompany' value='#= DescriptionRelatedCompany #' />"12. );13. })14. .Events(events => events15. .Change("relatedCompaniesOnChange")16. )17. .DataSource(dataSource => dataSource18. .Server()19. .Model(model =>20. {21. model.Id(p => p.Id);22. })23. .Create(update => update.Action("CreateCompany", "ThirdPartiesDef"))24. )25.)