Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
setting searchOperators of filterToolbar for column
15/09/2014
11:42
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Tony,

the current implementation of filterToolbar allows to set column operation only on all columns or on no columns using searchOperators parameter.

On the other side it have no sense for the operation on the column where no searchoptions.sopt is defined. The current implementation just add operation from defaultSearch in the column and the corresponding context menu don't allows to choose another operation, so the search operator just get some place from searching toolbar:

Image Enlarger

The demo can be used to reproduce the problem. It would be practical to be able to specify searchOperators property for the column like in case of clearSearch. The answer provide a workaround (see the demo), but it would be fine to have the feature out of the box.

Another problem: there are bug/compatibility problem in contextmenu for choosing of searching operation. It works incorrectly in jQuery UI 1.11.0/1.11.0. See the demo which reproduces the problem. Just opens the demo and try to choose another operation for Tax column for example. You will see the problem immediately. The menu looks like

Image Enlarger

instead of

Image Enlarger

By the way, I personally find the vertical distance between items in menu too high event in case of "correct" context menu. The context menu from the same demo, but using jQuery UI 1.9.2 (see the demo) looks much better:

Image Enlarger

Best regards
Oleg

P.S. Sorry, but editing of code/pictures in the forum is really difficult. It unclear how to write more readable post. :-(

15/09/2014
17:02
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Tony,

it seems to me that the CSS rules

.ui-search-menu.ui-menu .ui-menu-item { list-style-image: none; padding-right: 0; padding-left: 0; }
.ui-search-menu.ui-menu .ui-menu-item a { display: block; }
.ui-search-menu.ui-menu .ui-menu-item a.g-menu-item:hover { margin: -1px; font-weight: normal; }

can fix the jQuery UI compatibility problems which I described in the previous post.

Best regards
Oleg

P.S. The pull request contains the changes.

17/09/2014
09:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Oleg,

 

Thanks.

I do not think that the first requirement should be added as option (you know too many options) in grid.

As per second - I see it and have just merged the request.

Thanks again

 

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
76 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information