English 中文(简体)
我如何在不使用在工具桶内建造的 j格网的情况下进行方案搜索
原标题:How can I programmatically do a search on a jqgrid without using their built in toolbar
  • 时间:2012-01-12 23:11:10
  •  标签:
  • jqgrid

I need to perform a search action on a jqgrid that has local data but the values for the query would be coming from another ui element in our application not the jqgrid toolbar s search dialog nor header filter ux.

I looked at the api and did not see any way to hook into the search/filter action programmatically. Is there a way to do this? I found some info on search templates for predefined searchs is there a way to run a search template from the grid api so it performs the filter.

最佳回答

你们需要做的是,在<代码>postData 中添加检测过滤器(filters/code>,例如)和设定<代码>search<jqGrid的参数。 然后,你可以重载电网。 由于结果,用户将看到过滤的电网。

Look at the old answer. I hope you will find all what you need here.

问题回答

暂无回答




相关问题
Retrieving original row data from jqGrid

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter. How do I ...

How to programmatically select top row of JQGrid?

How does one programmatically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row s id ...

Blank when NaN in jqGrid cells

How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?

complete jqGrid?

Please, can anyone tell me how to use jqGrid? I want to do edit, add & delete functionality. Also I want to show an image in the grid Please tell me, what can I do, and how can I do?

jqGrid: is there an event for when columns are reordered?

I m using the column reordering feature in jqGrid $grid = jQuery("#list").jqGrid({ sortable:true, ... }); Is there an event that fires after columns are re-ordered? If there is, I can t see ...

Wrapping Text lines in JqGrid

Can you get lines of text to wrap in JqGrid? I have had a look round but i can t find anything.

using jqgrid style for usual Table in asp.net mvc

I d prefer using Table and td instead of JqGrid but i like JqGrid styles. has anyone used jqgrid style for usual Grid of asp.net MVC(i mean Table and td) before?

热门标签