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
Cancel paging event
10/06/2009
11:45
Avatar
blemoine
New Member
Members
Forum Posts: 1
Member Since:
10/06/2009
sp_UserOfflineSmall Offline

Hi Tony -

I've had great success implementing the grid - thanks very much!

I need a feature that will allow me to do a “dirty check” on the grid before the user goes to a new page.  I'm using a multiselect and want to prompt them on whether they want to commit any changes they've made (rows they've selected or unselected) before they page.  I've put this into grid.base.js myself - basically it adds a return value to the paging button click.

Line 1115:

                if(selclick) {
                    //BL: hack below.  Prevents user paging if onPaging returns false
                    var ePaging;
                    if (typeof ts.p.onPaging =='function') {
                        ePaging = ts.p.onPaging(this.id);
                    }
                    if(ePaging){
                        clearVals();
                        populate()
                    }else{
                        ts.p.page=cp;
                    }
                }

And the implementation:

                        onPaging: function(pgButton){
                              var dirtyCheck = dirtyCheckFunction();
                              return dirtyCheck;
                          },

Cheers,

Brett L.

Edit: renamed e to ePaging to not declare with the function's native e (duh).  Also added code to set page number back to the original value rather than increment.

12/06/2009
01:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

We need a more common solution when goes to this type checking. Also we should do this when sorting and etc. Will think about this after 3.5 is released.

Thanks

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.

19/01/2010
13:08
Avatar
CTAPbIu_MABP
Guest
Guests

Hi Tony. Thank you for your awesome plugin.

I have the same problem as blemoine but the current version is 3.6.2 and there is still no such functionality

Dont you forget about this issue or you have some technical problems?

22/01/2010
12:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I will try to add this in the upcomming 3.6.3 release.

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.

22/01/2010
14:50
Avatar
CTAPbIu_MABP
Guest
Guests

Thank you 😉

You use onPaging function only once, so I think nothing bad happens if you remove

if ($.isFunction(ts.p.onPaging) ) {ts.p.onPaging.call(ts,onpaging);}

from line 958 and add next code to lines 1005,1029,1051 passing there one more argument

if ($.isFunction(ts.p.onPaging) ) { if (!ts.p.onPaging.call(ts,this.id,ts.p.page)) return;}
22/01/2010
14:51
Avatar
CTAPbIu_MABP
Guest
Guests

FYI I use version from GitHub

25/01/2010
12:46
Avatar
CTAPbIu_MABP
Guest
Guests

I see changes in repository. thx.

25/01/2010
14:22
Avatar
CTAPbIu_MABP
Guest
Guests
recent changes have a negative impact on search
there is some trouble with z-index on grey overlay. it covers not only table but search-box too.
26/01/2010
18:35
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Try to install the development version - described here

http://www.trirand.com/jqgridw.....stallation

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.

27/01/2010
12:46
Avatar
CTAPbIu_MABP
Ukrane, Lviv
Member
Members
Forum Posts: 10
Member Since:
26/01/2010
sp_UserOfflineSmall Offline

Cannot reproduce bug with search any more.

31/01/2010
19:03
Avatar
CTAPbIu_MABP
Ukrane, Lviv
Member
Members
Forum Posts: 10
Member Since:
26/01/2010
sp_UserOfflineSmall Offline

Got it!

github version

installed as for developer

http://www.trirand.com/jqgridw.....stallation

[Image Can Not Be Found]

minimal code is

    $("#table").jqGrid({
        colNames:["ID"],
        colModel:[
            {name:"id"}
        ],
        pager:"#pager"
    }).jqGrid("navGrid","#pager");
01/02/2010
10:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks will check it.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
66 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