Hi Sir
Could you help me on this matters, using the Flatgrid to display the data from database, need to pass the value from primary key to controller/action.
Below is the code that i used currently, JHId not sending to controller
<ej-grid id="FlatGrid" allow-paging="true" datasource="ViewBag.datasource" allow-filtering="true" allow-sorting="true">
<e-columns>
<e-column field="JhId" header-text="JH Id" is-primary-key="true" width="30" tooltip="Click here for Details" template-id="#columnTemplate" ></e-column>
<e-column field="JHName" header-text="JH Name" is-primary-key="false" width="150"></e-column>
<e-column field="JHGenderDesc" header-text="Gender" is-primary-key="false" width="75"></e-column>
<e-column field="JHIdNumber" header-text="Id Number" is-primary-key="false" width="75"></e-column>
<e-column field="JHPassport" header-text="PMA No" is-primary-key="false" width="75"></e-column>
<e-column field="JHGroupNo" header-text="Group No" is-primary-key="false" width="75"></e-column>
</e-columns>
</ej-grid>
<script type="text/x-jsrender" id="columnTemplate">
<a rel='nofollow' href="@Url.Action("ViewJHDetails","PotentialJH", new { JHId = "{{:JhId}}" })">{{:JhId}}</a>
</script>
Thanks for the support