BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
By default the resizing is performed based on the total table width of Grid. So if we resize the columns in Grid other columns will be resize (width change) and we have already logged “Resizing the Columns width without changing the width of other columns” as a feature and it will be implemented in any of our releases.
Query 2: Another problem is when i don´t allow paging in child grid, and the lines disappear.
We have created a sample based on the provided code, but unable to reproduce the issue from our side. The ChildGrid is rendered properly without enabling the AllowPaging in Grid. Refer to the sample and code example:
[Controller] public ActionResult ChildData(DataManager dm) { IEnumerable data = OrderRepository.GetAllRecords().Take(100).ToList(); DataOperations operation = new DataOperations(); if (dm.Sorted != null && dm.Sorted.Count > 0) //Sorting { data = operation.PerformSorting(data, dm.Sorted); } if (dm.Where != null && dm.Where.Count > 0) //Filtering { data = operation.PerformWhereFilter(data, dm.Where, dm.Where[0].Operator); } int count = data.AsQueryable().Count(); //return count
//perform paging skip and take operation if (dm.Skip != 0) { data = operation.PerformSkip(data, dm.Skip); } if (dm.Take != 0) { data = operation.PerformTake(data, dm.Take); } return Json(new { result = data, count = count }, JsonRequestBehavior.AllowGet); }
@(Html.EJ().Grid<SyncfusionMvcApplication27.OrdersView>("FlatGrid") .Datasource(ds => ds.URL("/Grid/ParentGrid") .Adaptor(AdaptorType.UrlAdaptor)) .AllowPaging() /*Paging Enabled*/ .AllowResizing() .PageSettings(p => p.PageSize(4)) . . . .ChildGrid(child => { child.Datasource(ds => ds.URL("/Grid/ChildData") .Adaptor(AdaptorType.UrlAdaptor)) .QueryString("EmployeeID") .AllowResizing() . . . }) ) |
Please check the above sample and still if you face same the issue, share the following details to find the cause of issue and provide better solution at the earliest.
1. Console error screenshot if any.
2. Essential Studio/Browser version details.
3. Modify the provided sample as issue reproducible.
Regards,
Balaji Marimuthu
@(Html.EJ().Grid<object>("FlatGrid") .Datasource(ds => ds.URL("/Grid/ParentGrid") .Adaptor(AdaptorType.UrlAdaptor)) .AllowPaging() /*Paging Enabled*/ .AllowResizing() .PageSettings(p => p.PageSize(4)) .AllowSorting()
.ChildGrid(child => { child.Datasource(ds => ds.URL("/Grid/ChildData").Offline(true) .Adaptor(AdaptorType.UrlAdaptor)) .QueryString("EmployeeID"); }) public ActionResult ChildData(DataManager dm) { IEnumerable data = OrderRepository.GetAllRecords().Take(100).ToList(); DataOperations operation = new DataOperations(); . . .
return Json(data, JsonRequestBehavior.AllowGet); |
@(Html.EJ().Grid<object>("FlatGrid") .Datasource(ds => ds.URL("/Grid/ParentGrid") .Adaptor(AdaptorType.UrlAdaptor))
. . . .ChildGrid(child => { child.Datasource(ds => ds.URL("/Grid/ChildData"). .Adaptor(AdaptorType.UrlAdaptor)) .QueryString("EmployeeID"); }) public ActionResult ChildData(DataManager dm) { IEnumerable data = OrderRepository.GetAllRecords().Take(100).ToList(); DataOperations operation = new DataOperations(); if (dm.Sorted != null && dm.Sorted.Count > 0) //Sorting { data = operation.PerformSorting(data, dm.Sorted); } if (dm.Where != null && dm.Where.Count > 0) //Filtering { data = operation.PerformWhereFilter(data, dm.Where, dm.Where[0].Operator); } int count = data.AsQueryable().Count(); //return count //perform paging skip and take operation if (dm.Skip != 0) { data = operation.PerformSkip(data, dm.Skip); } if (dm.Take != 0) { data = operation.PerformTake(data, dm.Take); } return Json(new { result = data, count = count }, JsonRequestBehavior.AllowGet); |
1. Server full code example of view and controller file.
2. Console error screenshot if any (Please check the console in development tool)
3. How you returned data source in server side?
4. Essential Studio/Browser version details.
5. Modify the sample as issue reproducible.
Kindly provide the above details which will helpful to find the cause of issue and provide better solution at the earliest.
Regards,
Balaji Marimuthu