This question is locked. New answers and comments are not allowed.
Hello all,
I'm binding the Grid to a ViewModel class, everything is working just fine, including Pageable. But enabling "Sortable()" and/or "Filterable()" doesn't do anything to it. The Grid data was populated from a LINQ2SQL class, pretty straightforward stuffs I think.
Here's the code:
Any idea why it doesn't work?
Thank you very much,
Kenny.
I'm binding the Grid to a ViewModel class, everything is working just fine, including Pageable. But enabling "Sortable()" and/or "Filterable()" doesn't do anything to it. The Grid data was populated from a LINQ2SQL class, pretty straightforward stuffs I think.
Here's the code:
| <% Html.Telerik().Grid<NotesnhacLib.Song>(Model.TypeDetailsModel.SongsFromThisType) |
| .Name("Songs") |
| .Columns(columns => |
| { |
| columns.Add(c => |
| { |
| %> |
| <%= Html.ActionLink(c.SongTitle, "Details", "Song", new { id = c.SongId, songTitle = KennyLib.Utilities.ToFriendlyUrl(c.SongTitle2)}, null) %> |
| <% |
| }).Title("Title").Width(325); |
| columns.Add(c => |
| { |
| %> |
| <%= Html.ActionLink(c.Artist.ArtistName, "Artist", "Song", new { id = c.ArtistId, artistName = KennyLib.Utilities.ToFriendlyUrl(c.Artist.ArtistName2)}, null) %> |
| <% |
| }).Title("Artist"); |
| }) |
| .Pageable() |
| .Sortable() |
| .PrefixUrlParameters(false) |
| .Render();%> |
Any idea why it doesn't work?
Thank you very much,
Kenny.