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

[Solved] Grid Template in cs file

0 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Konrad
Top achievements
Rank 1
Konrad asked on 11 Aug 2010, 11:15 AM

I'm using Telerik Mvc Grid.

I want to create grid template in cs file. Now I have something like this:

01.public override Action<GridColumnFactory<Transaction>> Columns
02.       {
03.           get
04.           {
05.               return c =>
06.                   {
07.                       c.Bound(o => o.Id).ClientTemplate("<input name='Id' type='checkbox' value='"+ o.Id +"' />").ReadOnly();   
08. 
09.                       c.Bound(o => o.IdNumber).ReadOnly();
10.                       c.Bound(o => o.SequentialNumber).Width(100);
11. 
12.                   };
13.           }
14.       }

But that doesn't work properly. How I can template columns in cs file. And next thing. How to set overflow of grid to fix it if I have about 15 columns.

Tags
General Discussions
Asked by
Konrad
Top achievements
Rank 1
Share this question
or