Hey
As in the subject heading i add columns to the grid using the following code i cant scroll properly.
function addColumns(cols)
{
colWidth = 100;
var gridObj = $("#grid").data("ejGrid");
for (var i = 0; i < cols.length; ++i)
{
gridObj.columns(cols[i], "add");
gridObj.resizeColumns(cols[i], colWidth);
width += 100;
}
}
however now when i scroll only the grid with the data values scrolls. I attached images of what it looks like.
Also here is the original table.
@(Html.EJ().Grid<ChartData>("grid")
.Datasource((IEnumerable<object>)ViewBag.gridData)
.AllowPaging()
.AllowGrouping()
.AllowSorting()
.AllowScrolling()
.ScrollSettings(scroll => { scroll.Height(300).Width(970); })
.Columns(col =>
{
col.Field("name").HeaderText("Indicator").TextAlign(TextAlign.Justify).Width(75).Add();
})
)
How can i add the columns correctly so that they will still scroll?
Regards,
Matheu
Attachment:
scroll_issue_cfccc013.zip