I need to inherit from RadGrid and add some markup when it renders - specifically I want to add a header bar (not headers as in columns, headers as in a chunk of markup that renders across the top of the control that contains some hyperlinks for some commands related to the displayed grid contents as a whole). I want to do it through inheritance so that I can have the developers on my team easily add my derived control to dozens of pages that all need the same things hooked up so I can encapsulate it in the derived control class.
How would I go about adding some markup to the rendered markup from the derived control class? For my specific use case I want to add the markup to the stream just before RadGrid starts rendering its content.
Conceptually, I want to turn something like this:
<div><asp:Hyperlink OnClicked="SomeHandlerInPageCodeBehindWithSameCodeOnEveryPage"/></div>
<telerik:RadGrid>...</telerik:RadGrid>
into:
<my:RadGridEx>...</my:RadGridEx>
How would I go about adding some markup to the rendered markup from the derived control class? For my specific use case I want to add the markup to the stream just before RadGrid starts rendering its content.
Conceptually, I want to turn something like this:
<div><asp:Hyperlink OnClicked="SomeHandlerInPageCodeBehindWithSameCodeOnEveryPage"/></div>
<telerik:RadGrid>...</telerik:RadGrid>
into:
<my:RadGridEx>...</my:RadGridEx>
