Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "vsolve"

We are using ABP controller. We tried with UnitOfWork also. Still facing issues.

At the same time, excel data import process also having issues.

/Action Method [HttpGet] public JsonResult List(DataSourceLoadOptions options) { var data = _countryAppService.GetPage(options); return Json(data); }

//Service Layer public LoadResult GetPage(DataSourceLoadOptionsBase options) { var query = _countryRepository.GetAll() .Select(s => new CountryListDto { Id = s.Id, Name = s.Name, }); return DataSourceLoader.Load(query, options); } }

//Cshtml @(Html.DevExtreme().DataGrid<TSolve.Countries.Dto.CountryListDto>() .ID("CountryList") .ShowBorders(true) .AllowColumnReordering(true) .DataSource(d => d.Mvc() .Controller("Country") .LoadAction("List") .UpdateAction("Put") .Key("id") .DeleteAction("Delete")) .Editing(editing => { editing.Mode(GridEditMode.Batch); editing.AllowDeleting(true); editing.AllowUpdating(true); editing.UseIcons(true); }) .Columns(columns => { columns.AddFor(m => m.Name);

                        columns.Add().Type(GridCommandColumnType.Buttons)
                        .Buttons(b =>
                        {
                            b.Add().Icon("edit").OnClick("function(e) { countryAddEdit.showModel(e, countryList.refreshList); }");
                            b.Add().Name(GridColumnButtonName.Delete);
                        });
                    })
                        .Paging(p => p.PageSize(10))
                        .FilterRow(f => f.Visible(true))
                        .HeaderFilter(f => f.Visible(true))
                        .RemoteOperations(true)
                        )
Showing 1 to 2 of 2 entries