I am converting Infragistics 2010 v2 CLR3.5 to Infragistics 2014 v2 using 4.5 CLR using Visual Studio 2013 Professional
Update 4. I am getting following error while building the project. Please reply immediately..........
What should I use in "WebDataTree" instead of Levels as they were being used in "UltraWebTree": Please try to give solution so that there should be whole change of functionality
Below is the code FYI....
<igmisc:WebDataTree ID="treeColumnLeft" runat="server" SingleBranchExpand="True" BorderStyle="Inset" Cursor="Default" ExpandImage="./images/col.gif" CollapseImage="./images/exp.gif" Indentation="20" WebTreeTarget="ClassicTree" Font-Names="Tahoma" Font-Size="9pt" AllowDrag="True" AllowDrop="True" BorderWidth="2px" BorderColor="LightSteelBlue" InitialExpandDepth="3"> <Nodes> <igmisc:DataTreeNode Target="" HoverCssClass="" ToolTip="" SelectedCssClass="" CssClass="" Text="Columns Available for Sorting"> </igmisc:DataTreeNode> </Nodes> <NodeSettings SelectedCssClass="" HoverCssClass="" /> <Levels> <ignav:Level Index="0"></ignav:Level> <ignav:Level Index="1"></ignav:Level> </Levels> <ClientEvents DragStart="treeColumnLeft_DragStart" NodeDropped="treeColumnLeft_Drop" /> </igmisc:WebDataTree>
Hello,
Thank you for posting in our community! Actually there are a lot of similar questions regarding the migration of an old control answered in the forum.
Regarding the use of Levels à Regarding migration from infragistics 2010.2 to 2012.2
Additionally, in the new WebDataTree you could find the particular node’s Level in the Tree using Level Property.
For example - Retrieve a node:DataTreeNode getNode1 = WebDataTree1.Nodes.FindNodeByKey("test");getNode1.Level – returns the current level of this node
The following will also be of help to you:Reg: Need help on Infragistics WebDataTree Node Properties & methods
As the new controls have different architecture, when migrating it is always best to have the new API in mind: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=Web_WebDataTree.html
More similar migration related threads to be found under the forums Retired Controls section: http://www.infragistics.com/community/forums/122.aspx
I have gone through your reply. But I am not able to fix my error.
Please keep in mind with my code, provide me more detail example to achieve that.
I noticed this is a similar issue to your other post. For code-behind configuration please take a look this post which seem to be about the same issue:
http://www.infragistics.com/community/forums/p/96497/476925.aspx
As for declarative definition these are defined like in the online samples (http://www.infragistics.com/samples/aspnet/data-tree/data-binding ):
<ig:WebDataTree ID="WebDataTree1" runat="server" Height="300px" Width="430px">
<DataBindings>
<ig:DataTreeNodeBinding ValueField="ID" TextField="Title" ImageUrlField="ImageUrl" Depth="0" />
<ig:DataTreeNodeBinding ValueField="ID" TextField="Title" ImageUrlField="ImageUrl" Depth="1" />
</DataBindings>
</ig:WebDataTree>
That ASPX code achieves the same thing as the C# version.
Just keep in mind that in the code you provided the level definitions only contain the index they match and without other properties (key fields, data remembers and so on) doesn’t really do much, so I’m not really sure what you should be replacing it with, unless it is combined with the code behind from the other post.
Please let me know if I can provide any further assistance.
Regards,
Damyan Petev
Associate Software Developer
Infragistics, Inc.