Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

I Can't fix the selecting value in the Font or Size Formatting Combobox.

Last post 08-07-2008 8:26 by [Infragistics] Rumen Stankov. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-06-2008 7:48

    • gy7choi
    • Not Ranked
    • Joined on 08-06-2008
    • Points 20

    I Can't fix the selecting value in the Font or Size Formatting Combobox.

    dI want to know how to fix the selecting value in the font combobox of WebhtmlEditor.

     


    • Post Points: 20
  • 08-07-2008 8:26 In reply to

    Re: I Can't fix the selecting value in the Font or Size Formatting Combobox.

    Hello,

    I am not sure I understand the problem, but do you need to modify the the FontName dropdown with your custom settings? Then maybe the following code will be useful

     protected void Page_PreRender(object sender, EventArgs e)
    {
        // Find the FontSize drop down item in the Toolbar.Items collection.
        ToolbarDropDown dropDown = (ToolbarDropDown)  this.WebHtmlEditor1.Toolbar.Items.GetByType(ToolbarItemType.FontName);

        // Clear items coming from the FontSizeList property.
        dropDown.Items.Clear();
        // Add items that preview the font size their selection sets.
        dropDown.Items.Add(new ToolbarDropDownItem("Font Name 1", "1"));
        dropDown.Items.Add(new ToolbarDropDownItem("font Name 2", "2"));
        dropDown.Items.Add(new ToolbarDropDownItem("Font Name 3", "3"));
    }

    If I am missing something, could you please send a little bit more information on what you need to achieve, so we can hopefully help further. 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems