Adding a new Dropdown

Last post 07-30-2009, 1:35 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  07-29-2009, 1:18 PM 54373

    Adding a new Dropdown

    I would like to add a  new dropdown in the same lines as code snippet dropdown and progammatically assign values to it
     
    I did the following 
    I  added this line in my config file
     <item type="dropdown" name="Mydropdown" width="90" RenderItemBorder="true" text="[[Mydropdown]]" />
    I added these lines in include_cuteeditor.asp
    Public Property Let MyDropDownMenuNames(input_string)
            s_MydropdownMenuNames = input_string
        End Property    
        Public Property Let MyDropDownMenuList(input_string)
            s_MydropdownMenuList = input_string
        End Property       
     
    and also added a case statement
     with 
     case "mydropdown":
                    name_s=s_MydropdownMenuNames
                  list_s=s_MydropdownMenuList
     
    Also in my code 
    I assigned values as 
     
    editor.MyDropDownMenuNames = "test value 1, test value 2"
     editor.MyDropDownMenuList = "test value 1, test value 2"
     
     
    When I see my editor it displays the dropdown with the values but the name of the dropdown is enclosed within paranthesis, like this
    {MyDropDown}
     
    Please help
     
     
  •  07-30-2009, 1:35 PM 54420 in reply to 54373

    Re: Adding a new Dropdown

    Change <item type="dropdown" name="Mydropdown" width="90" RenderItemBorder="true" text="[[Mydropdown]]" />
     
    to:
     
    <item type="dropdown" name="Mydropdown" width="90" RenderItemBorder="true" text="Mydropdown" />

    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

View as RSS news feed in XML