Solved

Jqgrid custom delete message

Posted on 2010-11-26
3
1,310 Views
Last Modified: 2012-05-10
Hi all,

I am trying to set a new delete message every time using:

$.jgrid.del.msg = dialog;

It works the first time, but after that it is stuck with the first one.
Appreciate any help.
0
Comment
Question by:sofux
3 Comments
 

Accepted Solution

by:
sofux earned 0 total points
ID: 34230399

Hi,

Solved the problem myself.

I am not sure why but I had to delete the delete dialog before I create it.
So if my grid name is Grid1 then code goes like this:

$("#delmodGrid1").remove();
$.jgrid.del.msg = dialog;
grid.delGridRow(rowKey);

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now