Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 40257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:59:43+00:00 2026-05-10T14:59:43+00:00

I need to implement auto-capitalization inside of a Telerik RadEditor control on an ASPX

  • 0

I need to implement auto-capitalization inside of a Telerik RadEditor control on an ASPX page as a user types.

This can be an IE specific solution (IE6+).

I currently capture every keystroke (down/up) as the user types to support a separate feature called ‘macros’ that are essentially short keywords that expand into formatted text. i.e. the macro ‘so’ could auto expand upon hitting spacebar to ‘stackoverflow’.

That said, I have access to the keyCode information, as well I am using the TextRange methods to select a word (‘so’) and expanding it to ‘stackoverflow’. Thus, I have some semblence of context.

However, I need to check this context to know whether I should auto-capitalize. This also needs to work regardless of whether a macro is involved.

Since I’m monitoring keystrokes for the macros, should I just monitor for punctuation (it’s more than just periods that signal a capital letter) and auto-cap the next letter typed, or should I use TextRange and analyze context?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:59:44+00:00Added an answer on May 10, 2026 at 2:59 pm

    I’m not sure if this is what you’re trying to do, but here is a function (reference) to convert a given string to title case:

    function toTitleCase(str) {     return str.replace(/([\w&`'‘’'“.@:\/\{\(\[<>_]+-? *)/g, function(match, p1, index, title){ // ' fix syntax highlighting         if (index > 0 && title.charAt(index - 2) != ':' &&              match.search(/^(a(nd?|s|t)?|b(ut|y)|en|for|i[fn]|o[fnr]|t(he|o)|vs?\.?|via)[ -]/i) > -1)             return match.toLowerCase();         if (title.substring(index - 1, index + 1).search(/[''_{([]/) > -1)             return match.charAt(0) + match.charAt(1).toUpperCase() + match.substr(2);         if (match.substr(1).search(/[A-Z]+|&|[\w]+[._][\w]+/) > -1 ||             title.substring(index - 1, index + 1).search(/[\])}]/) > -1)             return match;         return match.charAt(0).toUpperCase() + match.substr(1);     }); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement auto-increment for each nightly builds. For this, i need to
So I need to implement an auto-logout feature for WordPress. With JavaScript this seems
Can anyone please suggest how should I implement column drag and drop (with auto
How much of this is auto-generated methods in Rails User.find_or_create_from_auth_hash(auth_hash). That is just wondering
Any one know how to implement auto send message using MFMessageComposer....i mean No need
I need to implement following categorization in SQL: group can contain multiple tests or
My requirement is to implement auto complete feature in my rails application. I need
Here is a business logic I need to implement: There are multiple entity types
To implement github like fork/pull request function in my project, the auto-merge feature need
I am trying to implement this jQuery auto complete function but the problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.