Forum Replies Created

Viewing 15 posts - 1 through 15 (of 353 total)
  • Author
    Posts
  • in reply to: don't work a wrap for virtual Tree-grid #102239
    Avatar
    admin
    Keymaster

    Hi Oleg Ilin,

    There is no new version available, yet. The latest Smart UI release is before you created this topic.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Custom "Add Column Window" #102234
    Avatar
    admin
    Keymaster

    Hi Trist B,

    Ok, the event is missing from the Grid API and we will add it. You can bind to this event as a normal Javascript event by using addEventListener.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Custom "Add Column Window" #102232
    Avatar
    admin
    Keymaster

    Hi Trist B,

    Where exactly did you read this? There are no such events.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Cell background colour Blazor #102230
    Avatar
    admin
    Keymaster

    Hi,

    Unfortunately, your requirement is not supported with the current API of our DataGrid component. We will create a work item to add support for it in future versions.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Custom "Add Column Window" #102229
    Avatar
    admin
    Keymaster

    Hi Trist B,

    There is no openColumnDialog event in our DataGrid component. My colleague prepared an example which shows how to open a custom window when a column is clicked so basically you decide when you open and close that custom window and what action is will perform – add column or something else based on your web application needs.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Cell background colour Blazor #102226
    Avatar
    admin
    Keymaster

    Hi,

    That can be achieved by using templates for all columns. We do not have a row template in the Grid component.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: CSS issues preventing builds #102212
    Avatar
    admin
    Keymaster

    Hi aconley,

    Thanks for the feedback. From the next version, these CSS errors will be resolved.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: CSS issues preventing builds #102209
    Avatar
    admin
    Keymaster

    Hi,

    How can we reproduce that? We have multiple demos and stackblitz samples which work fine without such errors.

    Regards,
    Peter

    in reply to: Double-click to auto-size column doesn't work #102204
    Avatar
    admin
    Keymaster

    Hi aconley,

    That is an issue in our code which needs to be fixed in order to use the column/row ‘autoSize’ feature. You can subscribe to our newsletter so when we release a new version, you will receive an email. We usually release a new version every 1.5-2 months.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: card click event #102202
    Avatar
    admin
    Keymaster

    Hi Dark Beccio,

    You can achieve that with the following code:

    window.onload = () => {
    const cardview = document.querySelector('smart-card-view');
    const cards = cardview.querySelectorAll('smart-card');
    for(let i = 0; i < cards.length; i++) {
    cards[i].onclick = () => {
    alert("click");
    }
    }
    }

    In the above code we get all smart-card instances inside the card view and add click event handler to them.

    Hope this helps.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Double-click to auto-size column doesn't work #102201
    Avatar
    admin
    Keymaster

    Hi aconley,

    This is an issue in our code which will be resolved in the next version. In previous versions the allowColumnAutoSizeOnDoubleClick was wrongly part of the ‘appearance’ settings and the resizing still checks for that.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Kanban swimlanes #102192
    Avatar
    admin
    Keymaster

    Hi Mehran,

    Swimlanes are expected to be set by using the ‘swimlanes’ property.

    Example:

    const kanban = document.querySelector("#kanban");
    kanban.swimlanes = [
    { label: 'Client "Energo"', dataField: 'client1' },
    { label: 'Client "Sim-Prod Ltd."', dataField: 'client2', color: '#C90086' },
    { label: 'Other clients', dataField: 'other', color: '#03C7C0' }
    ];

    Full example:

    /// <reference path="../../source/typescript/smart.elements.d.ts" />
    const data = [
    {
    text: 'Research of energy business',
    userId: 3,
    status: 'done',
    swimlane: 'client1'
    },
    {
    text: 'Create Gannt chart',
    userId: 2,
    status: 'inProgress',
    swimlane: 'client1'
    },
    {
    text: 'Develop prototype',
    userId: 4,
    status: 'testing',
    swimlane: 'client1'
    },
    {
    text: 'Data extrapolation',
    userId: 3,
    status: 'inProgress',
    swimlane: 'client1'
    },
    {
    text: 'Prepare requirements',
    userId: 1,
    status: 'done',
    swimlane: 'client2'
    },
    {
    text: 'Try out new simulation',
    userId: 1,
    status: 'testing',
    swimlane: 'client2'
    },
    {
    text: 'Create blueprints for new product',
    userId: 1,
    status: 'toDo',
    swimlane: 'client2'
    },
    {
    text: 'Calculate hours necessary for "EMV" project',
    userId: 2,
    status: 'toDo',
    swimlane: 'other'
    },
    {
    text: 'Distribute final product',
    userId: 4,
    status: 'done',
    swimlane: 'other'
    }
    ];
    window.Smart('#kanban', class {
    get properties() {
    return {
    collapsible: true,
    dataSource: data,
    editable: true,
    userList: true,
    users: [
    { id: 0, name: 'Andrew', image: '../../images/people/andrew.png' },
    { id: 1, name: 'Anne', image: '../../images/people/anne.png' },
    { id: 2, name: 'Janet', image: '../../images/people/janet.png' },
    { id: 3, name: 'John', image: '../../images/people/john.png' },
    { id: 4, name: 'Laura', image: '../../images/people/laura.png' }
    ],
    columns: [
    { label: 'To do', dataField: 'toDo' },
    { label: 'In progress', dataField: 'inProgress' },
    { label: 'Testing', dataField: 'testing' },
    { label: 'Done', dataField: 'done' }
    ]
    };
    }
    });
    window.onload = () => {
    const kanban = document.querySelector("#kanban");
    kanban.swimlanes = [
    { label: 'Client "Energo"', dataField: 'client1' },
    { label: 'Client "Sim-Prod Ltd."', dataField: 'client2', color: '#C90086' },
    { label: 'Other clients', dataField: 'other', color: '#03C7C0' }
    ];
    }

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Kanban swimlanes #102190
    Avatar
    admin
    Keymaster

    Hi Mehran,

    How did you try to set Kanban’s swimlanes in your code?

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Kanban priorities #102188
    Avatar
    admin
    Keymaster

    Hi Mehran,

    Only low, normal and high priorities are currently supported with the Kanban API. We will add a work item for adding new API for changing the priorities.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Remove Gantt chart check boxes #102180
    Avatar
    admin
    Keymaster

    Hi Maserati,

    Gantt Checkboxes are currently built-in and there’s no option to remove them. This was requested by other users, too and is a priority item for out team.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

Viewing 15 posts - 1 through 15 (of 353 total)