Solved

Jqgrid custom delete message

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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 the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

772 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

14 Experts available now in Live!

Get 1:1 Help Now