jLinq | Perform LINQ style queries with JSON data
kandi X-RAY | jLinq Summary
kandi X-RAY | jLinq Summary
Perform LINQ style queries with JSON data
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jLinq
jLinq Key Features
jLinq Examples and Code Snippets
Community Discussions
Trending Discussions on jLinq
QUESTION
As far as I see, free-jqgrid uses jlinq to filter and search data.
I am making my own filters, that are using grids postData
in it's well-known format:
ANSWER
Answered 2019-Sep-08 at 16:47Sorry, but I'm not sure what you need to implement. You can get lastSelectedData
parameter to have the array of filtered and sorted data, based on the current filter. The full data are available via lastSelectedData
parameter. The filters
property of postData
parameter gets you the current filter.
You asked "are there any public functions to get current query for grid?". You can use getGridParam
method to get current query. I guess, that you want to get access to some internal structures close to jlinq, but it gives really no practical value. You can access the class via $.jgrid.from
, but it's not really helpful. Practical one needs only to set new filter in postData.filters
parameter, set search
parameter to true
and call .trigger("reloadGrid")
to reload grid with new data.
If you need to filter or to sort some data yourself, then array methods filter
and sort
will be more effective. If the above information don't help you to solve your problem, please append your question with additional information, which describes the problem more detailed on an example and post me small comment.
Updated: I'm still not sure that I exactly understand what you want to implement. It seems to me that the most functionality of your JSFiddle demo can be removed if you use some free jqGrid options.
Look at https://jsfiddle.net/OlegKi/wqxyo579/25/, which used
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jLinq
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page