Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Jun 04, 2008 01:13
open dhtmlx forum
when creating an xml conraining a combo cell

I have a combo cell. When creating the xml a give the cell like this :fwrite($fp," <cell >".$book['StopToName']."</cell>\n");

afterwards a put in the combo values from database and the combo looks like this :

        
                    combo1.put("1","iasi");                            
                                        
                    combo1.put("2","tesrt");                            
                                        
                    combo1.put("5","Pacurari");                            
                                        
                    combo1.put("7","Pascani");                            
                                        
                    combo1.put("8","Iasi");                            
                                        
                    combo1.put("9","ccc");                            
                                    
how do i put the cell in the xml to contain the label $book['StopToName'] and the value $book['StopToID']
Answer posted by Support on Jun 04, 2008 01:21
When you describing value of combo excell from XML you have two possibilities
a) provide just a value of cell
    - if there is an option ( created from .put ) with such value - related label will be shown in grid
    - if there is no option with such value - the temporary option will be created, with label == value

b) you can configure all possible options directly from XML

    <cell xmlcontent="true">some<option value="some">some label</option><option value="another">another label</option>
    <cell>

in such case instead of default option set, cell will use options described in XML.