Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
f1l1ph opened this issue Mar 7, 2025 · 0 comments

Comments

@f1l1ph
Copy link

f1l1ph commented Mar 7, 2025

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant