Hi,
I have to added a custom elements (RadTextBoxElement) to grid cells on the CellFormatting event at runtime.
RadTextBoxElement textbox = new RadTextBoxElement(); |
textbox.Alignment = ContentAlignment.MiddleCenter; |
textbox.KeyPress += new KeyPressEventHandler(textbox_KeyPress); |
textbox.TextChanged += new EventHandler(textbox_TextChanged); |
e.CellElement.Children.Add(textbox); |
I would like to limit the value of textbox not over 99 but i can't set the max length property of the RadTextBoxElement.
Can you help me for solve this problem ?