This is a migrated thread and some comments may be shown as answers.

Editable Columns - Inline vs Popup

2 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 31 Jul 2019, 03:07 PM

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 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 02 Aug 2019, 12:25 PM
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.
0
Peter
Top achievements
Rank 1
answered on 02 Aug 2019, 03:40 PM

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.   

Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Peter
Top achievements
Rank 1
Share this question
or