Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 09, 2012 05:36 AM by FightAsABull
Member
118 Points
428 Posts
Apr 07, 2012 07:22 PM|LINK
Hi,
Here is my jqgrid , sorting not working there. Why that
jQuery("#list9").jqGrid('navGrid', '#pager9', { add: false, edit: false, del: false }); jQuery("#list9").jqGrid({ url: '/AccountCall/getAccountCall?AccountId=' + accid, datatype: 'json', mtype: 'POST', colNames: ['AccountCall Name', 'Log', 'Accounts Product'], colModel: [{ name: 'AccountCallName', index: 'AccountCallName', width: 350, align: 'left' }, { name: 'Product', index: 'Product', align: 'left', formatter: ProductFormatter, search: false }, { name: 'Comment', index: 'Comment', align: 'left', formatter: CommentFormatter, search: false }, ], pager: '#pager9', rowNum: 10, rowList: [5, 10, 20, 50], sortname: 'AccountCallName', sortorder: "desc", viewrecords: true, multiselect: true, viewsortcols: true, caption: 'AccountCall' }); $("#list9").navGrid("#pager9", { edit: false, add: false, del: false }); function CommentFormatter(cellvalue, options, rowObject) { var AccountId = $('#AccountId').val(); return "<a href='/Comment/Create/?AccountCallId=" + cellvalue + " &Id= " + AccountId + "'>Log Call Activities</a>"; } function ProductFormatter(cellvalue, options, rowObject) { var AccountId = $('#AccountId').val(); return "<a href='/StockLevel/Edit/?AccountCallId=" + cellvalue + " &Id= " + AccountId + "'>Accounts Product</a>"; }
Contributor
2228 Points
424 Posts
Apr 09, 2012 05:36 AM|LINK
Hi, hope this helps:
http://www.trirand.net/demoaspnet.aspx
gslakmal
Member
118 Points
428 Posts
jqGrid sorting not working
Apr 07, 2012 07:22 PM|LINK
Hi,
Here is my jqgrid , sorting not working there. Why that
jQuery("#list9").jqGrid('navGrid', '#pager9', { add: false, edit: false, del: false }); jQuery("#list9").jqGrid({ url: '/AccountCall/getAccountCall?AccountId=' + accid, datatype: 'json', mtype: 'POST', colNames: ['AccountCall Name', 'Log', 'Accounts Product'], colModel: [{ name: 'AccountCallName', index: 'AccountCallName', width: 350, align: 'left' }, { name: 'Product', index: 'Product', align: 'left', formatter: ProductFormatter, search: false }, { name: 'Comment', index: 'Comment', align: 'left', formatter: CommentFormatter, search: false }, ], pager: '#pager9', rowNum: 10, rowList: [5, 10, 20, 50], sortname: 'AccountCallName', sortorder: "desc", viewrecords: true, multiselect: true, viewsortcols: true, caption: 'AccountCall' }); $("#list9").navGrid("#pager9", { edit: false, add: false, del: false }); function CommentFormatter(cellvalue, options, rowObject) { var AccountId = $('#AccountId').val(); return "<a href='/Comment/Create/?AccountCallId=" + cellvalue + " &Id= " + AccountId + "'>Log Call Activities</a>"; } function ProductFormatter(cellvalue, options, rowObject) { var AccountId = $('#AccountId').val(); return "<a href='/StockLevel/Edit/?AccountCallId=" + cellvalue + " &Id= " + AccountId + "'>Accounts Product</a>"; }FightAsABull
Contributor
2228 Points
424 Posts
Re: jqGrid sorting not working
Apr 09, 2012 05:36 AM|LINK
Hi, hope this helps:
http://www.trirand.net/demoaspnet.aspx