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
hide confirmation box when delete row
11/09/2008
03:14
Avatar
Tommy1402
Member
Members
Forum Posts: 6
Member Since:
20/08/2008
sp_UserOfflineSmall Offline

I configure in jqGrid table that some row cant be deleted.

so, I put in navgrid: beforeShowForm. that if the ID = 1, will popup an

alert box "row 1 is readonly". then return false in that function.

beforeShowForm : function(formid) {
  var id = jQuery("#myGrid").getGridParam('selrow');
  if(id == 1) {

    alert("data is readonly");

    return false;

  }
}

The problem is, the deletion confirmation box keep showing eventhough I have return false. Any help?

11/09/2008
05:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Define your custom button for this purpose. It will be more easy.

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.

14/09/2008
23:39
Avatar
Tommy1402
Member
Members
Forum Posts: 6
Member Since:
20/08/2008
sp_UserOfflineSmall Offline

What about the positioning of the custom button?

I created a custom delete button, with the exact image. But the position si at the most right.

How can I position it so it is placed in the original delete button?

thanks

16/09/2008
02:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

When adding custom buttons, they can be added at first or

at last position. See docs

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