ok, I got one step closer to the target but still not working properly.
The Buttons are displayed but the onClick event (addFav / delFav) of the LinkButtons is not fired although I already replaced the ImageButtons from the prior solution (ImageButtons gave an error) and set the CssClass to noeffect.
Someone of you got any idea, whats still wrong?
In the .ascx file, I added the following code:
NineRays:FlyTreeView runat="server" ID="flyTreeView" BackColor="White" ImageSet="Office2003"
BorderColor="Silver" BorderWidth="1px" Padding="2px"
CanBeSelected="true" SlideEffect="False" WideCell="True" ContentClickCollapses="True" PostBackOnExpand="true"
DisableSelect="false" ForceAjaxRenderer="true" DisplayBar="true" BarBackgroundImage="$bar_grey"
PostBackOnCheck="true" PostBackOnUncheck="true" PostBackOnClick="false" OnNodeCheckedChanged="flyTreeView_NodeCheckedChanged"
OnSelectedNodeChanged="flyTreeView_SelectedNodeChanged" FadeEffect="False" OnPopulateNodes="flyTreeView_PopulateNodes"
DefaultStyle Font-Names="Tahoma" Font-Size="11px" ForeColor="Black" RowHeight="24px" Padding="0px;5px;0px;0px" /
SelectedStyle RowBackColor="#DDDDDD" /
HoverStyle Font-Underline="True" /
NodeTypes
NineRays:FlyNodeType AutoApplyAtLeaves="true" AutoApplyAtLevels="3"
ContentTemplate
table cellpadding="0" cellspacing="1"
tr
td asp:label runat="server" style="padding: 0px; margin: 0px" Text="" width="380px"/ /td
td asp:LinkButton ID="Select" runat="server" CssClass="noeffect">
td asp:LinkButton ID="addFav" runat="server" OnClick="addFav" CssClass="noeffect" img src="_layouts/images/Favoriten_add_w.png" alt="Add to favorites" / /asp:LinkButton /td
td asp:LinkButton ID="delFav" runat="server" OnClick="delFav" CssClass="noeffect" img src="_layouts/images/Favoriten_del_w.png" alt="Delete from favorites" / /asp:LinkButton /td
/tr
/table
/ContentTemplate
/NineRays:FlyNodeType
/NodeTypes
/NineRays:FlyTreeView
(Removed the Brackets)
In the ascx.cs file, i've got the code that should be executed:
public void addFav(object sender, EventArgs e)
{
using (Proxy.Info objInfoLog = new Proxy.Info(this.AxSession.AxaptaAdapter))
{
objInfoLog.add(Proxy.Exception.Warning, "SelectedNode: " + selectedNode.Value);
}
try
{
if (selectedNode.CanBeSelected == true)
{
selectedNode.Checked = true;
selectedNode.BarImageUrl = "_layouts/images/Favoriten.png";
this.AxSession.AxaptaAdapter.CallStaticRecordMethod(strACT_EPProjFavorites, strAddFavorite, selectedNode.Value);
}
}
catch (Exception)
{
}
}