J'extension de la tellerick RadGrid contrôle pour lui donner un CustomSearchControl en option.RadGrid override CreateChildControls
protected override void CreateChildControls()
{
this.Controls.Add(CustomSearchControl);
base.CreateChildControls();
this.Controls.Add(CustomSearchControl);
}
Il semble que base.CreateChildControls() doit avoir un contrôle clair appellent parce que la première disparaît CustomSearchControl.
J'ai essayé ceci:
protected override void CreateChildControls()
{
base.CreateChildControls();
this.Controls.AddAt(0,CustomSearchControl);
this.Controls.Add(CustomSearchControl);
}
Mais il crée une erreur viewstate ... car ni le contrôle est ajouté à l'état d'affichage et l'insert se brise la hiérarchie de la collection de contrôles.