We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

mvc grid not aligning to data

Thread ID:

Created:

Updated:

Platform:

Replies:

98624 Mar 11,2011 08:51 PM UTC Mar 15,2011 09:27 AM UTC ASP.NET MVC (Classic) 2
loading
Tags: Grid
Cameron Hebert
Asked On March 11, 2011 08:51 PM UTC

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)
{
GridPropertiesModel gridModel = 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)
{
IEnumerable data = 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);
})


%>







Cameron Hebert
Replied On March 11, 2011 08:55 PM UTC

version 8.4.0.10


Eswari S [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;