Editable Columns - Inline vs Popup

3 posts, 0 answers
  1. Peter
    Peter avatar
    27 posts
    Member since:
    Jul 2019

    Posted 31 Jul 2019 Link to this post

    Version: 2019.2.619

    I am noticing that with Inline mode I can specify a per column Editable for the visible columns in the DataSource section, ie:

                                .DataSource(dataSource => dataSource
                                    .Ajax()
                                    .Model(model =>
                                        {
                                            model.Id(p => p.ITEM_LISTID);
                                            // When Edit Mode is Inline this is applied.
                                            model.Field(p => p.ITEM_LISTID).Editable(false);
                                        }
                                    )

     

    However, when in Popup mode, I have to specify [ScaffoldColumn(false)] on the Model properties that shouldn't be editable.   However, ScaffoldColumn(false) columns can no longer be used as Grid columns.

    It would be nice if Popup mode only used the columns defined in the Columns markup and followed the Ediable similar to the Inline mode.

    Am I missing something?

    Peter

     

  2. Georgi
    Admin
    Georgi avatar
    685 posts

    Posted 02 Aug 2019 Link to this post

    Hello Peter,

    If I understand correctly you would like to remove a column from the popup but still display it in the grid. Please correct me if I am wrong.

    You could use the HideInput attribute.

    e.g.

    [HiddenInput(DisplayValue = false)]


    Regards,
    Georgi
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Peter
    Peter avatar
    27 posts
    Member since:
    Jul 2019

    Posted 02 Aug 2019 in reply to Georgi Link to this post

    Thanks that worked.  

    There seem to be a few things that need to be set as attributes on the entity properties rather than in the Gird markup.   

Back to Top