Forum

July 12th, 2025
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
Can I use code to "click" the Find button?
10/02/2011
18:14
Avatar
Tony
Member
Members
Forum Posts: 3
Member Since:
19/02/2009
sp_UserOfflineSmall Offline

When you use the pager's search button to open up the multi-criteria search/filter dialog, there is a "find" button in the lower, right-hand corner.  I can find the <span> element that renders this button, but I can not find a way to call the click event of this button.

This code here works on the pager to open the search/filter dialog:

$('#AccountPager .ui-icon-search').click();

But the following, similar code does not work to click the find button (which has the same class):

$('#fbox_AccountGrid .ui-icon-search').click();

I have tried this:

$('#fbox_AccountGrid').searchFilter().search();

But it does not appear to actually do anything, even though I know my filters are all there.  When I use Fiddler to watch the communications with the server, this line of code never initiates the expected refresh/update.

I found the actual code I want to call in jquery.searchFilter.js, starting with line 415.  That led me to try the following two options:

$('#fbox_AccountGrid').find('.ui-search').click();


$('#fbox_AccountGrid .ui-search').click();

But these didn't work either.  I feel like I am so close!  Anyone see what I am missing here?

TIA


10/02/2011
18:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

To this button already we have a click event attached. What is the goal?

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.

10/02/2011
19:29
Avatar
Tony
Member
Members
Forum Posts: 3
Member Since:
19/02/2009
sp_UserOfflineSmall Offline

I purchased a paid-support incident and sent an e-mail over about 30 min ago.  That should have most, if not all, of the details.

Thanks for your response!  I know I could have waited to get help here, but for all the times I have used the grid over the years, you deserve some payment from me.  Laugh

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
11 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