Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
CloseAfterDelete required
29/09/2009
07:42
Avatar
Underdark
Guest
Guests

Hello Tony!

Thanks for your work!

Could you please add additional event like CloseAfterDelete or something similar? It's good to use like this events on add|edit dialogs, but after delete procedure modal "Delete" dialog doesn't close. Cry

29/09/2009
11:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

The dialog is closed automatically if you delete a row.  Check your code, for errors. A simple test is to do this whitout using any evenr, try just with the default settings.

Regards

Tony

P.S. This is may last post for this type of messages, sorry that I say this , but if you want to submit a bug -

1. code

2. browser.

3. jqGrid version.

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

16/10/2009
20:22
Avatar
hielo
Guest
Guests

Hello, I have the same case, but thought I knew the reason. Please view this script, in the last line I call the function 'header', then the dialog “Delete” doesn't close. But after I removed the line and everything stayed the same. Then, that can I do? Thank you so much.

<?php
  require_once('mysqlsupport.php');
  require_once('connectionvars.php');

  if($_POST[oper] != 'del')
    return;

  $conx = new MySQLConnect($hostname, $username, $password);
  $sql = 'DELETE FROM Afiliados WHERE CodigoInt = ' . $_POST[id];
  $fp = fopen(”../logs/logfilefordelete.txt”, “w”);
  if(fwrite($fp, $sql) == false){
    echo “No se pudo crear el log…<br /><br />”;
  }
  fclose($fp);
  $rs=$conx->createResultSet($sql, $databasename);
  $conx->close();

  header('location:../mainscript.php?rowdeleted=1');
?>

This is a piece of code which defines the value of the parameters for the navigator:

    }).navGrid(
      '#pagerAfiliados',
      {edit:false,add:false,del:true},
      {}, // prmEdit (Edit Options)
      {}, // prmAdd (Add Options)
      {url:'scripts/scriptfordelete.php',closeAfterDelete:true,reloadAftersubmit:true}, // prmDel (Del Options)
      {}, // prmSearch (Search Options)
      {}  // prmView (View Options)
    );

24/10/2009
16:06
Avatar
hielo
Guest
Guests

Hello again.

In my prior post I say that that modal window form don't close maybe for the line:

header('location:../mainscript.php?rowdeleted=1');

Then I delete this line, however the problem continue. Then I discovered that something can happen only in Firefox, but not always.

I work mainly with Firefox 3.5.3. In another computers my site work correctly (working with Firefox 3.5.3)., but in my computer no. With IE8 don't have problems.

27/10/2009
01:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I think that the problem is server side. Check to see what you script return after deleting.

By the way you have bad parameters in delete options.

1. We do not have closeAfterDelete - the dialog is closed automatically when the operation is with success

2. We do not have reloadAftersubmit, but we have reloadAfterSubmit

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

10/01/2010
23:29
Avatar
scubasail
Guest
Guests

Hi Guys!

i also had the problem of deleteform not closing after submit.

the reason was not serverside. it worked after i added an aftersubmit-handler which return [true] !!!

attention don't miss the square-brakets!!!

regards scubasail

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information