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

[Solved] Adding a Shortcut to an ApplyClass DropDown Item

1 Answer 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Donald
Top achievements
Rank 1
Donald asked on 05 Sep 2009, 09:31 PM
Hi,

Does anyone know how to add a shortcut to an ApplyClass DropDown Item (CSS Class)?

I tried adding a shortcut to this ASPX statement:

 

<telerik:EditorCssClass Name="general noun concept" Value=".GeneralNounConcept" ShortCut="CTRL+G"/>

 


but at runtime I got this error:

 

Server Error in '/SBVRWebForms' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Type 'Telerik.Web.UI.EditorCssClass' does not have a public property named 'ShortCut'.

Source Error:

Line 119:                </CssFiles>
Line 120:                <CssClasses>
Line 121: <telerik:EditorCssClass Name="Clear Class" Value="" ShortCut="CTRL+-"/>Line 122:                    <telerik:EditorCssClass Name="general noun concept" Value=".GeneralNounConcept" ShortCut="CTRL+G"/>

I have searched all the Telerik documentation, forums,  and technical articles; and can find no discussion of how to do this.

I am implementing software that supports the Object Management Group (OMG) "Semantics of Business Vocabulary and Business Rules" standard.  SBVR Structured English makes heavy use of styles to provide a formal interpretation of natural language text.

There would a huge productivity savings in the creation of SBVR Structure English statements if each CSS style in the ApplyClass DropDown could be executed with just a shortcut key right while your typing the text bening styled.

Many Thanks,

Donald

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Sep 2009, 09:11 AM
Hi Donald,

The shortcuts work only for the dropdowns but not for their items. When a dropdown shortcut is executed then the dropdown is expanded, but it does not fire the dropdown command because the user should choose some item and then its value will be executed.

To achieve your requirement you should implement a custom tool and apply a shortcut to it.
For example you can implement a custom toolstrip and assign shortcuts to the different tools in it.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Donald
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or