Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > Client-Side New Item

Not answered Client-Side New Item

Feed from this thread
  • Michael Constantine avatar

    Posted on Mar 12, 2010 (permalink)

    Can you tell me how to add a separator item client side?

    thanks!

    Reply

  • Posted on Mar 15, 2010 (permalink)

    Hello Michael,

    You could use set_isSeparator(true) method in order to make the new RadComboBoxItem as sepeartor. Checkout the code shown below.

    JavaScript:

     
        function addSeperator() {  
            var menu = $find('<%=RadMenu1.ClientID%>');  
            menu.trackChanges();  
            var item = new Telerik.Web.UI.RadMenuItem();  
            var parent = menu.findItemByText("Root RadMenuItem1"); // Get the menu item  
            item.set_isSeparator(true); // Set as seperator  
            parent.get_items().add(item); // Add the new item which is seperator  
            menu.commitChanges();   
        } 

    Regards,

    Shinu.

    Reply

  • Michael Constantine avatar

    Posted on Mar 16, 2010 (permalink)

    Thank You!

    I didn't see that method in the documentation:

    Michael

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > Client-Side New Item
Related resources for "Client-Side New Item"

[  ASP.NET Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]