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
Editing in detail grid
29/01/2009
12:12
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

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

29/01/2009
12:40
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Well… it's working on IE7 not on Firefox 3.0. Is it a known issue? Any ideas?

30/01/2009
09:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

31/01/2009
20:05
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

tony said:

Hello,

What is the error from FireFox? Also try to use FireBug to see where exactly is the error.

Regards

Tony


Thank you for replying Tony!

Actually, there is no error. The edit fields just don't show. Only the buttons.

03/02/2009
01:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

03/02/2009
04:03
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

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

03/02/2009
13:29
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

If I comment out the master grid, detail grid being now the master and only grid, the fields show as normal. It's having two grids that's ruining the edit fields in the latter. 

04/02/2009
10:56
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

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).

04/02/2009
11:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

04/02/2009
11:19
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

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. 

04/02/2009
11:27
Avatar
helder
Member
Members
Forum Posts: 15
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

tony said:

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


It's not online, but I'll prepare a version for you. I'll send it to your email.

Thank you!

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information