Seach on Load with parameters and more than one field

QuestionsSeach on Load with parameters and more than one field
toki asked 11 years ago

Hi Abu,

Is it possible to pass parameters getting from form inputs for name and date fields instead of Client1 and 14.08.2013 data respectively ?

{
"groupOp":"AND",
"rules":[
{"field":"name","op":"eq","data":"Client 1"},
{"field":"date","op":"eq","data":"14.08.2013"}
]
}
SEARCH_JSON;

$grid["search"] = true;
$grid["postData"] = array("filters" =$g $sarr );

Regards…

2 Answers
Abu Ghufran answered 11 years ago

You can follow this example. Fetch the form data and trigger search using javascript.

http://stackoverflow.com/questions/5272850/is-there-an-api-in-jqgrid-to-add-advanced-filters-to-post-data/5273385#5273385

toki answered 11 years ago

Abu,

Thank you very much.

Your Answer

3 + 5 =

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?