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_Related Related Topics sp_TopicIcon
Include multipleSearch dialog as widget
01/12/2010
12:56
Avatar
jwinns
Member
Members
Forum Posts: 16
Member Since:
30/08/2010
sp_UserOfflineSmall Offline

Hi Guys,

I would like to include the form generated by ->jQuery("#grid_id").jqGrid('searchGrid', {multipleSearch:true,...} );<- as widget in the "edit" and the "add" dialog.
The value should be returned for that element, instead of being stored in postData array->filters->"value".

Is there a solution for this? Or can someone lead me in the right direction how to implement this?

Thanks in advance.

JAY

01/12/2010
15:52
Avatar
jwinns
Member
Members
Forum Posts: 16
Member Since:
30/08/2010
sp_UserOfflineSmall Offline

Perhaps these graphics help understand what I mean:

 ________________________
/Add Record                           X|
|                        
| Id:   |_______________|
|                        
| filter: <—————————<———-<—----------
|  ____________________                              |
| /Search…                      X  |                              |
| |                                                                      |
| | |id||equal||  ||-||+| |                                       |
| | |tt||equal||  ||-||+| |                                       |
| |                                                                       |
| ||Reset||rules| |Find||—-> Result value(filters)->|
| ____________________/
|                        
| field:|_______________|
|                        
|        |Submit| |Cancel||
________________________/

 ________________________
/Edit Record                           X|
|                        
| Id:   |_______________| |
|                        
| filter: <—————————<———-<—----------
|  ____________________                               |
| /Search…                      X  |                              |
| |                                                                       |
| | |id||equal||  ||-||+| |                                       |
| | |tt||equal||  ||-||+| |                                       |
| |                                                                        |
| ||Reset||rules| |Find||—-> Result value(filters)->|
| ____________________/ 
|                        
| field:|_______________| |
|                         |
|        |Submit| |Cancel||
________________________/

the code might look like this:

<script>
jQuery("#grid_id").jqGrid({

   colModel: [
      ...
      {name:'price', index:'price', width:60, search:true, stype:'text', searchoptions:{dataInit:multiSearch, attr:{title:'Select Date'}} },
      ...
   ]

});
multiSearch = function(elem)
{
   jQuery(elem).jqGrid('searchGrid', {multipleSearch:true,} );
}
</script>

Any Ideas how to implement that?

THX

JAY

02/12/2010
00:36
Avatar
jwinns
Member
Members
Forum Posts: 16
Member Since:
30/08/2010
sp_UserOfflineSmall Offline

I've just noticed that I can grab the filters value simply server-side, so it's only about integrating the multipleSearch form in the edit- and add- modal dialogs.

 
how can this be achieved?

THX

JAY

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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