This is a migrated thread and some comments may be shown as answers.

RadTextBoxElement (Fix Max Length)

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Duang
Top achievements
Rank 1
Duang asked on 12 Sep 2008, 09:08 AM

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 ?

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 12 Sep 2008, 04:16 PM
Hello Duang,

Please find the answer in the other forum topic that you have created on the topic: http://www.telerik.com/community/forums/thread/b311D-bgbcmt.aspx

All the best,
Martin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Duang
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or