?
Solved

Jqgrid custom delete message

Posted on 2010-11-26
3
Medium Priority
?
1,344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)
Suggested Courses

765 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