Skip to content

Commit

Permalink
Added NoDataHtml support to QDataGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeho committed Jun 30, 2010
1 parent ab30769 commit ecef9b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions includes/qcodo/_core/qform/QDataGridBase.class.php
Expand Up @@ -555,6 +555,13 @@ protected function GetFooterRowHtml() {}
protected function GetControlHtml() {
$this->DataBind();

// Render NoDataHtml?
if ((!$this->objDataSource || !count($this->objDataSource)) &&
$this->strNoDataHtml) {
$this->objDataSource = null;
return $this->strNoDataHtml;
}

// Table Tag
$strStyle = $this->GetStyleAttributes();
if ($strStyle)
Expand Down

0 comments on commit ecef9b1

Please sign in to comment.