Hello,
I try to use dhtmlxGrid in my application,but always get an error “Error type: loadXML. Incorrect XML file”
I try to use your example as is and also get a same error. See it in maale-rahavam.net/tabsheet/d … ation.html
I need to get data from php file,there i get all neccesery fields from database and show it in the grid. Please help.
You can open php file in separate window to check the reason of the error
Warning: mysql_connect() [function.mysql-connect]: Access
denied for user ‘dhtmuzer_ro’@‘sonic.host-care.com’ (using password: YES) in /home/maalerah/public_html
/tabsheet/dhtmlxGrid/dhtmlxGrid/samples/common/config_dp.php on line 7
It seems that used login|pass info is not correct
hello Stanislav
i create 2 new pages,but data is not loaded also from localhost db. check the code below and also look at link w3.org/1999/xhtml">
<script src=“libs/grid/codebase/dhtmlxcommon.js”>
get.php
<?php
require_once(“connections/db.class.php”);
$res=mysql_connect($hostname,$username,$password);
mysql_select_db($database);
require(“libs/connector/codebase/grid_connector.php”);
$grid = new GridConnector($res);
$grid->enable_log(“temp.log”,true);
$grid->dynamic_loading(100);
$grid->render_table(“t_pay”,“september”,“october”);
?>
by the way its look in standart php,without ajax maale-rahavam.net/tabsheet/tabs_old.php all db connections from same db.class.php works
Hello,
the issue is already solved. Am I right ?
nope.its still not show data
Hello,
data loaded. But it isn’t shown because of the height of the container. It seems that container has 0 height.
Please, check that that grid container has desired height (try to set it 200px for example - and you will be the rows)
yep.its work. tnx.
another question: how to send selected data from grid to form in other tab?
You can use getValue method to get value of the cell. For example:
var values = [];
var rowId = grid.getSelectedRowId()
grid.forEachCell(rowId,function(cellObj){
values[values.length] = cellObj.getValue();
});