Guys,
Can you please help me out here. I know I'm not a first person who is trying to do this.
I have a RadListBox control that renders some stuff and on ItemDataBound I'm addind one of the control from the the item template to Tooltip manager.
Can you please help me out here. I know I'm not a first person who is trying to do this.
I have a RadListBox control that renders some stuff and on ItemDataBound I'm addind one of the control from the the item template to Tooltip manager.
Control image = e.Item.FindControl("imgMenu"); |
radTTMgr.TargetControls.Add(image.ClientID, e.Item.DataKey.ToString(), true); |
Tooltip manager has OnAjaxUpdate="OnAjaxUpdate"
in my Event Handler I create a new LinkButton and assigned an event handler for OnClick
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs e) { |
LinkButton lnkGoTo = new LinkButton(); |
lnkGoTo.CommandName = "goto"; |
lnkGoTo.CommandArgument = e.Value; |
lnkGoTo.Click += new EventHandler(prodMenu_Click); |
lnkGoTo.Text = "Go to Product"; |
lnkGoTo.ID= "lnkTemp"; |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(lnkGoTo); |
} |
So far so good here. Everything is executed correctly. Now in my handler I have some code that should update the value of the editor control and this is not working. Content is being set be not being refreshed. I understand that this is an ajax call an all but how can i update the content in my scenario.
protected void prodMenu_Click(object sender, EventArgs e) { |
LinkButton lnkButton = (LinkButton)sender; |
if (lnkButton == null) return; |
rePresentation.Content = lnkButton.CommandName; |
} |
Thanks!