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

Radeditor not contains definition

1 Answer 32 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ashishpandey21jan
Top achievements
Rank 1
ashishpandey21jan asked on 26 Oct 2015, 11:26 AM

We are using telerik old version which was using dll of rad controls.Now we are upgrading these controls to latest version of telerik and getting more code issue which was not working .

My following code is not working , So please let us know How we can fixed this issue.​

'Telerik.Web.UI.RadEditor' does not contain a definition for 'ConvertToLower' and  'FileEncoding' .

Telerik.Web.UI.RadEditor rd = new Telerik.Web.UI.RadEditor();
        rd.ConvertToLower = true;                                                                  ----------error
        rd.FileEncoding = 65001; //UTF8                                                       --------error
        rd.Html = sMessage;
        sMessage = rd.Text;​

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Oct 2015, 11:33 AM

Hi,

These properties do not exist in the current version.

RadEditor works with HTML strings, not entire files, so FileEncoding does not make sense in its context.

As for converting to lowercase - such a feature would be ambiguous and can break user content, so it does not exist. If you need that, you can implement a custom content filter or use string manipulations on the server (e.g., regex).

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
ashishpandey21jan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or