![]() ![]() SyncTreeViewSelection(ponent, value) Ĭonst selectedKeys = () Į.component.option('value', selectedKeys) Implement the embedded component's onSelectionChanged handler to update the DropDownBox's value when the selection changes.Ĭonst syncTreeViewSelection = function (treeViewInstance, value) `) ĭataSource: makeAsyncDataSource('treeProducts.json'),Ĭonst value = e.component.option('value').Implement the DropDownBox's onValueChanged handler to update the selection when the value changes.If the embedded component does not have such properties, implement the onContentReady handler (the example with the TreeView). Assign DropDownBox's initial value to the embedded component's selectedRowKeys/ selectedItemKeys property (see the example with the DataGrid below).Synchronize the DropDownBox's value and the embedded component's selection Specify which data field contains the DropDownBox's values and the embedded component's keysĪssign the field's name to the DropDownBox's valueExpr property and to the key property of the embedded component's store. If the DropDownBox contains a DataGrid, bind the DataGrid to a store instead of a simple array (for example, an ArrayStore). If the data sources are different, you need to specify the embedded component's key field in the DropDownBox's data source. The DropDownBox and its embedded component can use the same or different data sources. The following instructions show how to synchronize the DropDownBox with an embedded DevExtreme component: In this demo, the content is the TreeView and the DataGrid in single selection mode. ![]() The DropDownBox component consists of a text field and drop-down content. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |