public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "UserName"); columnConfig.AddStringColumn("Email", "Email"); columnConfig.AddBooleanColumn("Email Confirmed", "EmailConfirmed", "Yes", "No"); columnConfig.AddLinkColumn("", "Id", "Send Confirmation Email", EventNumber.SendConfirmationEmail, new ShowHideColumnSetting() { Display = ColumnDisplayType.Hide, Conditions = new List <Condition>() { new Condition("EmailConfirmed", Comparison.Equals, "true") } } ); columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditUser); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete User?") { OnConfirmationUIAction = EventNumber.DeleteUser }, new ShowHideColumnSetting() { Display = ColumnDisplayType.Show, Conditions = new List <Condition>() { new Condition("CanDelete", Comparison.Equals, "true") } } ); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Name", "Surname"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditPatient); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete patient?", MenuNumber.DeletePatient)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Product Type", "ProductType.Name"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditProduct); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete product?", MenuNumber.DeleteProduct)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Id", "Id"); columnConfig.AddStringColumn("PostId", "PostId"); columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Email", "Email"); columnConfig.AddStringColumn("Body", "Body"); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Warehouse", "Warehouse.Name"); columnConfig.AddStringColumn("Product", "Product.Name"); columnConfig.AddStringColumn("Quantity", "StockQuantity"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditStock); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete warehouse stock?", MenuNumber.DeleteStock)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Region", "Region.Name"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCountry); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?", MenuNumber.DeleteCountry)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Address", "Address"); columnConfig.AddStringColumn("Company", "Company.Name"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditWarehouse); columnConfig.AddLinkColumn("", "Id", "Stock", MenuNumber.ViewStocks); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete warehouse?", MenuNumber.DeleteWarehouse)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Email", "Email"); columnConfig.AddStringColumn("Region", "Region.Name"); columnConfig.AddStringColumn("Gender", "Gender"); columnConfig.AddStringColumn("Course Number", "CourseNumber"); columnConfig.AddLinkColumn("Certificate", "Id", "Certificate", MenuNumber.AttendeeCertificate); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Date", "Date"); columnConfig.AddStringColumn("Task", "Task"); columnConfig.AddStringColumn("Status", "Status", 3); columnConfig.AddHiddenColumn("Id"); var json = new JsonHelper(); json.Add("type", "status"); columnConfig.AddLinkColumn("", "Id", "Detail", EventNumber.ViewBackgroundDetail, parametersToPass: json.ToString()); //parameters not passing }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Field", "Field"); columnConfig.AddStringColumn("Column Number/s", "Columns"); columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditCsvColumnMapping); //columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete selected item?") //{ // OnConfirmationUIAction = MobileMenuNumber.DeleteCsvColumnMapping //}); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Description", "Description"); columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditUserRole); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete User Role?") { OnConfirmationUIAction = EventNumber.DeleteUserRole } ); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Email", "Email"); columnConfig.AddStringColumn("Gender", "GenderString"); columnConfig.AddStringColumn("Region", "RegionString"); columnConfig.AddStringColumn("Outcome", "OutcomeString"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCourseAttendee); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete selected item?") { OnConfirmationUIAction = MenuNumber.DeleteCourseAttendee }); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddHiddenColumn("Name"); columnConfig.AddStringColumn("Event", "Event"); columnConfig.AddButtonColumn("Sub Menus", "Id", "...", EventNumber.ViewMenus, new ShowHideColumnSetting() { Display = ColumnDisplayType.Show, Conditions = new List <Condition>() { new Condition("Event", Comparison.IsNull) } }, MenuId); columnConfig.AddHiddenColumn("Position"); columnConfig.AddButtonColumn("", "Id", "Up", EventNumber.IncrementMenuOrder, new ShowHideColumnSetting() { Display = ColumnDisplayType.Show, Conditions = new List <Condition>() { new Condition("Position", Comparison.GreaterThan, "0") } }); columnConfig.AddButtonColumn("", "Id", "Down", EventNumber.DecrementMenuOrder); //TODO: Would be good to hide the Down button for the last item. columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditMenu, null); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete Menu Item?") { OnConfirmationUIAction = EventNumber.DeleteMenu }, columnSetting: new ShowHideColumnSetting() { Display = ColumnDisplayType.Show, Conditions = new List <Condition>() { new Condition("CanDelete", Comparison.Equals, "true") } } ); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("String Value", "StringValue"); columnConfig.AddStringColumn("Number Value", "NumberValue"); columnConfig.AddDateColumn("Date Value", "DateValue"); columnConfig.AddStringColumn("Long Value", "LongTestValue"); columnConfig.AddStringColumn("Category", "Category.Description"); // You can reference sub fields in the column name field columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.SampleEdit); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?") { OnConfirmationUIAction = MenuNumber.SampleDelete }); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { foreach (var col in ColumnsToShowInView) { columnConfig.AddStringColumn(col.Value, col.Key); } foreach (var col in AdditionalColumns) { columnConfig.AddColumn(col); } columnConfig.AddLinkColumn("", "Id", "Edit", Id + 1); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete " + ItemName + "?") { OnConfirmationUIAction = Id + 2 }, new ShowHideColumnSetting() { Display = ColumnDisplayType.Show, Conditions = new List <Condition>() { new Condition("CanDelete", Comparison.Equals, "true") } } ); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddLinkColumn("", "Id", "Editions", MenuNumber.ViewEditions); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditModel); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete model?", MenuNumber.DeleteModel)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddLinkColumn("", "Id", "Models", MenuNumber.ViewModels); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditManufacturer); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete manufacturer?", MenuNumber.DeleteManufacturer)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "EditionName"); columnConfig.AddStringColumn("Year", "EditionYear"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditEdition); columnConfig.AddButtonColumn("Details", "Id", "...", MenuNumber.DetailsEdition, new ShowHideColumnSetting() { Display = ColumnDisplayType.Hide, Conditions = new List <Condition>() { new Condition("Category", Comparison.Equals, "Special") // Can be used to hide buttons for certain types of data } }); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete edition?", MenuNumber.DeleteEdition)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("String Value", "StringValue"); columnConfig.AddStringColumn("Number Value", "NumberValue"); columnConfig.AddDateColumn("Date Value", "DateValue"); columnConfig.AddStringColumn("Long Value", "LongTestValue"); columnConfig.AddStringColumn("Category", "Category"); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.AdvancedEdit); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?") { OnConfirmationUIAction = MenuNumber.AdvancedDelete }); columnConfig.AddButtonColumn("Details", "Id", "...", MenuNumber.AdvancedDetails, new ShowHideColumnSetting() { Display = ColumnDisplayType.Hide, Conditions = new List <Condition>() { new Condition("Category", Comparison.Equals, "Special") // Can be used to hide buttons for certain types of data } }); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Course Type", "CourseType"); columnConfig.AddStringColumn("Presenter", "Presenter"); columnConfig.AddStringColumn("Venue", "Venue"); columnConfig.AddStringColumn("Region", "Region"); columnConfig.AddStringColumn("Country", "Country"); columnConfig.AddDateColumn("Start Date", "StartDate"); columnConfig.AddStringColumn("Course Id", "CourseId"); columnConfig.AddLinkColumn("Attendees", "Id", "Attendees", MenuNumber.ViewAttendees); columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCourse); columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?", MenuNumber.DeleteCourse)); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("ChildName", "ChildName"); columnConfig.AddStringColumn("SuperName", "SuperName"); columnConfig.AddStringColumn("Some Number", "SomeInt"); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Data", "Data"); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddLinkColumn("", "Name", "Test Pdf", 555); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddLinkColumn("", "Id", "Export", MenuNumber.ExportToCSV); }
public override void ConfigureColumns(ColumnConfiguration columnConfig) { columnConfig.AddStringColumn("Name", "Name"); columnConfig.AddStringColumn("Value", "Value"); }