protected override void CreateChildItems(Telerik.WinControls.RadElement parent) { base.CreateChildItems(parent); tbi = new RadTextBoxItem(mtb); mtb.Font = this.Font; this.TextBoxElement.Children.Add(tbi); }
protected override void CreateChildItems(Telerik.WinControls.RadElement parent) { base.CreateChildItems(parent); realTB = this.SpinElement.TextBoxItem; tbi = new RadTextBoxItem(mtb); mtb.Font = this.Font; }
protected override void CreateChildItems(Telerik.WinControls.RadElement parent) { base.CreateChildItems(parent); this.spellChecker = new RadSpellChecker(); this.controlSpellChecker = this.spellChecker.GetControlSpellChecker(typeof(RadRichTextBox)); this.controlSpellChecker.CurrentControl = this; }
private void ChatElement_CardActionClicked(object sender, CardActionEventArgs e) { Telerik.WinControls.RadElement element = sender as Telerik.WinControls.RadElement; if (element != null) { var parent = element.FindAncestor <CarouselMessageItemElement>(); if (parent != null && parent.Parent != null) { if (parent.Parent.Children.IndexOf(parent) != parent.Parent.Children.Count - 1) { return; } } } this.radChat1.ChatElement.AddMessage(new ChatTextMessage(e.Action.Value.ToString(), this.ClientAuthor, DateTime.Now)); this.SendMessageToServer(e.Action.Value.ToString()); }