Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
WebDataTree node click event is not fired on the server side
posted

Hi

We try to replace the old UltraWebTree (v5.3) By the new one WebDataTree (v10.3  for asp.net  frame work 3.5  )

But we notice  that  the node click event on the server side is not fired  as before with (v5.3)

Note :

1/ we take care to add  <AutoPostBackFlags NodeClick="On" /> .

2/ We use VS 2010  but our web forms application still  uses  the old fashion code behind model :

I mean juste aspx+ aspx.cs  files   and  no  aspx.designer.cs .  

3/ We have also tried to catch the click event on the client side with (v10.3) and it works fine .

 

Thanks

 

aspx  Form :

------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<form id="Form1" runat

="server">

 

 

 

<ig:WebScriptManager ID="WebScriptManager1" runat

="server">

 

 

 

</ig:WebScriptManager

>

 

 

 

<table id="Table1" cellspacing="0" cellpadding="0" width="100%" border

="0">

 

 

 

<tr

>

 

 

 

<td id="td" align="right" width="100%" style="height: 18px; background-image

: url(APP_THEMES/<%=Page.Theme%>/IMAGES/searchbg.JPG);">

 

 

 

<input type="image" id="Pin" onclick="CollapseShowPane('<%=Page.Theme%>');" src="APP_THEMES/<%=Page.Theme%>

/Images/ig_menuBlueLeft.GIF"

 

 

 

style="vertical-align: middle;"

/>

 

 

 

</td

>

 

 

 

</tr

>

 

 

 

</table

>

 

 

 

<table id="Table2" cellspacing="0" cellpadding="0" width

="100%">

 

 

 

<tr

>

 

 

 

<td valign="top" id

="treetd">

 

 

 

<ig:WebDataTree ID="WebTree" runat="server" Width="100%" Height="100%"

 

 

 

DataSourceID

="XmlDataSourceForTree"

 

 

 

Style="float

:left"

 

 

 

InitialExpandDepth="1"

 

 

 

onnodeclick

="WebTree_NodeClick">

 

 

 

<AutoPostBackFlags NodeClick="On" />

 

 

 

<DataBindings

>

 

 

 

<ig:DataTreeNodeBinding DataMember="Folder" KeyField="id" TextField="name" ValueField="FolderTypeId"

/>

 

 

 

</DataBindings

>

 

 

 

</ig:WebDataTree

>

 

 

 

<asp:XmlDataSource ID="XmlDataSourceForTree" runat="server"></asp:XmlDataSource

>

 

 

 

</td

>

 

 

 

</tr

>

 

 

 

<tr><td> <asp:HiddenField id="lastSize" runat="server" /> </td></tr

>

 

 

 

</table

>

 

 

 

</form

>

aspx.cs :

---------

we impements the event handler:

protected

 

 

 

void WebTree_NodeClick(object sender, Infragistics.Web.UI.NavigationControls.DataTreeNodeClickEventArgs

e)