<telerik:RadEditor ID="RadEditor3" Runat="server" EditModes="Design, Preview"
StripFormattingOnPaste="MSWordNoFonts" Width="100%" OnClientLoad="OnClientLoad"
AutoResizeHeight="false" BorderStyle="None" Height="530px" Skin="Office2007" >
Javascript function is
function OnClientLoad(editor) {
editor.attachEventHandler("onkeydown", function(e) {
var content = editor.get_text(); //returns the editor's content as plain text
var words = 0;
if (content) {
var punctRegX = /[!\.?;,:&_\-\-\{\}\[\]\(\)~#'"]/g;
var contentcontent = content.replace(punctRegX, "");
var trimRegX = /(^\s+)|(\s+$)/g;
contentcontent = content.replace(trimRegX, "");
if (content) {
splitRegX = /\s+/;
var array = content.split(splitRegX);
words = array.length;
}
}
// var counter = $get("counter");
// counter.innerHTML = "Words: " + words + " Characters: " + content.length;
var wcountLabel = document.getElementById("<%= lblWordCount.ClientID %>";
var hfwcountId = document.getElementById("<%= hfWordCount.ClientID %>");
wcountLabel.innerText = "Words: " + words;
hfwcountId.innerText = words
});
Please let me know what I am missing here
Thanks
<telerik:RadScheduler ID="schTimeline" runat="server" SelectedView="TimelineView" AllowDelete="false" AllowEdit="false" AllowInsert="false" DataSourceID="odsTimelineData" DataKeyField="ID" DataSubjectField="SUBJECT" DataStartField="START_DATE" DataEndField="END_DATE" OverflowBehavior="Expand" RowHeaderWidth="180px"> <TimelineView UserSelectable="false" GroupBy="Employees" GroupingDirection="Vertical" SortingMode="Global" /> <MultiDayView UserSelectable="false" /> <DayView UserSelectable="false" /> <WeekView UserSelectable="false" /> <MonthView UserSelectable="false" /> <ResourceTypes> <telerik:ResourceType KeyField="Username" Name="Employees" TextField="Name" ForeignKeyField="PERSON" DataSourceID="odsEmployees"/> </ResourceTypes> <AppointmentTemplate> <div class="<%# Eval("CssClass") %>"> <p class="rsCustomSubject"><%# Eval("Subject") %></p> </div> </AppointmentTemplate></telerik:RadScheduler><telerik:GridBoundColumn DataField="RulesIdentifiedCount" HeaderText="Rules Identified" Visible="true" UniqueName="RulesIdentifiedCount"> </telerik:GridBoundColumn>
Dim
rulesidentified As Integer = 0
If dtr.Read() Then gridItem("RulesIdentifiedCount").Text = dtr("RulesIdentifiedCount") rulesidentified = rulesidentified = dtr("RulesIdentifiedCount") End IfIf (TypeOf e.Item Is GridFooterItem) Then Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem) footerItem("RulesApplicableCount").Text = rulesidentified End If