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

Client-Side Paging

1 Answer 142 Views
This is a migrated thread and some comments may be shown as answers.
Ian Wells
Top achievements
Rank 1
Ian Wells asked on 06 Jul 2010, 01:19 AM

I am creating several radgrids dynamically via my code at runtime and placing them accordingly within a dynamically created pageview on a page. How can I stop them from posting back to the page and still let the user page the grid? Is this even possible?

I have tried looking through your client-side api but I can't seem to just find a section about client-side paging. I have even tried dynamically creating an updatepanel, adding the grid its content template and then adding the panel to the controls of the pageview and still no joy.

Here is my code to create the grid:

RadGrid rgrdSection = new RadGrid(); 
rgrdSection.ID = "grd" + (i+1).ToString(); 
rgrdSection.AutoGenerateColumns = false
rgrdSection.AllowSorting = false
rgrdSection.Width = Unit.Percentage(97.0); 
rgrdSection.AllowMultiRowSelection = false
                rgrdSection.ShowStatusBar = true
                rgrdSection.AllowPaging = true;                 
                rgrdSection.PageSize = 8;                 
                rgrdSection.AlternatingItemStyle.BackColor = System.Drawing.ColorTranslator.FromHtml("#979EB8"); 
                // Add columns 
                GridBoundColumn boundColumn = new GridBoundColumn(); 
                boundColumn.DataField = "user_key_7"
                boundColumn.HeaderText = "Sub-Chapter"
                rgrdSection.PagerStyle.Mode = GridPagerMode.NumericPages; 
                rgrdSection.PagerStyle.Position = GridPagerPosition.TopAndBottom; 
                rgrdSection.ClientSettings.EnableRowHoverStyle = true
                rgrdSection.ClientSettings.EnablePostBackOnRowClick = false
                rgrdSection.ClientSettings.Selecting.AllowRowSelect = false

Any ideas?

Ian W

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 08 Jul 2010, 08:29 AM
Hi Ian,

You cannot have client-side paging for a server-bound RadGrid. The only scenario you can setup client-side paging with RadGrid is through client-side databinding to web services or page methods.

the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Ian Wells
Top achievements
Rank 1
Answers by
Telerik team
Share this question