Skip to content

[Editable(false)] Does not work for AutoUI with GridView and BusinessPackDataSet #1912

@f1l1ph

Description

@f1l1ph

[Editable(false)] Does not work for AutoUI with GridView and BusinessPackDataSet

When in edit mode, textbox for editing is shown which should't be. When using GridViewDataSet and not BusinessPackDataSet it works as expected.

configuration in DotvvmStartup.cs:

 options.AddBusinessPack();
 options.AddAutoUI(config =>
 {
     config.AddBusinessPackProviders(options);
 });

model for AutoUI:

public class Customer
{
    [Editable(false)]
    public int Id { get; set; }

    [Editable(true)]
    public string Name { get; set; }
    
}

Id should not be editable but for some reason is.

using BusinessPack version 4.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions