@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
admin
KeymasterHi Peter,
Thanks for the sample. The methods for saving the layout and structure of the Docking Layout actually save the layout and the structure. The saved object does not include information on whether the close buttons are enabled or similar kind of information.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/February 1, 2021 at 12:32 pm in reply to: Kanban is not working when added script file specific to Kanban only #101417admin
KeymasterHi Mitesh,
I would suggest you looking into the kanban getting started help tutorial or the onlime samples which use smart.kanban.js module. Note that the module is in the modules folder.
Regards,
Peter
Smart UI Team
Htmlelements.comadmin
KeymasterIn case you data bind the table to data adapter instead of an array, look at https://www.htmlelements.com/docs/data-adapter/
Regards,
Peteradmin
KeymasterHi,
The documentation API of each component is in its component API page in the website docs. All properties, methods and events are documented there. In general all docs are in htmlelements.com/docs/
Regards,
Peteradmin
KeymasterHi Scott,
It is not possible to subscribe to ItemClicked event using Razor syntax, because it is not defined as a component Parameter and it cannot be as it is “event” type. It is possible to subscribe to the event using the syntax I sent you. ItemClicked way to subscribe to events is useful only when you want to add multiple event handlers.
For Example:@page "/menu"<Example Name="Menu"> <Menu OnReady="OnReady" OnItemClick="OnItemClick" id="menu"> <MenuItemsGroup> File <MenuItem Shortcut="Ctrl+N">New</MenuItem> <MenuItem Shortcut="Ctrl+0">Open</MenuItem> <MenuItemsGroup> Open Containing Folder <MenuItem>Explorer</MenuItem> <MenuItem>cmd</MenuItem> </MenuItemsGroup> <MenuItem Shortcut="Ctrl+S" disabled>Save</MenuItem> <MenuItem Shortcut="Ctrl+Alt+S" separator>Save As...</MenuItem> <MenuItem Shortcut="Alt+F4">Exit</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Edit <MenuItem Shortcut="Ctrl+Z">Undo</MenuItem> <MenuItem Shortcut="Ctrl+Y" separator>Redo</MenuItem> <MenuItem Shortcut="Ctrl+X">Cut</MenuItem> <MenuItem Shortcut="Ctrl+C">Copy</MenuItem> <MenuItem Shortcut="Ctrl+V" disabled>Paste</MenuItem> </MenuItemsGroup> <MenuItemsGroup DropDownHeight=300> Encoding <MenuItem>Encode in ANSI</MenuItem> <MenuItem>Encode in UTF-8</MenuItem> <MenuItem>Encode in UTF-8-BOM</MenuItem> <MenuItem>Encode in UTCS-2 BE BOM</MenuItem> <MenuItem>Encode in UTCS-2 LE BOM</MenuItem> <MenuItemsGroup separator> Character sets <MenuItemsGroup> Cyrillic <MenuItem>ISO 8859-5</MenuItem> <MenuItem>KOI8-R</MenuItem> <MenuItem>KOI8-U</MenuItem> <MenuItem>Windows-1251</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Chinese <MenuItem>Big5 (Traditional)</MenuItem> <MenuItem>GB2312 (Simplified)</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Western European <MenuItem>ISO 8859-1</MenuItem> <MenuItem>ISO 8859-15</MenuItem> <MenuItem>OEM 850</MenuItem> <MenuItem>Windows-1252</MenuItem> </MenuItemsGroup> </MenuItemsGroup> <MenuItem>Convert to ANSI</MenuItem> <MenuItem>Convert to UTF-8</MenuItem> <MenuItem>Convert to UTF-8-BOM</MenuItem> <MenuItem>Convert to UTCS-2 BE BOM</MenuItem> <MenuItem>Convert to UTCS-2 LE BOM</MenuItem> </MenuItemsGroup> </Menu></Example>@code { void OnReady(Menu menu) { menu.ItemClicked += delegate(object sender, MenuItemClickedEventArgs args) { Console.WriteLine(args.Label); }; } void OnItemClick(Event eventObj) { MenuItemClickEventDetail detail = eventObj["Detail"]; Console.WriteLine(detail.Label); }}
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi chips,
As this is native component, you can use the CSS properties ‘left’ and ‘top’;
Example for centering a Window with Size equal to 400px:left: calc(50% - 200px); top: calc(50% - 200px);
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi Brian,
Inside the custom command function ‘this’ is in the context of the function. It should be Ok if you define it like that:const that = this; window.commandColumnCustomCommand = function (row) { that.setState({showWarehouseId: row.data.id}, () => { console.log(that.state.showWarehouseId) })};
Regarding the ‘class’ and ‘className’, you are right. Using class instead of className produces warnings and in strict mode errors. We will update the samples.
Hope this helps.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi ScottP,
Thanks for trying out our Blazor components.
In order to subscribe to the Menu event, you can use the following syntax:@page "/menu" <Example Name="Menu"> <Menu OnItemClick="OnItemClick" id="menu"> <MenuItemsGroup> File <MenuItem Shortcut="Ctrl+N">New</MenuItem> <MenuItem Shortcut="Ctrl+0">Open</MenuItem> <MenuItemsGroup> Open Containing Folder <MenuItem>Explorer</MenuItem> <MenuItem>cmd</MenuItem> </MenuItemsGroup> <MenuItem Shortcut="Ctrl+S" disabled>Save</MenuItem> <MenuItem Shortcut="Ctrl+Alt+S" separator>Save As...</MenuItem> <MenuItem Shortcut="Alt+F4">Exit</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Edit <MenuItem Shortcut="Ctrl+Z">Undo</MenuItem> <MenuItem Shortcut="Ctrl+Y" separator>Redo</MenuItem> <MenuItem Shortcut="Ctrl+X">Cut</MenuItem> <MenuItem Shortcut="Ctrl+C">Copy</MenuItem> <MenuItem Shortcut="Ctrl+V" disabled>Paste</MenuItem> </MenuItemsGroup> <MenuItemsGroup DropDownHeight=300> Encoding <MenuItem>Encode in ANSI</MenuItem> <MenuItem>Encode in UTF-8</MenuItem> <MenuItem>Encode in UTF-8-BOM</MenuItem> <MenuItem>Encode in UTCS-2 BE BOM</MenuItem> <MenuItem>Encode in UTCS-2 LE BOM</MenuItem> <MenuItemsGroup separator> Character sets <MenuItemsGroup> Cyrillic <MenuItem>ISO 8859-5</MenuItem> <MenuItem>KOI8-R</MenuItem> <MenuItem>KOI8-U</MenuItem> <MenuItem>Windows-1251</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Chinese <MenuItem>Big5 (Traditional)</MenuItem> <MenuItem>GB2312 (Simplified)</MenuItem> </MenuItemsGroup> <MenuItemsGroup> Western European <MenuItem>ISO 8859-1</MenuItem> <MenuItem>ISO 8859-15</MenuItem> <MenuItem>OEM 850</MenuItem> <MenuItem>Windows-1252</MenuItem> </MenuItemsGroup> </MenuItemsGroup> <MenuItem>Convert to ANSI</MenuItem> <MenuItem>Convert to UTF-8</MenuItem> <MenuItem>Convert to UTF-8-BOM</MenuItem> <MenuItem>Convert to UTCS-2 BE BOM</MenuItem> <MenuItem>Convert to UTCS-2 LE BOM</MenuItem> </MenuItemsGroup> </Menu> </Example> @code { void OnItemClick(Event eventObj) { MenuItemClickEventDetail detail = eventObj["Detail"]; Console.WriteLine(detail.Label); } }
Hope this helps.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/January 26, 2021 at 1:06 pm in reply to: How to best integrate Vuex store with DataAdapter while keeping databinding #101382admin
KeymasterHi Дмитрий Шелковников,
You can look at this example how to update data in the Grid dynamically: https://www.htmlelements.com/demos/grid/datagrid-update-data/. If you want to update the data set, you can create a new dataAdapter instance and set the Grid’s dataSource property to it. Alternatively, you can use the Grid API to make updates: https://www.htmlelements.com/demos/grid/live-update/
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi byandex,
We will need a complete example set up that shows the reported behavior.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi Walter,
In order to change the datasource of the Grid, you need to set the dataSource property. To update the dataSource, set the property to a new value.
Example: https://www.htmlelements.com/demos/grid/datagrid-update-data/
Best Regards,
Peter Stoev
https://www.htmlelements.com/
Smart UI TeamJanuary 20, 2021 at 6:45 am in reply to: Can i use smart UI without using single file components? #101339admin
KeymasterHi,
In order to use Smart.Grid with Vue, please refer to https://www.htmlelements.com/docs/grid/#vue
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/January 20, 2021 at 6:44 am in reply to: Warnings on including smart css to angular project. How to resolve this ? #101338admin
KeymasterHi Mike,
The posted warnings do not come from our tools and modules. They seem to be related to something else in your app.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi Nikhil Jain,
jqxGrid like mapping is now supported in the latest version. If you wish, you can try it.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/admin
KeymasterHi davout,
In Angular you cannot put template html tag within angular view due to the reason that Angular Views use HTMLTemplate. It is not necessary to try to use template tag for window footer. You can define a footer within the window’s content.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/ -
AuthorPosts