public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.RemoteHostType = "Showcase.demos.GridEditorsWindow"; Remote.AddStore("model", new Crud()); Remote.AddLookupData("Lookup", new[] { new object[] { Lookup.L1, "Item 1" }, new object[] { Lookup.L2, "Item 2" }, new object[] { Lookup.L3, "Item 3" }, }); Remote.AddStore("RemoteLookup", RemoteLookup); if (remoteData == null) { remoteData = new List <RemoteLookupModel> { new RemoteLookupModel { Code = "USA", Description = "United States of America" }, new RemoteLookupModel { Code = "BIH", Description = "Bosnia and Herzegowina" }, new RemoteLookupModel { Code = "CRO", Description = "Croatia" }, new RemoteLookupModel { Code = "SRB", Description = "Serbia" }, new RemoteLookupModel { Code = "CHN", Description = "China" } } } ; }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("Value2", GetValues2); Remote.AddStore("Value3", GetValues3); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); var crud = new Crud(); crud.Create(new[] { new GridModel { Name = "Player 1", Age = 30, Basketball = true, Football = true, Gender = Gender.Male, Height = 180, Weight = 100 }, new GridModel { Name = "Player 2", Age = 29, Basketball = true, Football = true, Gender = Gender.Male, Height = 175, Weight = 90 } }); Remote.AddStore("model", crud); Remote.AddLookupData("Gender", new[] { new object[] { Gender.Male, "Male" }, new object[] { Gender.Female, "Female" } }); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", new Crud()); Remote.AddLookupData("Gender", new[] { new object[] { Gender.Male, "Male" }, new object[] { Gender.Female, "Female" } }); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); var crud = new DextopMemoryDataProxy <Model, int>(a => a.Id, (lastId) => { return(++lastId); }) { Paging = true }; Remote.AddStore("model", crud); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("RemoteLookup", RemoteLookup); config["data"] = new Form { RemoteLookup2 = "Blue", RemoteLookup = "Red", RemoteLookupDescription = "Code Red" }; }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); var rand = new Random(); data = new List <GridModel>(); for (var i = 0; i < 5000; i++) { data.Add(new GridModel { Id = i, Name = "Item " + i, Value = rand.Next(1000, 2000) }); } Remote.AddStore("model", Read); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", Load); Remote.AddStore("history", LoadHistory); Remote.AddLookupData("Currency", CurrencyDataProvider.GetCurrencyList().Rates.Select(a => new Object[] { a.ISOCode, String.Format("{0} ({1})", a.Currency, a.ISOCode) }).ToArray()); config["convertData"] = new ConvertForm { Amount = 100, Currency = "EUR" }; }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); var crud = new Crud(); crud.Create(new[] { new GridModel { Name = "John Doe", Age = 24, Gender = Gender.Male, Height = 183 }, new GridModel { Name = "Jane Doe", Age = 25, Basketball = true, Volleyball = true, Gender = Gender.Female, Height = 165 }, new GridModel { Name = "John Wayne", Age = 72, Football = true, Gender = Gender.Male, Height = 180 }, new GridModel { Name = "Laura Palmer", Age = 70, Basketball = true, Football = true, Gender = Gender.Female, Height = 172 }, new GridModel { Name = "Mariah Carrey", Age = 43, Basketball = true, Football = true, Volleyball = true, Gender = Gender.Female, Height = 170 } }); Remote.AddStore("model", crud); Remote.AddLookupData("Gender", new[] { new object[] { Gender.Male, "Male" }, new object[] { Gender.Female, "Female" } }); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.OnProcessAjaxRequest = RenderReport; Remote.AddStore("reports", new[] { new ReportType { ReportId = "GdpByYear", Title = "GDP By Year" }, new ReportType { ReportId = "GdpByCountry", Title = "GDP By Country" }, new ReportType { ReportId = "BiggestCountries", Title = "Biggest Countries" }, new ReportType { ReportId = "FastestGrowingCountries", Title = "Fastest Growing Countries" }, new ReportType { ReportId = "BestCountries", Title = "Best Countries (GNI per Capita)" }, }); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddLookupData("Lookup", new[] { new object[] { "1", "Item 1" }, new object[] { "2", "Item 2" }, }); Remote.AddStore("RemoteLookup", RemoteLookup); config["data"] = new Form { Date = DateTime.Today, Time = DateTime.Now.TimeOfDay, Checkbox = true, Text = "Some text", TextArea = "Some multiline\r\ntext", Lookup = "2", RemoteLookup = "Red", RemoteLookupDescription = "Code Red" }; }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.RemoteHostType = "Showcase.demos.GroupedGridHeadersWindow"; Remote.AddStore <MarketDepth>("model", new Crud()); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.RemoteHostType = "Showcase.demos.ModelValidationGridWindow"; Remote.AddStore <ValidationGridModel>("validationmodel", new ValidationCrud()); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.RemoteHostType = "Showcase.demos.PagingGridWindow"; Remote.AddStore("model", new Crud()); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", new RichPeopleCrud()); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", Read); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", new Crud(), Remote.IsClientInitiated ? "store" : null); }
public override void InitRemotable(DextopRemote remote, DextopConfig config) { base.InitRemotable(remote, config); Remote.AddStore("model", new Codaxy.Dextop.Data.DextopMemoryDataProxy <User, int>(a => a.Id, (id) => { return(++id); })); }