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

[Solved] Telerik grid properties not functional

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andre
Top achievements
Rank 1
Andre asked on 11 Nov 2010, 06:57 PM

Hello,

I'm trying to get a selectable() property functioning for the Telerik Grid in MVC 2.0. Currently it doesn't work.

The following is my code.

01.Html.Telerik().Grid<Ability>()
02.    .Name("Role Abilities Grid")
03.    .BindTo((IEnumerable<Ability>)Model)
04.    .DataKeys(k => k.Add(a => a.AbilityId))
 06.
    .Columns(c =>
07.     {
08.         c.Template(a => { %> <input type="checkbox"/> <% }).Width(30).Title("Select");
09.         c.Bound(a => a.Name).Width(100);
10.         c.Bound(a => a.AbilityId).Width(50);
11.         c.Bound(a => a.Description).Width(300);
12.     })
13.    .Scrollable()
14.    .Sortable()
15.    .Selectable()
16.    .Render();

The Grid renders, is sortable and has a scrollbar, however is not selectable. 

In site.master the code is

1.<%     Html.Telerik().StyleSheetRegistrar()
2.        .DefaultGroup(group => group
3.            .Add("~/Content/2010.3.1110/telerik.common.min.css")
4.            .Add("~/Content/2010.3.1110/telerik.windows7.min.css"))
5.        .Render();
6.%>
7. 
8.<%=  Html.Telerik().ScriptRegistrar() %>

Which file is responsible for selectable() property? What do I need so that this selectable() property works?

Any help would be appreciated. Thanks.

1 Answer, 1 is accepted

Sort by
0
Andre
Top achievements
Rank 1
answered on 12 Nov 2010, 04:56 PM

Hi, I solved the issue.

The grid name needed to not have any spaces in it.

Tags
Grid
Asked by
Andre
Top achievements
Rank 1
Answers by
Andre
Top achievements
Rank 1
Share this question
or