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

[Solved] 100% width problem dynamic populate radeditor

2 Answers 115 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Helge
Top achievements
Rank 1
Helge asked on 24 Jun 2009, 09:16 AM
Hi, I have this strange problem.

Trying to add 100% width to the radeditor as follows:

 

Dim leditor As New RadEditor()

 

leditor.Skin =

"Black"

 

leditor.Width =

"100%"

 

leditor.EditModes = EditModes.All

leditor.NewLineBr =

True

 

...

It is simply not possible. When trying to do that I get the following error message:

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

Line 394:        Dim leditor As New RadEditor()
Line 395:        leditor.Skin = "Black"
Line 396: leditor.Width = "100%"Line 397:        leditor.EditModes = EditModes.All
Line 398:        leditor.NewLineBr = True


2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 24 Jun 2009, 09:30 AM
Hi Kjell,

Please, try the following syntax:

RadEditor1.Width = Unit.Percentage(100%)

or

RadEditor1.Width = Unit.Percentage(100)

This will fix the problem.


All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Helge
Top achievements
Rank 1
answered on 24 Jun 2009, 09:36 AM
Thanks alot, just what I was looking for.
Tags
Editor
Asked by
Helge
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Helge
Top achievements
Rank 1
Share this question
or