Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Dave Lantz: "I have to say that I simple love this product and its ease of use. I know that I have only tapped into about 20% of what it can do. In my business I come into a lot of contact with developers and I tell them all, that if they need an easy way to connect, report or work their databases they MUST check out your products".
Steve Morton: "First let me thank you for making this application Free. Best deal I have ever see for what it does".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnAfterPageLoad

This event occurs after page has been fully rendered. It does not get triggered until all assets such as images have been completely received and DOM hierarchy has been fully constructed.

 

Example:

To get details of the first record expanded on the webpage opening, specify the event handler as follows:

 

function expandFirstDetail() {

  if ($('table.pgui-grid').data('grid-class')){

    var grid = $('table.pgui-grid').data('grid-class');

    var $row =  $('table.pgui-grid tr.pg-row').first(); 

    grid.expandDetails($row);

    return true;

  }

  else {

    setTimeout(expandFirstDetail, 100);

  }

}

expandFirstDetail();

 

It is also possible to specify the function above within the OnBeforePageLoad event handler. In this case the OnAfterPageload event handler should contain only the function call:

 

expandFirstDetail();



Prev Return to chapter overview Next