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

How do I set the MaxLength for the Insert Textbox

1 Answer 541 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 23 Jul 2010, 01:12 PM

I have a radGrid on the page with the "Add New Record" button.  When I click the "Add New Record" button, a textbox appears above each column that allows me to enter values.  I want to limit the number of characters that can be entered in the textbox.  How do I set the MaxLength of those textboxes?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Jul 2010, 02:09 PM
Hello Richard,

You can set the MaxLength property on the desired columns:
<telerik:GridNumericColumn MaxLength="20" DataField="UnitPrice" />
<telerik:GridBoundColumn MaxLength="10" DataField="ProductName" />

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or