@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
adminKeymaster
Hi,
Actually, here the issue is different. The data which comes from your data source is String, not a Date object so the format here is ambiguous. From new Date(“01/06/1954”) it will create 6 January 1954. If you pass a Date object instead of String in your data source it will work. In the next version, the dataField will include a formatString property in order to enable deserialization of string dates in the specific formats i.e you will be able to set it like that
` dataSource: new Smart.DataAdapter({
dataSource: [{
“C1”: “1”,
“C2”: “Hot Chocolate”,
“C4””: “SEAVISION”,
“C6”: “01/06/1954”,
“C5”: “true”,
“C3”: “14g”
}],
dataFields:
[{ name: ‘C1’, dataType: ‘number’ },
{ name: ‘C2’, dataType: ‘string’ },
{ name: ‘C4’, dataType: ‘string’ },
{ name: ‘C5’, dataType: ‘bool’ },
{ name: ‘C3’, dataType: ‘string’ },
{ name: ‘C6’, dataType: ‘date’, formatString: ‘dd/MM/yyyy’ }
]
})`Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
locale is a property. If you do not set it, it is not set automatically. The DateInput works with the settings set by the user. Otherwise, it uses default settings.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
Only locale which defaults to ‘en’.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/March 30, 2022 at 7:09 am in reply to: Docked panel/item still gets close button even if disabled #103022adminKeymasterHi rarcher,
We reproduced this and created a work item. The behavior should be dock/undock should keep the headerButtons setting.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi rarcher,
When you autohide a layout panel with tabs, you can unpin individual tabs which results in creating new owner panels with new ids.
We will add a work item to investigate the reported issue. At present, there is no way around this.Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi alexis,
I think that this part of the code is wrong: this.firstElementChild.selectedValues[0].description. The reason is that there is no description field in the data source, and the other reason is that you may not have a selected value, too. This means that this.firstElementChild.selectedValues[0] is undefined.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
selectedValues expects strings/numbers, not objects. The items of the DropDownList/ComboBox can be strings or objects with label/value fields. The values are always strings or numbers. I would suggest you to look at https://www.htmlelements.com/demos/grid/editing-cascading/. The example shows how to create such an editor.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
We are unable to reproduce it with the latest version. Please, check whether you use the most-recent files and clear your web browser’s cache.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi JoeLaRue,
It is in the Grid API docs. dataSourceSettings>dataFields>map
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi rarcher,
You’re right. We do not have API to insert a new panel which is undocked initially. I will add a work item for that missing API.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/March 28, 2022 at 6:20 am in reply to: Vertical and horizontal size when panel/tab item is undocked #103002adminKeymasterHi rarcher,
We do not have height property. With the docking layout, you can use CSS width & height props to apply sizes to panels or other html elements part of the docking layout.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi rarcher,
We reproduced the reported behavior and created work item about it. The Docking layout error will be resolved as soon as possible.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
This issue should have been already resolved in the latest version.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi,
This issue should have been already resolved in the latest version.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/adminKeymasterHi Jose,
At present, the way to achieve that is to removeFilter and then call addFilter. That will refresh the Grid filtering.
Best Regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts