Navigation: <Root level>

DbNetEditCore

 

 

 

 

DbNetEditCore

 

DbNetEditCore is a data-driven grid component that has built-in searching  and editing capabilities that can be added to any web page with just a few lines of code.

 

 

DbNetEditCore employeesEdit = new DbNetEditCore("northwind", "employees");

employeesEdit.Column("ReportsTo").Lookup(new Lookup("employees", "employeeid", "lastname + ', ' + firstname"));

employeesEdit.Column("notes").ControlType(EditControlType.TextArea);

employeesEdit.Column("titleofcourtesy").Validation(new InputValidation("Mr.|Dr.|Ms.|Mr."));

employeesEdit.Column(new string[] { "lastname", "firstname", "photo", "country" }).Browse();

employeesEdit.Column(new string[] { "lastname", "firstname", "titleofcourtesy" }).Required();

employeesEdit.Column("Photo").Image(new ImageConfiguration("jpg"));

employeesEdit.Column("country").Lookup(typeof(CountryEnum), true);

employeesEdit.MaxImageHeight = 40;

employeesEdit.Bind(EventType.OnConfigureBinaryData, "configureImageFileName");

employeesEdit.Bind(EventType.OnFormElementValidationFailed, "configureValidationMessage");

employeesEdit.Bind(EventType.OnFormElementCreated, "configureFormElement");

employeesEdit.BrowseControl.MaxImageHeight = 20;

employeesEdit.LayoutColumns = 2;

employeesEdit.Insert = true;

employeesEdit.Delete = true;

@employeesEdit.Render()

 

 

 

 

Copyright © 2023 DbNetLink