I am using the following code:
to dynamically, programmatically add a number of different grids to a Web Content Form during the Page_Load
Fine and dandy.
The Initial .NeedDataSource is fired and the grids are populated correctly, paging enabled/disabled etc.
Here comes what I have not been able to get to work.
Once I click the page "2" button or the "next page" etc ... the AjaxRequest fires correctly but no NeedDataSource or PageIndexChanged ... I can't wrap my head around it.
Bout the second problem I've had in 5y of using Telerik and not being able to figure out a solution by reading the documentation, forums, kb etc.
Anybody have any idea ?
o_Proxy = RadAjaxManagerProxy
o_SerialNumbers = RadAjaxPanel
| Dim o_Grid As New Telerik.Web.UI.RadGrid |
| o_Grid.ID = o_I.GUID.ToString |
| o_Grid.AllowPaging = o_Table.Rows.Count > 10 |
| o_Grid.ShowStatusBar = o_Table.Rows.Count > 10 |
| o_Grid.Width = Unit.Percentage(100) |
| o_Grid.RegisterWithScriptManager = True |
| o_Grid.EnableEmbeddedScripts = True |
| AddHandler o_Grid.NeedDataSource, AddressOf _GridsNeedDataSource |
| AddHandler o_Grid.PageIndexChanged, AddressOf _GridsPageIndexChanged |
| AddHandler o_Grid.ColumnCreated, AddressOf _GridsColumnCreated |
| Debug.WriteLine(String.Format("Grid.UniqueID: {0}", o_Grid.UniqueID)) |
| o_SerialNumbers.Controls.Add(o_Grid) |
| o_Proxy.AjaxSettings.AddAjaxSetting(o_Grid, o_Grid) |
to dynamically, programmatically add a number of different grids to a Web Content Form during the Page_Load
Fine and dandy.
The Initial .NeedDataSource is fired and the grids are populated correctly, paging enabled/disabled etc.
Here comes what I have not been able to get to work.
Once I click the page "2" button or the "next page" etc ... the AjaxRequest fires correctly but no NeedDataSource or PageIndexChanged ... I can't wrap my head around it.
Bout the second problem I've had in 5y of using Telerik and not being able to figure out a solution by reading the documentation, forums, kb etc.
Anybody have any idea ?
o_Proxy = RadAjaxManagerProxy
o_SerialNumbers = RadAjaxPanel