Hi,
I have a basic Problem.
On a RadGrid, i set up a GridTemplateColumn with an ImageButton Inside.
I want a click on my button display a RadTooltip permitting the user to edit a label.
I load a TextBox and a Button dynamically like this:
Everything works fine first time i load the tootip, but after, every load of the tootlip is done with the data i loaded first time.
I think about an ajax render problem but i don't see my problem.
Thank you very much for your help.
I have a basic Problem.
On a RadGrid, i set up a GridTemplateColumn with an ImageButton Inside.
I want a click on my button display a RadTooltip permitting the user to edit a label.
I load a TextBox and a Button dynamically like this:
protected void RadToolTipManagerComment_AjaxUpdate(object sender, ToolTipUpdateEventArgs e) |
{ |
RadTextBox RTB_Comment = new RadTextBox(); |
RTB_Comment.TextMode = InputMode.MultiLine; |
RTB_Comment.ID = "RTBSAISIECOM"; |
RTB_Comment.Width = 350; |
RTB_Comment.EmptyMessage = "<Saisissez Votre Commentaire (optionnel)>"; |
if (!e.Value.StartsWith("-1")) |
{ |
RTB_Comment.Text = new SoinQuotidien(e.Value.Split('_')[0]).Commentaire; |
} |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(RTB_Comment); |
//Ajout du Bouton_Valider |
Button Btn_ValiderComment = new Button(); |
Btn_ValiderComment.ID = "Button_ValiderCom"; |
Btn_ValiderComment.Text = "Valider"; |
Btn_ValiderComment.CssClass = "button"; |
Btn_ValiderComment.Click += new EventHandler(Btn_ValiderComment_Click); |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(RTB_Comment); |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(Btn_ValiderComment); |
} |
Everything works fine first time i load the tootip, but after, every load of the tootlip is done with the data i loaded first time.
I think about an ajax render problem but i don't see my problem.
Thank you very much for your help.