@boykomarkov22gmail-com

@boykomarkov22gmail-com

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 442 total)
  • Author
    Posts
  • in reply to: Column Summary Custom #113201
    Markov
    Keymaster

    Hi,

    The summary of the column can be set to a function so it can calculate a custom summary.

    ` columns: [
    {
    label: ‘#’, width: 200, dataField: ‘id’
    },
    {
    label: ‘First Name’, dataField: ‘firstName’
    },
    { label: ‘Last Name’, dataField: ‘lastName’ },
    { label: ‘Product’, dataField: ‘productName’ },
    { label: ‘Quantity’, dataField: ‘quantity’, summary: [‘min’, ‘max’], align: ‘right’, cellsAlign: ‘right’, },
    { label: ‘Unit Price’, dataField: ‘price’, align: ‘right’, cellsAlign: ‘right’, cellsFormat: ‘c2’ },
    {
    label: ‘Total’, dataField: ‘total’, align: ‘right’, summary: ([{
    ‘Custom’: (currentValue, cellValue, dataField, data) => {
    return currentValue + cellValue
    }
    }]), cellsAlign: ‘right’, cellsFormat: ‘c2’
    }
    ]`

    Best regards,
    Markov

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

    in reply to: Any known workarounds for: Gantt? #113200
    Markov
    Keymaster

    Hi,

    To conditionally format items, you can use the onTaskRender callback function.

    onTaskRender
    function | null
    This function enables complete customization of the task element within your interface. It accepts five arguments, providing granular control over both the task and its visual representation:
    
    1. 'task' – The full task object containing all associated data.
    2. 'segment' – The current segment object for the task. If the task consists of a single segment, this argument will be the same as the task object.
    3. 'taskElement' – The root HTML element representing the task in the DOM.
    4. 'segmentElement' – The HTML element representing the current segment of the task.
    5. 'labelElement' – The HTML element that displays the segment’s label.

    Best regards,
    Markov

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

    in reply to: I’m exploring: Gantt and could use some advice. #113199
    Markov
    Keymaster

    Hi,

    It is supported. You can load tasks on demand. For example, check this demo with Paging: https://www.htmlelements.com/demos/gantt/paging/. It is possible to handle the pager’s events and put data on demand.

    Best regards,
    Markov

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

    in reply to: Could anyone explain the underlying logic of: Gantt? #113198
    Markov
    Keymaster

    Hi,

    Yes, this is absolutely possible. Just add the Gantt chart to a smart-window instance and it will be displayed inside its.

    Best regards,
    Markov

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

    in reply to: Anyone with experience integrating: Editor? #113197
    Markov
    Keymaster

    Hi,

    To get or set the Editor’s value dynamically, you can use its value property.

    Here is a basic sample which i hope will help you:

    ` // Initialize Firebase
    const firebaseConfig = {
    apiKey: “AIzaSy…yourKey…”,
    authDomain: “yourapp.firebaseapp.com”,
    projectId: “yourapp”,
    storageBucket: “yourapp.appspot.com”,
    messagingSenderId: “1234567890”,
    appId: “1:1234567890:web:abcdef”
    };

    const app = firebase.initializeApp(firebaseConfig);
    const db = firebase.firestore();

    const editor = document.getElementById(‘editor’);

    // Save content to Firestore
    document.getElementById(‘saveBtn’).addEventListener(‘click’, async () => {
    const htmlContent = editor.value;
    await db.collection(‘documents’).doc(‘exampleDoc’).set({ content: htmlContent });
    alert(‘Saved to Firebase!’);
    });

    // Load content from Firestore
    document.getElementById(‘loadBtn’).addEventListener(‘click’, async () => {
    const doc = await db.collection(‘documents’).doc(‘exampleDoc’).get();
    if (doc.exists) {
    editor.value = doc.data().content;
    } else {
    alert(‘No content found!’);
    }`

    Best regards,
    Markov

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

    in reply to: Can someone show a code example for: Kanban? #113196
    Markov
    Keymaster

    Hi,

    You can bind the Kanban, handle its ‘change’ event and make updates to the original array or backend synchronization.

    
    <smart-kanban id="kanban" editable></smart-kanban>
        <div id="output">Task count: <span id="count">0</span></div>
    
        <script>
            const tasks = [
                { id: 1, label: 'Task 1', status: 'To Do', priority: 'High' },
                { id: 2, label: 'Task 2', status: 'In Progress', priority: 'Low' }
            ];
    
            const kanban = document.getElementById('kanban');
            kanban.dataSource = tasks;
            kanban.columns = [
                { label: 'To Do', dataField: 'toDo' },
                { label: 'In Progress', dataField: 'inProgress' },
                { label: 'Done', dataField: 'done' }
            ];
    
            // Two-way binding: Changes in UI update the array
            kanban.addEventListener('change', (e) => {
            
            });

    Best regards,
    Markov

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

    in reply to: Has anyone encountered a similar problem with: Scheduler? #113194
    Markov
    Keymaster

    Hi,

    You can take a look at https://www.htmlelements.com/demos/scheduler/custom-event-render/. The demo shows how to customize the rendering of the events.

    Hope this helps.

    Best regards,
    Markov

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

    in reply to: Any hints for improving performance of: Table? #113193
    Markov
    Keymaster

    Hi linda,

    With the virtualization of the Table, it could handle tens of thousands of data rows and columns. You can also load data on demand with the Paging functionality.
    As for editing, just set editable: true and the editing will be enabled.

    Best regards,
    Markov

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

    Markov
    Keymaster

    Hi,

    You can use the Column’s formatFunction to change what is displayed in the cells of a given column. In order to use the formatFunction, you will need to handle it through jsInterop as it is a dynamically called function on each cell refresh.

    Best regards,
    Markov

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

    Markov
    Keymaster

    Hi,

    We could not reproduce the provided behavior using the current version of Smart.Blazor. In our tests, we tested with various setups like freezing the first column, the last column, the first and the last column, setting different widths of the Grid. Please, send a complete demo to support@jqwidgets.com as there could be some additional factors which may be the reason of the behavior reported here.

    Best regards,
    Markov

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

    in reply to: Issue with decimal separator when exporting Grid to XLSX #113169
    Markov
    Keymaster

    Hi Federica,

    You can use the dataExport’s cellFormatFunction to format the exported values.

    Here is a demo which shows how to use it: https://www.htmlelements.com/demos/grid/data-export-hyperlinks/

    Best regards,
    Markov

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

    in reply to: I can’t seem to solve: Charts. Suggestions welcome! #113136
    Markov
    Keymaster

    Hi,

    Yes, just set the theme property of the Chart to “dark”.

    Best regards,
    Markov

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

    in reply to: I’m open to any ideas for solving: Input. #113135
    Markov
    Keymaster

    Hi,

    Please, look at https://www.htmlelements.com/demos/input/overview/. The demo shows the 3 different rendering modes of the Input.

    Best regards,
    Markov

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

    in reply to: I’m exploring: Gantt and could use some advice. #113134
    Markov
    Keymaster

    Hi,

    At present our Gantt does not support task reorder. We will consider adding this functionality in the future versions of the component.

    Thank you for the feature request!

    Best regards,
    Markov

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

    in reply to: Smart grid rowDetails refresh issue #113130
    Markov
    Keymaster

    Hi,

    In the last week of November, we will release an update of Smart UI.

    Best regards,
    Markov

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

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