@boikom

@boikom

Forum Replies Created

Viewing 15 posts - 511 through 525 (of 927 total)
  • Author
    Posts
  • in reply to: Close one tabbed docked window #101420
    admin
    Keymaster

    Hi 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/

    admin
    Keymaster

    Hi 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.com

    in reply to: Full Documented API #101414
    admin
    Keymaster

    In case you data bind the table to data adapter instead of an array, look at https://www.htmlelements.com/docs/data-adapter/
    Regards,
    Peter

    in reply to: Full Documented API #101413
    admin
    Keymaster

    Hi,
    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,
    Peter

    in reply to: Menu Blazor ItemClicked syntax #101410
    admin
    Keymaster

    Hi 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/

    in reply to: centered window #101409
    admin
    Keymaster

    Hi 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/

    in reply to: Custom Command Column in React #101408
    admin
    Keymaster

    Hi 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/

    in reply to: Menu Blazor ItemClicked syntax #101399
    admin
    Keymaster

    Hi 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/

    admin
    Keymaster

    Hi Дмитрий Шелковников,
    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/

    in reply to: Error error TS2322: in typescript version 4.0.5 #101368
    admin
    Keymaster

    Hi 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/

    in reply to: Update TreeGrid DataSource #101361
    admin
    Keymaster

    Hi 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 Team

    in reply to: Can i use smart UI without using single file components? #101339
    admin
    Keymaster

    Hi,
    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/

    admin
    Keymaster

    Hi 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/

    in reply to: Mapping dataField to complex JSON structure #101307
    admin
    Keymaster

    Hi 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/

    in reply to: smart window not displaying footer #101290
    admin
    Keymaster

    Hi 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/

Viewing 15 posts - 511 through 525 (of 927 total)