How modify the width of the link treeview

Last post 05-11-2009, 1:12 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  05-06-2009, 1:17 PM 51886

    How modify the width of the link treeview

    Hi,
     
      I'm currently filling the links dropdown list programatically, I want to enlarge the width of the treeview after opening the dropdown list (the one that display my links). Is there any way to accomplish that?
     
    Here is some sample code:
     

     

       CuteEditor.ToolControl links = htmlEditor.ToolControls["LinkTree"];
       if (links != null)
       {
        CuteEditor.TreeDropDownList linkList = (CuteEditor.TreeDropDownList)links.Control;

        linkList.Items.Clear();

        CuteEditor.TreeListItem root = new CuteEditor.TreeListItem("Pages", null);
        ...   
        linkList.Items.Add(root);
      }
     
    Thanks
  •  05-06-2009, 2:37 PM 51889 in reply to 51886

    Re: How modify the width of the link treeview

    dstpierre,
     
    Please modify the toolbar Configuration File.
     
    The CuteEditor toolbar configuration files, which contain XML, specify the toolbar configuration information of the CuteEditor instance. These configurations are applied using AutoConfigure property. The Full.config configuration files can be thought of as the master configuration file.
    <item type="dropdown" name="Links" text="[[Links]]" width="60" command="InsertLink" />

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-10-2009, 7:05 AM 52019 in reply to 51889

    Re: How modify the width of the link treeview

    Hi,
     
      That width actually only make the "drop-down list" bigger, I want to enlarge the div or whatever element contains the treeview because I have couples of node and the div look like its 60 pixels.
     
    Is there any settings for that?
     
    Thanks
  •  05-11-2009, 1:12 PM 52052 in reply to 52019

    Re: How modify the width of the link treeview

    Hi dstpierre,
     
    1. Open file Common.config(CuteSoft_Client\CuteEditor\Configuration\Shared\Common.config)
     
    2. Find section below:
     
     <html><![CDATA[Msdn.microsoft.com <img border=0 align='absMiddle' src='http://cutesoft.net/data/msdn16.gif' />]]></html>
     
    Change to:
     
    <html><![CDATA[<div style="height:50px;line-height:50px;width:300px">Msdn.microsoft.com <img border=0 align='absMiddle' src='http://cutesoft.net/data/msdn16.gif' /></div>]]></html>
     
    If you want to use custom Links treeview, try the code below:
     

                    CuteEditor.TreeDropDownList linkList = (CuteEditor.TreeDropDownList)links.Control;

                    linkList.Items.Clear();

                    CuteEditor.TreeListItem root = new CuteEditor.TreeListItem("<div style='height: 50px; width:300px; 
                    line-height:    50px'>Pages</div>", null, null);

                    linkList.Items.Add(root);

     
    Regards,
     
    Ken
     
View as RSS news feed in XML