Forum
14:44
05/06/2013
Hello,
This is my first post in this Forum and first of all, I thank you for this amazing plugin !!
I am here to propose a new functionnality to the toolbar searching module.
Indeed, I think that adding a new button to clear the current search would be quite useful.
Here is what it would look like:
At the moment, in order to achieve this functionnality, I use the grid's LoadComplete event in conjonction with the ClearToolbar method.
But I think it would be nice a functionnality to have natively (with a new option).
I am looking forward to hearing from you all.
Best regards.
08:14
Moderators
30/10/2007
Hello,
Thank you very much for this recommendation.
I too think - it is a really usefull.
I will try to include it in the next release.
Thanks
Best Regards
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.
11:19
Moderators
30/10/2007
Hello,
In colMode searchoptions set clearSearch : false and the clear button will not appear.
Regards
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.
16:15
10/08/2009
Hi Tony,
to be exact the usage of the property clearSearch: false not full solve the problem. I don't posted the issue before, but even if we use cmTemplate: { clearSearch: false } we have still a litte reduced width for the searching elements. I have to use grids with a lot of columns with chechboxes inside. So the width of the columns should be the little the possible to represent only the arrow of select element in the searching toolbar. After updating to the last version of jqGrid I had to make small fix. One need to hide <td> element where the clear icon will be created. The current version hold the cell visible and empty, which get about 2px place. To fix the problem one can for example modify the lines of the filterToolbar method from
$("td:eq(2)",stbl).append("<a title='Clear Search Value' style='padding-right: 0.3em;padding-left: 0.3em;' class='clearsearchclass'>x</a>");
}
to
$("td:eq(2)",stbl).append("<a title='Clear Search Value' style='padding-right: 0.3em;padding-left: 0.3em;' class='clearsearchclass'>x</a>");
} else {
$("td:eq(2)", stbl).hide();
}
Best regards
Oleg
P.S. I posted the simple pull request. Please Tony take a look in it.
18:53
Moderators
30/10/2007
Oleg,
Thanks.
Best Regards
Tony
P.S. I have merged your pull request
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.
12:09
05/06/2013
Hello,
Thanks for the feature implementation!
It works perfectly, however, the title isn't internationalized, indeed it's hardcoded with the value "Clear Search Value".
It's not really a problem, I change the title on the GridComplete event but it would be nice to add a translation for others languages or simply use the 'Reset' translation…
Regards
Most Users Ever Online: 715
Currently Online:
28 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66