Hi,
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:
Any ideas?
Thanks,
Ian W
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.MasterTableView.Columns.Add(boundColumn); |
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?
Thanks,
Ian W