JQgrid - escape ':' in searchoptions (value part)

Posted by bsreekanth on Stack Overflow See other posts from Stack Overflow or by bsreekanth
Published on 2010-06-05T17:50:04Z Indexed on 2010/06/05 17:52 UTC
Read the original article Hit count: 293

Filed under:

Hello,
How to set the values for filter is explained here link text. I have two requirements.
1. the default value needs to be empty. I expect, if defaultValue is not set, the filter is empty, but that is not happening in my case. The first value is
2. How to escape ':' in my value. The character ':' and ';' are used to seperate the index and values. But, in my value string it contains a ':' (eg: searchoptions:{value:"1:'Level: 1'"} , where Level: 1 is my first value). How to escape : in the value part. I tried \ , / etc.

thanks.

© Stack Overflow or respective owner

Related posts about jqgrid