It is very good new, Tony!
To help you to improve the new code I used JSlint and found following small errors or suggestions:
line 67 ended with ',' before ']' in the next line. One should remove the ','
in line 145,154,296,462,493,519,523,527,531,534 one should replace ',' with ';' at the end of line.
in line 309 will be defined unused variables o and df.
In line 516 the code '+ “”' (at the end of line) should be removed
in lines 82,119,164,184,354,377 one should add ';' at the end of lines
in line 219,354,433,468,490,492,511-514,516,517,545,547,557,559,568,570,626 insert {}
in lines 32,166,183,197,218,232,255,282,327,338,344,370,395,410,415,449,489,498,505,511-514,516,544,556,567,576 replace “==” to “===”
in lines 249,269,287,466,477,481,541,553 replace “!=” to “!==”
if would be better to move this.getStringForGroup from the line 464 after the line 494 where
the function this.getStringForRule will be defined because in lines 472,482
the function this.getStringForRule will be used inside of this.getStringForGroup
In the same way the function getStringForRule defined in the line 572 will be better to move before the line 538
where the function getStringForGroup defined which use it
I used the code loaded today so I hope the line numbers stay unchanged in your code.
I next days I want to look the new module more carefully and to test it.
Best regards
Oleg
Hi eemie,
it seems to me that no other characters should be escaped. On http://www.json.org you can find the following picture

It means that only '\' and '”' must be escaped. Some other characters like '/' could be escaped but not must. So one can use for example '/' exactly like '/' in JSON string and the both encoding will be interpret in the same way. So I don't currently see any other characters which can be enter in the search dialog or search toolbar which should be additionally escaped.
It you do find a character or some combination of characters which do must be escaped it would be very interesting.
Best regards
Oleg
It is less complex problem as before. You can use
Why you place function (elem) {
Look at the following answer to practicaly the same question as yourth. I hope it will help you.
Best regards
Oleg
It seems to me that you use dataInit function in absolutely wrong way.
Hi Dany,
the postData parameter is exactly what you need. By the way in many scenarios you can need to send the data to the server which are dynamical (not the same as the the jqGrid initialization time). In the case it could very usefull to define some of postData properites as a functions. See here for more explanation.
Best regards
Oleg
Hi Marc,
You can use onclickSubmit to append the id to the url and use serializeDelData additionally to clear the body of the HTTP DELETE request. Then you can use mtype:”DELETE” and have jqGrid delete request which will be full conform to RESTfull services. See for example this answer.
Hi Olaf,
In the previous example I wanted mostly show how one can overwrite methods from $.jgrid.from. If you try to search in my first example for: Client contains 'bene' instead of 'b
Hello,
you can use serializeGridData event handler. It is a function which receive as an object the object which build the url parameters like {page:2,rows:10, …}. You can use the input and construct another object like {start:20,rows:10, …} and return the object from the serializeGridData
Hello,
I posted the answer on your question here. The usage of ids having blanks in
Best regards
Oleg
Hello Tony!
I answerd recently the question
I am a user like you (see my status as “Member” like youth and “Moderator” like th status of the developer of jqGrid Tony)!
You want to use a free open source software and you want that someone who also use tha same software help you. If you wait for sombody in the world help to solve your problem for free you should be polite and prepare your problem so that other, who decide help you, could at least easy reproduce your problem. See for example questions from other people or look at my answers where I post frequently a link for a working solution.
Oleg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top