Forum


12:12

29/01/2009

Hi, I'm trying to create a Maste Detail Grid and all goes well, except that I want to be able to add and edit records on the detail grid and no fields show up in the dialog. Just the buttons to submit or cancel.
My detail grid is as follows:
jQuery("#listcont").jqGrid({
pager: jQuery('#pagercont'),
caption: 'Conteúdos',
url:'<?php echo selfUri();?>&task=gridcont',
colNames:['','Id','Conteúdo','Ordem','Activo'],
colModel:[
{name:'act', index:'act', width:15, align:'center', search:false, sortable:false, hidedlg:true},
{name:'id', index:'id', width: 20},
{name:'conteudo', index:'conteudo', editable:true, edittype:"text", editrules:{required:true} },
{name:'ordem', index:'ordem', width:20, editable:true, editrules:{required:true, number:true} },
{name:'activo', index:'activo', width:20, align:'center', editable:true, edittype:'select', editoptions:{value:'S:S;N:N'} }
],
sortname: 'ordem',
sortorder: 'asc',
editurl: '<?php echo selfUri();?>&task=updatecont'
}).navGrid('#pagercont',{edit:false,add:true,del:false});
Can anybody help?
Thanks
09:33

Moderators
30/10/2007

Hello,
What is the error from FireFox? Also try to use FireBug to see where exactly is the error.
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.
01:16

Moderators
30/10/2007

Hello,
Check your code again. Which buttons are shown?
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.
04:03

29/01/2009

Hi Tony, thanks for replying.
You can see the snapshots here:
http://picasaweb.google.com/he.....ridProblem
And the relevant part of the code here:
http://pastebin.com/m569564cc
Let me know if you need anything else.
Thank you!
Helder
10:56

29/01/2009

Interesting development.
If I click first on the add, the fields don't show. If after that I click the edit, the fields still don't show.
But...
If I first click on an edit button, the fields do show! And after that, if I click on the add button, they still show!
So, clicking the ADD first, is clearing those fields. But this only does not happen in IE, and it's only for detail grids.
I have tried with 3 grids (the 3rd being a detail from the 2nd), and the last 2 have the same behavior (have not tried yet with 2 separate grids).
11:13

Moderators
30/10/2007

Hello,
Could you please send me a link to the problem?
You can write me to tony at trirand dot com
Thank you
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.
11:19

29/01/2009

Also, in Firefox, if I first click on edit, and then add, the dialog for add has the fields filled with the same data from edit, and I can't do anything with it.
On add, the title of the window says it's to add a record, but the 'oper' is set to 'edit'. So, all the post fields in add, stay the same, after edit.
Most Users Ever Online: 715
Currently Online:
41 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