We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem adding maxLength property to textbox Cell

Thread ID:




147750 Sep 20,2019 08:14 PM UTC ASP.NET MVC - EJ 2 0
Tags: Grid
martin costamagna
Asked On September 20, 2019 08:14 PM UTC

Hello, i am having problems adding the maxLength property for a specific column in the grid.
The code i have is:
@(Html.Syncfusion().Grid((string)ViewBag.releaseRightsAcquiredGridId).Column(column =>
{column.Add(p => p.TerritorialRights).Width(120).HeaderText("TerritorialRights").CellEditType(CellEditType.StringEdit).CssClass("hyperTextBlack tdTerritoryRightsLnr tooltipster");
How can i set the maxLength property for all the cells in that column?
By default, in chrome and firefox maxLength is set to -1, but in Internet Explorer, maxLength is set to 255, and that generate some troubles with the Jquery Validator.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon