I have a grid that is generated by a template. How do I reference that grid from my javascript? I am trying to do this to enable editing of a column value on Create but not on Edit. If there is an easier/better way to do that, I would appreciate your help. Either way, I'd still like to know how to reference the other grid.
My template name and grid name are setup as follows:
And I have tried various ways of referencing it but all generate an error:
Thanks in advance for your help
My template name and grid name are setup as follows:
<script id="npisTemplate" type="text/kendo-tmpl"> <%: Html.Kendo().Grid<MyModel>() .Name("Abc_#=PersonId#") //.............</script><script> $("#Npi_#=FacilityAbbreviation#").kendoGrid()... // error $("Npi_#=FacilityAbbreviation#").kendoGrid()... // error</script>Thanks in advance for your help