Suppose we have the following asp.net textbox in a UserControl with the onfocusout javascript method that passes validation as 50000 characters.
<telerik:RadTextBox TextMode="MultiLine" ID="txtComments" onfocusout="return CheckLength(this, 50000);" Height="100px" runat="server" CssClass="TextMulti" Width="99%" EnableSingleInputRendering="False">
</telerik:RadTextBox>
For a particular scenario, you may need to change the number of characters to say 6000.
This can be done dynamincally in the UserControl C# code as below:
txtComments.Attributes["onfocusout"] = "return CheckLength(this, 6000);";