AutoAddRow doesn't respect the presenter applied for the column

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

  • Posted 24 January 2019, 11:16 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'

  • Replied 24 January 2019, 11:39 pm EST


    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.

    Deepak Sharma
  • Replied 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.
  • Replied 29 January 2019, 1:14 am EST


    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

    Deepak Sharma
  • Replied 1 February 2019, 1:08 am EST


    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.

    Deepak Sharma
  • Replied 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.
  • Replied 4 February 2019, 8:46 pm EST


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

    Deepak Sharma
  • Replied 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!
  • Marked as Answer

    Replied 12 February 2019, 3:38 pm EST


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

    Deepak Sharma
Need extra support?

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

Learn More

Forum Channels