mvc grid not aligning to data

Hello,

I have an mvc grid.

The column headers do not seem to align to the data columns at runtime. Once the page is loaded, if I adjust the sizing of the column, they seem to snap into place.



public ProductionEntities _prodDB = new ProductionEntities();
//public ProductionRepository _prodDB = new ProductionRepository();


public ActionResult Index(Skins? Skins)
{
GridPropertiesModelgridModel = new GridPropertiesModel()
{
DataSource = _prodDB.Productions.ToList(),
ActionMode = "Server",
Caption = "Production",
AllowScrolling = true,
AllowPaging = true,
AllowResizing = true,
PageSize = 25,
};

ViewData["DefaultSkin"] = Skins == null ? Syncfusion.Mvc.Shared.Skins.Blueberry: (Skins)Skins;
ViewData["gridModel"] = gridModel;

return View();
}

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(PagingParams args)
{
IEnumerabledata = new ProductionEntities().Productions.ToList();
return data.GridActions();
}



Production Report



<%= Html.Syncfusion().Grid("ProductionGrid", "gridModel",
column =>
{
column.Add(c => c.reportDate)
.HeaderText("Date")
.Width(20)
.Format("{reportDate:yyyy-MM-dd}");

column.Add(c => c.Hour)
.HeaderText("Hours")
.Width(25);

column.Add(c => c.FTE)
.Width(25)
.HeaderText("FTE")
.Format("{FTE:##.##}");

column.Add(c => c.Dials)
.HeaderText("Dials")
.Width(25);

column.Add(c => c.UniqueDials)
.HeaderText("Unique Dials")
.Width(25);

column.Add(c => c.Complete)
.HeaderText("Completes")
.Width(25);

column.Add(c => c.Contact)
.HeaderText("Contacts")
.Width(25);

column.Add(c => c.RPC)
.HeaderText("RPC")
.Width(25);

column.Add(c => c.Success)
.HeaderText("Success")
.Width(25);

column.Add(c => c.RDV)
.HeaderText("RDV")
.Width(25);

column.Add(c => c.BusinessListing)
.HeaderText("Business Listing")
.Width(25);
})


%>


2 Replies

CH Cameron Hebert March 11, 2011 08:55 PM UTC

version 8.4.0.10



ES Eswari S Syncfusion Team March 15, 2011 09:27 AM UTC

Hi Cameron,

The reported issue with 'Mvc grid alignment' has been confirmed as a defect; hence we have logged a defect report. However, we do not provide confidential information and patches in the general forum, so could you please create a new incident such that we can fix the issue and provide the patch for you.

Regards,
Eswari.S



Loader.
Up arrow icon