AutoAddRow doesn't respect the presenter applied for the column

Posted by: wmeng on 24 January 2019, 11:16 am EST

    • Post Options:
    • Link

    Posted 24 January 2019, 11:16 am EST - Updated 29 September 2022, 5:49 am EST

    I have built custom presenter for the columns, but when I use auto add new row feature, the auto added row doesn’t respect the style applied to the column(see the attachment). Please let me know if there is anyway the auto added new row will display same as the other rows.

    this is my grid layout options {

    showRowHeader: true,

    headerSelection: true,

    allowEditing: true,

    canSortAndFilter: true,

    selectionUnit: ‘cell’,

    editUnit: ‘cell’,

    allowAutoAddRow: true,

    autoAddRowPosition: ‘bottom’

    };

    Thanks,

    Wei

  • Posted 24 January 2019, 11:39 pm EST

    Hello,

    You would need to handle the editing for newly added row as shown in the example:

    dataView.editing.addHandler(function(sender, args) {
        if (args.status === "beforeStartEditing" && args.isNewRow) {
            args.oldItem = {
                id: data.length,
                country: null,
                date: new Date(),
                amount: 0,
                active: false
            };
        }
    });
    

    In the above example’id’ , ‘date’ and ‘active’ columns have have predefined values.

    Thanks,

    Deepak Sharma

  • Posted 28 January 2019, 1:12 am EST

    Yes, when I start editing the presenter does applied to the cell, but I want see my icons in the cell before I even edit any cell in the new row.

  • Posted 29 January 2019, 1:14 am EST

    Hello,

    I have asked the development team to look into this issue, I will let you know as soon as I get an update on this, The tracking id for this is 269627

    Thanks,

    Deepak Sharma

  • Posted 1 February 2019, 1:08 am EST

    Hello,

    As per the development team, auto add row is just an empty row to allow user to add row quickly (with editing), it has no data by default. There is no point to add presenter to the row with no data in it.

    This is a design behavior.

    Thanks,

    Deepak Sharma

  • Posted 4 February 2019, 4:04 am EST

    Is there any plans to allow for presenters in new row, or conditionally(optionally) allowing it?.

    Because it is not just quickly adding text data.

    If you see the image above, we have buttons in the cell to allow for a modal picker, we have a checkbox presenter that isn’t rendered.

    There has to be a way to work around this - seems very limiting, forces us to not use the new row and hack around normal rows to look like the last new row.

  • Posted 4 February 2019, 8:46 pm EST

    Hello,

    I have passed on this suggestion to the development team. I will let you know once I get an update on this from them.

    Thanks,

    Deepak Sharma

  • Posted 12 February 2019, 8:22 am EST

    Any update on this? We kind of need this feature, if we are told this is not going to be implemented, we have to change our design. Please let me know. Thanks!

  • Posted 12 February 2019, 3:38 pm EST

    Hello,

    This has been added to the product backlog as an enhancement request . It may get added to future build of Spread.Views.

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels