Hi,
I created my own Radgrid class which inherits from the Telerik Radgrid.
In my class, I override the OnItemCreated sub in order to create a specific pager (after a clear with aGridPagerItem.PagerContentCell.Controls.Clear()) :
Protected
Overrides
Sub
OnItemCreated(
ByVal
e
As
Telerik.Web.UI.GridItemEventArgs)
MyBase
.OnItemCreated(e)
If
TypeOf
e.Item
Is
Telerik.Web.UI.GridPagerItem
Then
.............
End
If
End
Sub
In my aspx, the property EnableSEOPaging is set to "true" and I ask only for the Bottom pager :
<PagerStyle EnableSEOPaging="true" Mode="NextPrevAndNumeric" SEOPagingQueryStringKey="pageindexes" Position="Bottom" />
The problem is that I enter the OnItemCreated 4 times :
- 2 times for the non SEO default pager (header and footer) which is not rendered
- 2 times for the SEO pager (header and footer) which is rendered
Questions:
- Why do the OnItemCreated fires for the not rendered default pager ? How can I check this code-behind (to avoid my specific treatment in this case) ?
- Why do the OnItemCreated fires for the header even if I explicitly defines Position="Bottom" ?
Thanks a lot.
Good day.
E. Mansion