Forum
05:34
28/07/2008
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
06:28
28/07/2008
07:03
Moderators
30/10/2007
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.
00:30
28/07/2008
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)
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});
});
02:16
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66