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
New search toolbar & Add/Edit buttons
15/10/2008
05:34
Avatar
softcore
Kostroma, Russia
Member
Members
Forum Posts: 17
Member Since:
28/07/2008
sp_UserOfflineSmall Offline

Tony, maybe it seems strange, but is it possible to use add/edit buttons (form editing) in the grid with new search toolbar (filterGrid), introduces in 3.3? I've tried to implement this toolbar. Everything is OK, but add/edit form don't appear when I click pager buttons (even if searh toolbar is hidden). Standart search form and warning forms works well. When I delete search toolbar add/edit forms works again.

I want to implement new search toolbar without loosing ability to add and edit records.

Tested with different browsers, with grid.packall

15/10/2008
06:28
Avatar
softcore
Kostroma, Russia
Member
Members
Forum Posts: 17
Member Since:
28/07/2008
sp_UserOfflineSmall Offline

I've tested this issue. The problem is only when we have editable field(s) with edittype="select". In other cases everything is OK. But I think that this should be solved.

15/10/2008
07:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If you have differences with edit fields in add/edit form and the new

search functionality maybe a good idea is to use your own

filterModel - i.e gridModel is false, then configure your filterModel and set

gridToolbar to true. Also refer to doc to see how you can configure your

custom search model.

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.

16/10/2008
00:30
Avatar
softcore
Kostroma, Russia
Member
Members
Forum Posts: 17
Member Since:
28/07/2008
sp_UserOfflineSmall Offline

Tony I don't have differences in fields. In filterGrid I want to use the same colModel. I don't think that the problem is in my code because it's quite simple. If I delete “edittype:”select”" from the second column (type_worker) everything works well, but with “edittype:”select”" add/edit forms don't work. Also add/edit forms work if I delete the line with filterGrid (the last line in my code)

jQuery(document).ready(function(){
var lastsel;
  jQuery(”#list”).jqGrid({
    url:'z-workers.php',
    datatype: 'xml',
    height: '100%',
    colNames:['ФИО','Тип'],
    colModel :[
      {name:'fio_worker', index:'fio_worker', width:200, editable:true, editoptions:{size:30}},
      {name:'type_worker', index:'type_worker', width:150, editable:true, edittype:"select",editoptions:{value:"Производство:Производство;Монтаж:Монтаж"}}],
    pager: jQuery('#pager'),
    rowNum:10,
    rowList:[10,20,30],
    sortname: 'type_worker',
    sortorder: “asc”,
    viewrecords: true,
    imgpath: 'themes/basic/images',
    caption: 'Работники',
    toolbar: [true, "top"],
    editurl: “z-workers-edit.php?a=edit”
  }).navGrid('#pager',
    {refresh: true, edit: true, add: true, del: true, search: true},
    {url: 'z-workers-edit.php?a=edit'},
    {url: 'z-workers-edit.php?a=add'},
    {url: 'z-workers-edit.php?a=del'});
jQuery(”#t_list”).filterGrid(”#list”,{gridModel:true,gridToolbar:true});
});

16/10/2008
02:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is definitley a bug. Thank you.

Soon will be bug fix release.

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:
70 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