This is a migrated thread and some comments may be shown as answers.

grid icons not displaying and also grid functionality not working

2 Answers 343 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 23 Oct 2012, 04:43 AM
Hello,

I am having some issues with the kendo Grid.

1. icons in the grid are not displaying filter icons next to header and next prev icons in the pagination
2. grid basic functionality not working like sorting, grouping etc.

Regards,
Ravi

code:

@{Html.Kendo().Grid((List<BNYM.EnSIS.Pricing.Contract.VendorPricingGridResponse>)ViewData["PricingGrid"])
.Name("PricingGrid")
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(25)
.Batch(true)
.ServerOperation(true)
.Model(q => q.Id(m => m.ProductID))
.Model(q => q.Id(m => m.CurrencyCode))

)

.Columns(columns =>

{
columns.Bound(m => m.Category).Title("Category").Width(90);
columns.Bound(m => m.ProductID).Title("ProductID").Width(140);
columns.Bound(m => m.CurrencyCode).Title("USD").Width(50);
})

.Resizable(resizing => resizing.Columns(true))
.Scrollable(scrolling => scrolling.Enabled(true).Height(600))
.Sortable(sorting => sorting.Enabled(true))
.Groupable(grouping => grouping.Enabled(true))
.Filterable(filtering => filtering.Enabled(true))
.Reorderable(reorder => reorder.Columns(true))
.Pageable(Pageable => Pageable.Enabled(true).PreviousNext(true).Input(true).PageSizes(true).Refresh(true))
.RowAction(row => row.HtmlAttributes.Add("data-id", row.DataItem.ProductID))
.RowAction(row => row.HtmlAttributes.Add("data-id", row.DataItem.CurrencyCode))
.Selectable(s => s.Mode(GridSelectionMode.Single).Enabled(true))

 
.Render();

}

2 Answers, 1 is accepted

Sort by
0
Dave
Top achievements
Rank 1
answered on 07 Nov 2012, 04:03 PM
My grid icons for paging are also not displaying. Have you found a solution?
0
Ravi
Top achievements
Rank 1
answered on 09 Nov 2012, 10:16 AM
Hello Dave,

Try to follow the same folder structure what they kendo sample application is following for solve the issues releated to images. and for the grid functionality in my case .Ajax() is not working so, i replaced with .Server and its working for me.

Regards,
Ravi
Tags
Grid
Asked by
Ravi
Top achievements
Rank 1
Answers by
Dave
Top achievements
Rank 1
Ravi
Top achievements
Rank 1
Share this question
or