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

[Solved] Rad Editor Submit button doubts

3 Answers 178 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Viji
Top achievements
Rank 1
Viji asked on 17 Apr 2008, 03:35 PM
Hello,

I am using the radgrid and radeditor in my page.
When the user click on a row in the grid a particluar column's data should go to the editor and the user can edit the text from the editor based on the permission and then hit on the update button to save the data to the database and then refresh the radgrid. I have put both the controls into an Ajax Manager.

My problem here is.

1)  After editing the text, when I click on update, Editor's SubmitClicked event is firing, but when I give the command radeditor.html I am not getting the latest value from the editor, rather its giving me the initial value which came from the grid column. Is there something I am missing?

2)  Based on the permission, I want to disable the submit button, how do I do that.

Thanks
Viji

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 21 Apr 2008, 04:09 PM
Hi Viji,

Thank you for the detailed information.

Could you please open a support ticket and send us your runnable project or a sample one in which the problem can be reproduced and we will do our best to provide a solution right away?

As to the "based on the permission" question:

This depends on your current scenario - bellow is a sample code that disables the editor if the user does not have permissions:
string user = "notAuthorised";  
{  
    if (user == "authorised")  
    {  
        RadEditor1.Enabled = true;  
    }  
    else   
    {   
        RadEditor1.Enabled = false;  
    }   

Another solution is to set the editor in preview mode and if the user has permission to enable the other modes:
string user = "notAuthorised";  
{  
    if (user == "authorised")  
    {  
        RadEditor1.EditModes = EditModes.All;  
    }  
    else   
    {   
        RadEditor1.EditModes = EditModes.Preview;   
    }   

I hope this helps.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jacqui
Top achievements
Rank 1
answered on 24 Apr 2009, 11:39 AM
Hi There,

We're using version 5.3.2.0 of the Rad Editor and we've set the edit mode to design view only in the configFile.xml as follows:
   <property name="EditModes">Design</property>
We have a similar scenario to Viji where we would like would like users with the correct permissions, to have the HTML edit mode in addition to the design view.  Is it possible to activate the HTML feature baised on permissions in the way described above?!

Thanks in advance!
Alice
0
Rumen
Telerik team
answered on 27 Apr 2009, 11:55 AM
Hi Alice,

Unfortunately, due to MOSS limitations it is not possible to dynamically enable or disable Html mode depending on the permissions of the logged user. You can only set the Design and Html modes via the ConfigFile.xml file for all users.

Greetings,
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.
Tags
Editor
Asked by
Viji
Top achievements
Rank 1
Answers by
George
Telerik team
Jacqui
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or