or
I've started with this but got stuck on setting the height of the textbox.Label1ForTitleBold Label2ForValidationRed_________________________________Multiline |textbox |________________________________|
public class LabelMultilineTextBox : RadTextBox{private TextPrimitive title = new TextPrimitive();private TextPrimitive validation = new TextPrimitive();public LabelMultilineTextBox(){this.Size = new Size(425, 60);this.MaxLength = 1024;this.Multiline = true;this.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;this.title.Text = "Title";this.validation.Text = "* Validation";}public string TitleText{get { return this.title.Text; }set{this.title.Text = value.Trim();this.Invalidate();}}public string ValidationText{get { return this.validation.Text; }set{string text = value.Trim();if (text.StartsWith("*")){this.validation.Text = text;}else{this.validation.Text = "* " + text;}this.Invalidate();}}public bool ValidationVisible{get { return this.validation.Visibility == ElementVisibility.Visible; }set{if (value){this.validation.Visibility = ElementVisibility.Visible;}else{this.validation.Visibility = ElementVisibility.Collapsed;}}}protected override void CreateChildItems(RadElement parent){base.CreateChildItems(parent);RadTextBoxElement element = this.RootElement.Children[0] as RadTextBoxElement;element.Size = new Size(425, 46);this.RootElement.Children.Clear();BoxLayout layoutTexts = new BoxLayout();layoutTexts.Orientation = Orientation.Horizontal;layoutTexts.Children.Add(title);layoutTexts.Children.Add(validation);BoxLayout layout = new BoxLayout();layout.Orientation = Orientation.Vertical;layout.Children.Add(layoutTexts);layout.Children.Add(element);this.RootElement.Children.Add(layout);}}
I have a gridview that is grouped by one field. When a cell in a row is changed and the focus is moved to another row, the group where the updated row resides in automatically collapses and the user has to expand the group again. I haven’t got a clue why it collapses and how to stop it from collapsing.
Can u please help me?
Many tanx in advance!