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

Size of FormatStripper drop down

3 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ralf Thietz
Top achievements
Rank 1
Ralf Thietz asked on 09 Dec 2008, 11:51 AM
Hi,
is there a way to increase the width of the FormatStripper drop down menu? German text is too long and causes line breaks. Width is set to 200px in the style attribute and I can't find a way to change that programmatically.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Dec 2008, 11:59 AM
Hi Ralf,

Please, see the following help article on the subject: Resizing The Dropdown Header And Pop Up Size.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ralf Thietz
Top achievements
Rank 1
answered on 09 Dec 2008, 02:45 PM
Hi Rumen,

the line break problem is somehow related to the doctype. If I specify a DTD there are no line breaks anymore, but part of the text is still hidden. 

Setting the attributes as shown in the example doesn't seem to work with the FormatStripper tool. Did it like this:

        foreach(EditorToolGroup group in RadEditor1.Tools) {  
            EditorTool tool = group.FindTool("FormatStripper");  
            if(tool != null) {  
                tool.Attributes["popupwidth"] = "300px";  
            }  
        } 

For the time being I solved the problem by reducing the font size, but if you have another idea how to set the width, it would be appreciated :)
0
Accepted
Rumen
Telerik team
answered on 10 Dec 2008, 04:23 PM
Hi Ralf,

The RadControls for ASP.NET AJAX are designed to work in XHTML compliant pages and there might be some visual glitches when no doctype is present on the page. Could you please, make sure that the doctype below is set in the page with the editor:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

You can also resize the dropdowns with the following css class but please note that it will be applied to all dropdowns:

    <style type="text/css">
    .rade_dropDownBody
    {
        width: 250px !important;
    }
    </style>

Another way is by shorten the localization strings of this tool available in the resx localization files.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Ralf Thietz
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ralf Thietz
Top achievements
Rank 1
Share this question
or