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

Tutorial on table properties pop up

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 20 Mar 2013, 04:55 PM
I'm looking to implement a pop up on right click on a table. I want things like insert row below, delete row, etc. Do you have any tutorials on how to do this? I couldn't seem to find any.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 Mar 2013, 02:32 PM
Hello,

We do not have a tutorial for customization of the RadEditor's built-in commands, but you can attach to the OnClientCommandExecuting event, check for the InsertRowAbove and InsertRowBelow execution, launch your custom dialog and cancel the event using args.set_cancel(true) method.

<script type="text/javascript">
    function OnClientCommandExecuting(editor, args) {
        //The command name   
        var commandName = args.get_commandName();
        //launch the pop up here if the command is InsertRowAbove or InsertRowBelow
        //args.set_cancel(true);
    }
</script>
<telerik:RadEditor runat="server" ID="RadEditor1" OnClientCommandExecuting="OnClientCommandExecuting">
</telerik:RadEditor>


Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Web Services
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or