This is a migrated thread and some comments may be shown as answers.

FormatBlock not displaying current selection consistently

1 Answer 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Addams
Top achievements
Rank 1
Addams asked on 17 Nov 2010, 04:19 PM
In IE, the FormatBlock displays selected headings correctly by showing Heading 1, Heading 2, etc. if an h1 or h2 are selected.  In Firefox and Chrome, when you select an h1 or h2 it displays "h1" or "h2" as the FormatBlock selected valued.  Shouldn't the FormatBlock show the predefined options if their element is selected?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Nov 2010, 04:49 PM
Hi Addams,

The state of the FormatBlock dropdown is returned by the browser's queryCommandValue method and it depends on the used browser. The dropdown value is updated according the returned value of this method  and differs depending on the browser and the browser's localization and that is why we do not modify it.

You can use the solution provided in the following forum thread to display your own string in the dropdown headed depending on the value returned by the browser: Paragraph Styles, custom header.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Addams
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or