Categories | Question details Back To List | ||
GridConnector:combobox problems 1. I'm define grid header in xml document using php: GridConnector and $grid->event->attach("beforeOutput","grid_header"). Grid cotains 4 fields and one of them is co (combobox) type field. In this case combobox doesn't show passed values - labels. When grid headers are defined in javascript all worked properly. Define grid columns and it source in one place for me is important. 2. If values for combobox try to pass with GridConnector & OptionsConnector, then it dosn't work. There were already question in (http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=11498&ssr=yes&s=set_options) , but i dosn't see solution on that problem. I solve it by creating array with php code, but i would like to use built in functionality. I tested it with connector v.0.95 PHP Edition and grid (2.1). Trying these cases with provided sample 06a_combo.html I received the same result. Answer posted by Stanislav (support) on Oct 16, 2009 03:56 >>Trying these cases with provided sample 06a_combo.html I received the same result. Is default sample not working for you as well, or it doesn't work only in case of custom configuration? There is a known issue with co|coro columns , where they may be filled incorrectly based on the order and types of columns - updated version of connectors will be released later today, it will contain fix for above problem. >>1. I'm define grid header in xml document using php: GridConnector and $grid->event->attach("beforeOutput" Normally , when load command is called, grid already knows the types of columns so it changes request to the server side, to request data for co|coro columns. In your case the types of columns is unknown during data loading - so connector doesn't request any collections. To fix the issue you can try to change the url to the server side script from some.php to some.php?dhx_colls=1,3 where 1,3 - indexes of columns for which collection need to be requested. Or set the related GET variable directly in the php script. |