@boykomarkov22gmail-com
@boykomarkov22gmail-com
Forum Replies Created
-
AuthorPosts
-
Markov
KeymasterHi,
The problem here is that the dataSourceSettings property is not set. It should be set and the dataFields in it should be set as well. The dataFields describe the types of the columns. Alternatively, you can use the dataAdapter, too.
Regards,
MarkovSmart UI Team
https://www.htmlelements.com/Markov
KeymasterHi Srinivas,
You can prepare a new dataSource and set it to the Gantt chart. By doing that, you can instead multiple tasks at once.
Regards,
MarkovSmart UI Team
https://www.htmlelements.com/Markov
KeymasterHi,
The only issue here is that since the dataFields are defined in dataAdapter and when you use Array instead of DataAdapter, the data is repsesented as Strings instead of the actual data types. This can be easility solved by using the “dataSourceSettings” proeperty which you can use to define your dataFields and data types.
Regards,
MarkovMarkov
KeymasterHi,
You need to set the dataSource property to a new value. Using dataAdapter is not mandatory. You can bind it to an array.
Regards,
MarkovMarkov
KeymasterHi Matias,
I updated the sample: https://stackblitz.com/edit/github-dcz87q-zfeczm?file=package.json,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html
Now when the properties are set in the template, all is ok. The problem with the other approach is that when you set properties one after another dynamically, it happens that you apply columns with sorting before the sorting is enabled so after all data sort is not applied to the Grid.Regards,
MarkovMarkov
KeymasterHi,
You can use document.querySelectorAll(‘smart-tree-item’); and loop through the collection of nodes
const items = document.querySelectorAll('smart-tree-item'); [].forEach.call(items, function(item) { // do whatever });
Regards,
MarkovMarkov
KeymasterHi Joko,
The value is returned correctly. The time input expects an array of two numbers and returns an array of two numbers. There is also additional method getFormattedValue() which returns the String value of the Input.
Regards,
MarkovMarkov
KeymasterHi Joko,
Yes, it is a string. The value returns the Input’s value as it is displayed.
The component has getValue method which returns the decimal value.Regards,
Markov-
This reply was modified 1 year, 1 month ago by
Markov.
Markov
KeymasterHi,
The only problem i could observe is that there are 1:, 2:, etc. in the provided data source which make it invalid array.
Below is a working sample:
const comboBox = document.querySelector("jqx-combo-box"); const vehileBrands = [{ id: 272, brand: 'GPS_TR08' }, { id: 2, brand: 'GPS_CONCOX_GT06MDF' }, { id: 3, brand: 'GPS_CONCOX_GT06' }, { id: 4, brand: 'GPS_CONCOX_GT07' }, { id: 5, brand: 'GPS_CONCOX_GT08' }, { id: 6, brand: 'GPS_CONCOX_GT700' }, { id: 7, brand: 'GPS_CONCOX_GT710' }, { id: 8, brand: 'GPS_CONCOX_GT800' }, { id: 9, brand: 'GPS_CONCOX_GT300' }, { id: 10, brand: 'GPS_CONCOX_GT03C' }, { id: 11, brand: 'GPS_CONCOX_GT02' }, { id: 12, brand: 'GPS_CONCOX_GT02D' }, { id: 13, brand: 'GPS_CONCOX_TR02' }, { id: 14, brand: 'GPS_CONCOX_TR06' }, { id: 15, brand: 'GPS_CONCOX_GK310' }, { id: 16, brand: 'GPS_CONCOX_GK309E' }, { id: 17, brand: 'GPS_CONCOX_GS503' }, { id: 30, brand: 'GPS_CONCOX_HVT001' } ]; comboBox.valueMember = "id"; comboBox.displayMember = "brand"; comboBox.dataSource = vehileBrands; comboBox.onchange = (event) => { console.log(event.detail); }
Regards,
MarkovMarkov
KeymasterHi Joko,
The type of the ‘value’ is expected to be String. You will see a console log message that the Type validation has failed, because a String value is expected.
You can use ‘1’ instead of 1.Regards,
MarkovMarkov
KeymasterThanks for the update, Fabriceb
Markov
KeymasterHi Aviv,
The fix will be in the next release of Smart UI in the first half of April.
Regards,
MarkovSmart UI Team
https://www.htmlelements.com/Markov
KeymasterHi Vinh,
If you mean the https://www.htmlelements.com/demos/buttongroup/overview/, i think the Menu is closer to a toolbar as it supports dropdowns and overflow.
Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/Markov
KeymasterHi,
For side bar purposes, we have the ListMenu component – https://www.htmlelements.com/demos/listmenu/overview/
As for toolbar purposes, the Menu component can also serve for this purpose – https://www.htmlelements.com/demos/menu/items-with-icons/ and https://www.htmlelements.com/demos/menu/hidden-scroll-buttons/Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/Markov
KeymasterHi,
You can check our Tree component for sidebar purposes – https://www.htmlelements.com/demos/tree/overview/. For toolbar, i suppose you can use a regular DIV tag.
Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/ -
This reply was modified 1 year, 1 month ago by
-
AuthorPosts