Seach on Load with parameters and more than one field

QuestionsSeach on Load with parameters and more than one field
toki asked 6 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 6 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 6 years ago

Abu,

Thank you very much.

Your Answer

14 + 3 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!