Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
FontNameList has no effect on Font dropdown items, default items shown
posted

No matter how I change the FontNameList property, the dropdown  contains the default items.  In order to make sure I'm not accessing a cached file, I've changed other parts of the aspx file, and those changes were immediately reflected in the interface.

In code, I have

  FontNameList="Arial,Latha"

and

   <ighedit:ToolbarDropDown Type="FontName"></ighedit:ToolbarDropDown>

Browser display showing:

Parents
No Data
Reply
  • 61
    Suggested Answer
    posted

    Hi, i had the same issue. It comes from the localization. If you set one, the override of the list does not work, and in code behind either because the load event is before the localization set the list. You actually need to set it in the prerendercomplete event, i did not try the prerender. So here :

    private sub WebForm1_PrerenderComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRenderComplete

    WebHtmlEditor1.FontNameList.Clear()

    WebHtmlEditor1.FontNameList.Add( "Times New Roman" )

    end sub

Children
No Data