Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ivan on Sep 09, 2009 21:08
open dhtmlx forum
Select-box columns in grid(2.5) with dhtmlxConnector (0.9)

Hi,
I'm Enterprise License User, I have wrote a mail to mailto:Support@dhtmlx.com , but no response for two days ,so I post the question here again.
 
I am trying to test select-box columns in grid(ver. 2.5) with dhtmlxConnector(ver. 0.9) (http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxconnector:select-box_columns_in_grid), but I get no value in select list. Is this function just support with next version of dhtmlxConnector(1.0) not present(0.9)?
 
### Hear is my code ##############
### Server side code ####
<?php
require_once("../config.php");
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);
require("../../codebase/grid_connector.php");
$grid = new GridConnector($res);
$grid->enable_log("temp.log",true);
$grid->dynamic_loading(100);
$grid->render_table("grid50000","item_id","item_nm,item_cd");
$options = new OptionsConnector($res);
$options->render_table("country_data","country_id","country_id(value),full_name(label)");
$grid->set_options("item_cd",$options);
?>
### Client side script ##
<link rel='STYLESHEET' type='text/css' href='../../../dhtmlxGrid/codebase/dhtmlxgrid.css'>
 <link rel="stylesheet" type="text/css" href="../../../dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
 <script src='../../../dhtmlxGrid/codebase/dhtmlxcommon.js'></script>
 <script src='../../../dhtmlxGrid/codebase/dhtmlxgrid.js'></script>
 <script src='../../../dhtmlxDataProcessor/codebase/dhtmlxdataprocessor.js'></script>
 <script src='../../../dhtmlxDataProcessor/codebase/dhtmlxdataprocessor_debug.js'></script>
 <script src='../../../dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js'></script>
 <script src='../../../dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js'></script>
 <script src='../../../dhtmlxGrid/codebase/dhtmlxgridcell.js'></script>
 <script src='../../codebase/connector.js'></script> 
<script>
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath('../../../../dhtmlxSuite_v25_pro_90904/dhtmlxGrid/codebase/imgs/');
mygrid.setHeader("Column A, Column B");
mygrid.attachHeader("#connector_text_filter,#connector_select_filter");
mygrid.setInitWidths("100,*");
mygrid.setColTypes("edtxt,co");
mygrid.setColSorting("connector,connector");
mygrid.setColValidators("NotEmpty,ValidEmail");
mygrid.enableSmartRendering(true);
mygrid.enableMultiselect(true);
mygrid.setSkin("dhx_skyblue");
mygrid.init();
mygrid.loadXML("01_basic_connector.php");
var dp = new dataProcessor("01_basic_connector.php");
dp.init(mygrid);
</script>
######
thanks
Answer posted by Support on Sep 10, 2009 02:41
Ivan,
We've received your email and currently are working on the described problem. We'll try to send you a reply later today.
Answer posted by Ivan on Sep 10, 2009 03:26


Thanks for your help,

because the feature of Grid(2.5) is very important for our new case(customer's requirement), that needs to be confirmed with immediately.

Thanks again !

Answer posted by Todor Kazakov on Sep 10, 2009 09:31
Hello,
I am also interested in using this functionality. We are using the PRO version of the grid version 2.5.
It seems that the problem is the missing class OptionsConnector in the dhtmlxConnector package.
Please reply here with the answer.

Thanks in advance,
Todor Kazakov