Hi, Im developing an MVC3 application, and I am trying to use the subGridRowExpanded to nest a jqGrid inside another (so I can use the formatter amongst other things), however, I cannot get the Subgrid to fire the Controller Event that populates The data.
Any Help On this is greatly appreciated!
The below code runs the main grid, populates it with Data from the Customers Action URL, but does not even fire the 'BankLinks' ActionURL
Can anyone tell me why?
Thanks in advance
Andrew.
My Index.cshtml
@{
ViewBag.Title = “Index”;
}
@Html.Partial(“SearchPanel”)
@section JavaScript
{
$(document).ready(function ()
{
$('#jpgCustomers').jqGrid({
//url from wich data should be requested
url: '@Url.Action("Customers")',
//type of data
datatype: 'json',
//url access method type
mtype: 'POST',
//columns names
colNames: ['Name', 'FullName', 'SFTP Enabled', 'IsTranbase'],
//columns model
colModel: [
{ name: 'LogonName', index: 'LogonName', align: 'left' },
{ name: 'FullName', index: 'FullName', align: 'left' },
{ name: 'Enabled', index: 'Enabled', align: 'left' },
{ name: 'IsTran', index: 'IsTranbase', align: 'left' }
],
//pager for grid
pager: $('#jpgpCustomers'),
//number of rows per page
rowNum: 10,
//initial sorting column
sortname: 'FullName',
//initial sorting direction
sortorder: 'asc',
//we want to display total records count
viewrecords: true,
//grid height
height: '100%',
//subgrid
subGrid: true,
//subrid model
subGridRowExpanded: function(subgrid_id, row_id) {
var subgrid_table_id, pager_id;
subgrid_table_id = subgrid_id+"_t";
pager_id = "p_"+subgrid_table_id;
$("#"+subgrid_id).html("
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top