Solved

Jqgrid custom delete message

Posted on 2010-11-26
3
1,319 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java script read and write file - save as location 8 44
Javasctipt 2 25
Javascript tutorials with real examples 5 25
Best Way to remove the port from a URL? 15 35
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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…

773 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