delete-dialog-not-displaying-properly

Questionsdelete-dialog-not-displaying-properly
Svilen Kirov asked 5 years ago

I am using a custom delete button and when I click it the delete dialog appears in the top left corner, as shown on the screenshot. I\’ve tried the already discussed solutions, however they only work when using the default delete button, and not a custom one.

 

This is my custom column

$col = array();

$col[\”title\”] = \”\”;

$col[\”name\”] = \”view_more\”;

$col[\”fixed\”] = true;

$col[\”width\”] = \”130\”;

$col[\”align\”] = \”center\”;

$col[\”search\”] = false;

$col[\”sortable\”] = false;

$col[\”viewable\”] = false;

$col[\”export\”] = false;

$buttons_html .= onclick=\”delete_row({ID})\”> <img class=\”resize\” src=\”src/users/icons/Delete2.png\”></img>

$col[\”default\”] = $buttons_html; and here is the delete_row function funct1ion delete_row($id){ jQuery(\’#list1\’).jqGrid(\’delGridRow\’, $id); };

The function is working properly, however I would like to change the location and size of the delete dialog.   Screenshot: https://imgur.com/FDql9nZ

1 Answers
Abu answered 5 years ago

You can pass additional param of dialog configuration in delGridRow. e.g

obj = {};
obj.width = “500”;
obj.beforeShowForm = ‘function(formid){ var gid = formid.attr(“id”).replace(“DelTbl_”,””); jQuery(“#delmod” + gid).abscenter(); }’;

jQuery(’#list1’).jqGrid(’delGridRow’, $id, obj );

Your Answer

10 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?