jqgrid set method in the API

if a get method call is like this

jQuery('#list6').jqGrid('getGridParam','records')

then set method could be this way ?

 jQuery('#projectList').jqGrid('setGridParam','records',6);

I want to set records in the jqgrid, but I can't find a API.

thanks

Answers


Correct form of usage of setGridParam is like

jQuery('#projectList').jqGrid('setGridParam', {records: 6}); // STILL WRONG!!!

but you can't set readonly properties of jqGrid in the way. You can see in the column "Can be changed?" of the table on the page of the documentation which options of jqGrid you can change and which not.

I am sure that you try to go in the wrong way. So the problem which you try to solve should never exist at all.


Need Your Help

Writing to Execl in C# Causing System.__ComObject

c# .net excel

I am trying to write data from a List<string> to a cell in an Excel file.

How can I write web browser Javascript console output and stack traces to stdout & stderr?

javascript browser stdout stderr tracing

I am currently using Chromium for my Javascript web development, but I would be happy to get output to standard output from any web browser.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.