Hi all.
I have a own server control which derive from RadGrid
public class MyGrid : Telerik.Web.UI.RadGrid{}
I want to render that control in the update panel (I don't want the postback to the server when e.g. I want to sort data in column).
How can i do that?
My code at this moment.
[edit]
I'va found a RadAjaxManager control. Maybe this will be better for this solution than update panel, but still I don't know how to render my derived class with this control. I need this all in one dll file.
I have a own server control which derive from RadGrid
public class MyGrid : Telerik.Web.UI.RadGrid{}
I want to render that control in the update panel (I don't want the postback to the server when e.g. I want to sort data in column).
How can i do that?
My code at this moment.
| protected override void CreateChildControls() |
| { |
| base.CreateChildControls(); |
| Control parent; |
| Control container; |
| ScriptManager sm = ScriptManager.GetCurrent(Page); |
| if (sm == null || !sm.EnablePartialRendering) |
| { |
| container = new Control(); |
| parent = container; |
| } |
| else |
| { |
| UpdatePanel up = new UpdatePanel(); |
| container = up.ContentTemplateContainer; |
| parent = up; |
| } |
| this.Controls.Add(parent); |
| } |
| protected override void RenderContents(HtmlTextWriter output) |
| { |
| EnsureChildControls(); |
| //parent.RenderControl(output); |
| base.RenderContents(output); |
| } |
[edit]
I'va found a RadAjaxManager control. Maybe this will be better for this solution than update panel, but still I don't know how to render my derived class with this control. I need this all in one dll file.