jQWidgets Forums
jQuery UI Widgets › Forums › Grid › createfilterwidget using key custom value do not auto select item on addfilter
Tagged: #jqwidgets-grid, grid, javascript grid, jquery grid
This topic contains 9 replies, has 3 voices, and was last updated by Hristo 6 years, 4 months ago.
-
Author
-
April 9, 2018 at 5:33 pm createfilterwidget using key custom value do not auto select item on addfilter #99632
Hello,
using filterrow with dropdonlist with key value, then applyfilter, dropdownlist do not select automatically filter value item, in this example “Beate”this is example code http://jsfiddle.net/aLgt5btm/
Can someone please help me?
Thanks
April 10, 2018 at 3:10 pm createfilterwidget using key custom value do not auto select item on addfilter #99647Hello silvano.alda,
I would suggest you to take a look at this example: Example
Instead of an input, you can replace it with a dropdown list.
Best Regards,
StanislavjQWidgets Team
http://www.jqwidgets.com/April 11, 2018 at 12:51 pm createfilterwidget using key custom value do not auto select item on addfilter #99667Hello Stanislav,
Thank you for your answer, I’m sorry but I do not get your suggestion, maybe we’re misunderstanding..
The column I am talking about is “First Name”, which already is dropdownlist type column, with key value ( displayMember: ‘text’, valueMember: ‘value’)
When I apply filter by code, that dropdonlist do not auto select filter item based on filter value.
How can i make this dropdownlist auto select value based on filter applied?
thanks
Best RegardsApril 18, 2018 at 7:50 am createfilterwidget using key custom value do not auto select item on addfilter #99758Hello,
comeone can please help me?Thanks
May 23, 2018 at 3:25 pm createfilterwidget using key custom value do not auto select item on addfilter #100312Hello,
can please someone help me with this issue?
I can’t get DropDownList filter menu auto select corresponding item when filter value is programmatically added clicking button:
Thanks,
Best RegardsMay 24, 2018 at 1:00 pm createfilterwidget using key custom value do not auto select item on addfilter #100318Hello silvano.alda,
Please, take a look at this example:
http://jsfiddle.net/txhi/4q9fznyg/Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comMay 25, 2018 at 8:57 am createfilterwidget using key custom value do not auto select item on addfilter #100327Thanks Hristo,
I looked at your example, but the problem is that in dropDownList I get valueMember that is a user_id, and displayMember that is the name of user.So when I apply filter i would like to set filtervalue=user_id, to send to server side script to perform where query using id.
But also in DropDownList i woul like to select name of user, that is displayMember, it is not valueMember
Can you please help me to get this scenario?
May 25, 2018 at 9:45 am createfilterwidget using key custom value do not auto select item on addfilter #100330Hello silvano.alda,
Please, take a look at this example.
Also, I think this tutorial could be helpful, too:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-extra-http-variables.htm?search=gridBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comFebruary 14, 2019 at 4:05 pm createfilterwidget using key custom value do not auto select item on addfilter #103976Hello Hristov
sorry to revive this hold post but I not yet figure out how to solve this problem.
This are new code that explain better the scenario:
http://jsfiddle.net/b9d3521k/3/I need to set filter by code, but i need to preserve filter id in filterinfo, for example:
if you change manually dropdownlist “status” you can see in filterinformatio hmtl
`{
“value”: “Deleted”,
“condition”: “EQUAL”,
“operator”: 1,
“type”: “stringfilter”,
“id”: 2
}`BUT if you select filter clicking button “Add and apply new filter”
i can’t set vot value and id
that is needed to make query select on server sideCan you please help me how to solve this problem?
February 19, 2019 at 1:53 pm createfilterwidget using key custom value do not auto select item on addfilter #104062Hello silvano.alda,
I would like to mention that we do not provide a solution.
If there is some issue we add it to our system to fix it and provide a workaround if it is possible.
Because it is possible to provide us with a huge project that will take a lot of time.I would like to suggest you try to iterate with this value that you search into the
filteritems
to get the id of the inner item.
For this purpose you could use the “getcolumnproperty”:
var filteritems = $('#jqxgrid').jqxGrid('getcolumnproperty', 'status_id', 'filteritems');
Also, I would like to suggest you look at this topic which could be helpful, too:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-php-server-side-processing.htm
Please, take a look at this demo.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.