Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to convert winforms treeview,TreeNodeCollection,treenode controls to Telerik controls

$
0
0

Hi All,

I am using Telerik controls for treeview.How can i convert winforms controls(treeview,TreeNodeCollection,treenode) in my WPF Application,here i am using telerik treeview controles.

EX:

 private void BuildConfigDetailsData_Helper(TreeNodeCollection ndcol, ref string strConfigDetailsData)
        {
            string strImagesPath = "file:///" + _Params.SizerFolderName + "xml\\";
            TreeNode nd;
            for (int iCount = 0; iCount < ndcol.Count; iCount++)
            {
                nd = ndcol[iCount];
                if (nd.Nodes.Count > 0)
                {
                    strConfigDetailsData += "<TABLE BORDER=0><TR><TD WIDTH=10></TD><TD><IMG SRC='" + strImagesPath+ "minus.gif'>&nbsp;&nbsp;" + nd.Text + "</A><DIV>";
                }
                else
                {
                    strConfigDetailsData += "<TABLE BORDER=0><TR><TD WIDTH=10></TD><TD><IMG SRC='" + strImagesPath+ "leaf.gif'>&nbsp;&nbsp;" + nd.Text + "</A><DIV>";
                }
                if (nd.Nodes.Count > 0)
                {
                    BuildConfigDetailsData_Helper(nd.Nodes, ref strConfigDetailsData);

  private void BuildConfigDetailsData_Helper(TreeNodeCollection ndcol, ref string strConfigDetailsData)
        {
            string strImagesPath = "file:///" + _Params.SizerFolderName + "xml\\";
            TreeNode nd;
            for (int iCount = 0; iCount < ndcol.Count; iCount++)

Please let me know how can i proceed.Which tree classes  can i use.....

Thanks,

Ranjith


Ranjithkumar


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>