Categories | Question details Back To List | ||
Grid XML autocomplete I use PRO version and try to use Grid config with XML. I want some answers because I can't find them in documentation. First, what is autocomplete? is it for subrows? Next, I'd like to fill a cell combo using the sample: <cell xmlcontent="1" source="complete.php" auto="true" cache="true" text="some text">4</cell> ...but what is the "text" attribute? and... the output of the complete.php must be as: <cell>1^one</cell> ? and another question: In a XML configuration, I have two cells with different combo boxes. The list of the second depends on the value of the first combo box. Which means, if the first has change by a new selection, this new selection must affect the list of the second combo. Is there a possibility to catch it? Thanks a lot, John Answer posted by Support on Feb 02, 2009 02:35 >>First, what is autocomplete? is it for subrows? Not sure which functionality do you mean, most probably "autocomplete" refers to dhtmlxCombo in grid, in auto-complete mode http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_combo.html?un=1233570962000 >>...but what is the "text" attribute? In autocomplete mode combo need to have both initial value and initial label to be defined In case of text="some text">4</cell> Grid will render "some text" as initial label of cell, but will have "4" as inner value of cell. The <cell>some text^4</cell> just a different syntax to define both initial label and value in same time. ( they not related to the output of complete.php - which is common format of combo, but to initial value of cell ) >>Is there a possibility to catch it? You can use onEditCell event to catch the finish of edit operation in first combo and use getCellCombo to get second combo and change its mode in any necessary way. Answer posted by j.lagos on Feb 02, 2009 02:42 Thanks a lot, that's all fine! John |