OlegK

Forum Replies Created

Viewing 15 replies - 481 through 495 (of 968 total)
  • Author
    Replies
  • in reply to: jqGrid Filter module rewrite #97381
    OlegK
    Participant

    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

    OlegK
    Participant

    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

    in reply to: Multiple Search Toolbar: Problem with double quotes #97371
    OlegK
    Participant

    It seems the same problem as this one. Please try with the last version of jqGrid sources from the GitHub.

    Best regards
    Oleg

    in reply to: Searching on text field with accentued chars on local datas #97370
    OlegK
    Participant

    It is less complex problem as before. You can use

    in reply to: Date Picker Problem #97368
    OlegK
    Participant

    Why you place function (elem) {

    in reply to: how can i add horizontal scroll bar ?? #97366
    OlegK
    Participant

    Look at the following answer to practicaly the same question as yourth. I hope it will help you.

    Best regards
    Oleg

    in reply to: Date Picker Problem #97365
    OlegK
    Participant

    It seems to me that you use dataInit function in absolutely wrong way.

    in reply to: Passing extra parameters to URL #97359
    OlegK
    Participant

    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

    in reply to: no key on delete call #97358
    OlegK
    Participant

    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.

    in reply to: Searching on text field with accentued chars on local datas #97354
    OlegK
    Participant

    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

    OlegK
    Participant

    Hello Dinesh,

    you will find the modivied developer version of the jqGrid on GitHub

    in reply to: Need pager to send start row instead of starting page #97349
    OlegK
    Participant

    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

    in reply to: Bug in viewgridrow with spaces in column name? #97336
    OlegK
    Participant

    Hello,

    I posted the answer on your question here. The usage of ids having blanks in

    elements is the same as the usage of name and index properties of colModel with the blanks inside. It is wrong. Just remove the ids from elements or use the values without blanks.

    Best regards
    Oleg

    in reply to: Prefixes to rowids #97334
    OlegK
    Participant

    Hello Tony!

    I answerd recently the question

    OlegK
    Participant

    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

Viewing 15 replies - 481 through 495 (of 968 total)

Stay connected with us in your favorite flavor!