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

RadGrid and rows

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 04 Mar 2009, 04:02 PM
Hi,

I started doing a project with typical controls and now I have been told to use telerik controls. I have created my own skins (till here more or less ok) but problems are coming since I started to use telerik controls instead of old ones. First, I have changed RadGrid by Gridview and I have got some problems.

For example when I was using gridview I was using this code:
       grdBusqueda.PageIndex = e.NewPageIndex;

and:
       grdBusqueda.Rows[0].Cells.Clear();
       grdBusqueda.Rows[0].Cells.Add(new TableCell());
       grdBusqueda.Rows[0].Cells[0].ColumnSpan = ColumnCount;
       grdBusqueda.Rows[0].Cells[0].Text = GestorRecursos.GetString("NoRecords");
       grdBusqueda.Rows[0].Cells[0].HorizontalAlign = HorizontalAlign.Center;

The problem is that for grdBusqueda (ID of my radgrid) PageIndex and Rows are not known properties so compilator donĀ“t recognize them. What shall I do to solve these kind of problems? I thought telerik controls properties would be very similar to the other ones.

Please, suggest me where I can find properties of them?do you understand what I mean?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Mar 2009, 11:03 AM
Hello Patxi,

In RadGrid, to set paging for your grid, you only have to set AllowPaging property of the grid to true and also set the PageSize as shown below:
aspx:
<telerik:RadGrid AllowPaging="true" PageSize="5" AllowFilteringByColumn="true" ID="RadGrid1" runat="server"
     <MasterTableView> 

Also to access the cells and rows in RadGrid, you can refer to the following document:
Accessing cells and rows

-Princy.
Tags
Grid
Asked by
Patxi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or