get filter data from jquery

Questionsget filter data from jquery
Ronald asked 10 years ago

Hi Abu!

I need to get filter data to using with my jquery code. For example, I want to show modal window with data from filter column of grid. How can I do that?

Thanks!

4 Answers
Abu Ghufran answered 10 years ago

To get all ids

var ids = $('#list1').jqGrid('getDataIDs');

You can iterate thru these ids, and call getRowdata to get data.

var row = $('#list1').getRowData(id);

Sample row data output is:

{invid:"1", invdate:"2007-10-01", note:"note", amount:"200.00", tax:"10.00", total:"210.00"};

To get all data in 2d array, call getRowData without param.

var rows = $('#list1').getRowData(id);

Ronald answered 10 years ago

Abu

I need to get FILTER data, user inputed, not ids or another info. Actually, I need something like var selFilter = jQuery('#list1').jqGrid('getGridParam','filters');

Is it possible? How to get filter data?
Thanks!

Ronald answered 10 years ago

Great! It´'s done. 🙂

Thank you again man. You're good.

Your Answer

16 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?