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
closeAfterEdit not getting set?
03/09/2009
15:51
Avatar
Martin
Guest
Guests

I have these edit options in my navGrid:

        {height:610,reloadAfterSubmit:true, closeAfterEdit:true,closeOnEscape:true, jqModal:true,
                beforeShowForm : function (formid) {
                    var mytitle = $('#inputManager').val();
                    $(”.ui-jqdialog-title”,”#edithd”+”event”).html(”Event Manager: “+mytitle);
                    return [true,"",""];
                },
                beforeSubmit: function setID () {
                    var mN = $('#managerID').val();
                    var gN = $('#groupID').val();
                    var vN = $('#venueID').val();
                    var pN = $('#parentID').val();
                    jQuery(”#event”).editGridRow(”new”,{editData:{managerID:mN, groupID:gN, venueID:vN, parentID:pN}});
                    return [true,"",""];
                },
             
            bottominfo:”Fields marked with (*) are required”}, // edit options

but the code check in grid.formedit.js (line 805) fails to see the option as true, so the Editgrid won't close.

I see the same issue with addGrid too. If I set these option directly true (line 192 and 190) it works fine.

I'm using GitHub from 9/2/09

Martin

04/09/2009
03:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Martin,

What you mean with: " If I set these option directly true"?

Did you mean that if you have

var editopt = {....} // the options that you listed

and then

...navGrid(...., editopt...), - does not work

but when you

.. navGrid(....,{here edit options}...) - this work

Is this the case?

Best 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/09/2009
06:40
Avatar
Martin
Guest
Guests

Hi Tony, Sorry I  wasn't clear.

When I edit the grid.formedit.js source file and change the default closeAfterEdit from false to true on line 192 the EditGrid does close.

It seems that the editoptions are not being passed or saved.  Perhaps the EditGridRow I'm calling is breaking something? 

Thanks

Martin

08/09/2009
07:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Just tested your example on demo page. All work fine. Also the only that I do not test is beforeSubmit event.

Just for test disable this event and try. I think that the error occur in this code.

Should I think that you try to edit the row on the same grid again - with the last line on this event?

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