I have a RadTreeview and I display a RadTooltip on its nodes using a RadTooltipManager:
The tooltip displays a usercontrol:
In the ucTooltipTreeviewBook usercontrol there is a LinkButton that executes the "Action" event, then my buildSubBooks method is called and the treeview nodes are updated.
All of that is included in a RadAjaxPanel.
:)
Now the problem is that the page is not refreshed when I click on the LinkButton in the tooltip. But if I click on another LinkButton in the page, the RadTreeview is well updated (with the buildSubBooks modifications).
Is it because the usercontrol is loaded dynamically and the RadAjaxPanel doesn't know it? Or did I do something wrong?
<
telerik:RadTreeView
ID
=
"treeSubBooks"
runat
=
"server"
Skin
=
"WebBlue"
AllowNodeEditing
=
"false"
EnableDragAndDrop
=
"false"
OnNodeClick
=
"tree_NodeClick"
Width
=
"240px"
>
</
telerik:RadTreeView
>
<
telerik:RadToolTipManager
ID
=
"rttmSubBooks"
Height
=
"300px"
Width
=
"250px"
HideEvent
=
"ManualClose"
RelativeTo
=
"Element"
Position
=
"MiddleLeft"
runat
=
"server"
ShowDelay
=
"500"
Skin
=
"Telerik"
EnableShadow
=
"true"
Animation
=
"Fade"
OnAjaxUpdate
=
"rttmSubBooks_AjaxUpdate"
>
</
telerik:RadToolTipManager
>
The tooltip displays a usercontrol:
protected
void
rttmSubBooks_AjaxUpdate(
object
sender, ToolTipUpdateEventArgs e)
{
Control ctrl = LoadControl(
"~/UserControls/ucTooltipTreeviewBook.ascx"
);
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
var iuser = (IUserControl)ctrl;
iuser.Parameter = e.Value;
var action = (ITooltipTreeviewAction)ctrl;
action.Action += tooltip_action;
}
private
void
tooltip_action(
object
sender, TooltipTreeviewEventArgs e)
{
buildSubBooks(e.Action, e.BookName);
}
In the ucTooltipTreeviewBook usercontrol there is a LinkButton that executes the "Action" event, then my buildSubBooks method is called and the treeview nodes are updated.
All of that is included in a RadAjaxPanel.
:)
Now the problem is that the page is not refreshed when I click on the LinkButton in the tooltip. But if I click on another LinkButton in the page, the RadTreeview is well updated (with the buildSubBooks modifications).
Is it because the usercontrol is loaded dynamically and the RadAjaxPanel doesn't know it? Or did I do something wrong?