jqGrid search/filter data api - api

I've already read all available documentation and I cannot find a solution.
I have a calendar outside of the grid which on click returns a date. All I need to do is filter my jqGrid based on that date. Can someone point me to the correct API method?
Thanks!

You could do the filtering server-side. Attach an event to the calendar such that when the date is changed, the grid will be reloaded by data from the server. When you do the reload, pass the date to the server so that it can do filtering based upon that date.
See reload-a-loaded-jqgrid-with-a-diffent-table-data for some pointers on how to reload the grid.

Perhaps my example here will help you:
How to filter the jqGrid data NOT using the built in search/filter box
(I do the same thing, but filter my jqGrid data based on a textbox value, outside of the jqGrid.)

Related

Qlik sense - Get selected id in custom exception

I am using qlik sense and i am writing a custom extension to display a chart. I want to know if there is way which all rows are selected in other extensions in my custom extension.
Scenario:
I am using two extensions in my sheet
Filter pane(inbuild) - which filters a list of ids
Chart extension (Custom written) - displays a chart
My scenario is, i use a REST Api call to get the data for my custom extension. When the filter is activated and some ids are filtered, i need to send these ids to back end to get the updated list for updating my custom chart.
Is there any way to do this ?? Please help i am stuck.
If I understand you correctly, you want to know the current selections of your filter pane object and then send these id's to your custom chart.
There are multiple ways to achieve this, here are a couple starting points:
Qlik Engine JSON API
Capability API -> Selection API
Capabilitiy API -> App API -> createList method
I would use the last option and combine it with these resources: Link 1 & Link 2

Rally: How to make apps compatible with the time box filter?

When displaying several apps on a page, I am aware that I can use a global filter such as a release or iteration filter rather than having a release or iteration filter for each app. However, the global filter does not seem to work properly for the Iteration Summary app but it works with individual filter. I have looked at the source code for the Iteration Summary app to make it compatible with the global filter (aka time box filter). Please refer to http://developer.rallydev.com/help/Apps-Timebox-Filtered-Dashboards for more information.
Also, another concern for the custom grid app how do I make it so that I do not have to hard code the query like Iteration.Name = "IR 1" but instead use the global filter data to do the query. Thanks.
Custom grid should automatically respect the global timebox filter on the dashboard. It will AND on the timebox filter to any query entered (so there is no need to manually add it).
The Iteration Summary App should work with the global filter. Could you give more info on what the problem is?

Refresh enhaced grid preserving client side filter

How can we refresh enhanced grid after a filter in applied, preserving the filter query??
doing grid.setFilter() clears the filter. Is there any way to access all active filters in grid to give like grid.setFilter(activefilters)?????
hmm..... i got the answer myself,
its grid.getFilter() which gives the current filters
grid.setFilter(grid.getFilter());
refreshes the grid with current filters..
that simple it was :)

Passing Parameters From Page-to-page

I have a filter that is used to populate a grid view and the url will conain: /example/grid?value1=1&value2=2
It will then have a link to page 2, which allows them to edit something.
I then want them to click a link that will send them back to the gridview under the same parameters of: /example/grid?value1=1&value2=2
Is this possible? How do I hold on and fill in the URL values so it knows how to refill the grid view accordingly??
Thank you!!
Well since you're using MVC, you should add parameters to your Grid controller that allow you to pass in parameters, then the url would look like this:
/example/grid/1/2
Then in your code you just need to read the parameters while you're filling the grid and apply the appropriate logic.

Is there a way to implement ajax search with dojo data grid component?

I am using dojox.grid.DataGrid and dojo.data.ItemFileWriteStore to render a grid. I want to implement a record search. Is there any way to do this?
After loading the page someone can search through the 'search form' above the grid. when the search button is pressed it will refresh/reload the grid data returned from the server according to the form values.
Please check the illustration.
You need to apply the filter() method on the DataGrid instance. Here you'll find the exact answer to your problem: http://dojotoolkit.org/reference-guide/dojox/grid/DataGrid.html#filtering-data