jQWidgets Forums
jQuery UI Widgets › Forums › Grid › MaxLegth on columntype jqxGrid
This topic contains 5 replies, has 3 voices, and was last updated by slothy 11 years, 9 months ago.
-
Author
-
Hi!
I need establish a max-length when the user type in, Is that possible?
Hi benitocas88,
The solution is: Set the “initeditor” property of the column to a function and inside that function, set the “maxlength” attribute of the textbox.
Example:
columns: [ { text: 'First Name', columntype: 'textbox', datafield: 'firstname', width: 80 , initeditor: function (row, column, editor) { editor.attr('maxlength', 5); } },
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter, where is the doucumentation about initeditor and createeditor, pls
Thank you
Alex
Dear Peter.
Found it
not so easy unless you know
had to second-guess it was under columns in the Grid API
no top level listing so practically invisible if you are browsing….
would it be possible to have some sort of API search for the API?? I am sure would be very simple to implement – if you want to make a quick reference to a particular method or property you are screwed unless you know exactly where to look
Thanks
Alex
Hi Alex,
In the Grid’s API Documentation. These are properties of the columns so you in the columns section.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comBeat you to it Peter
To further what i said. it is ok if one is an experienced and seasoned user and knows where to look. If you are starting out and trying to find your way around the documentation for referential purposes it can potentially be quite daunting and frustrating…so, like myself, if you are on the upward slope of ones learning curve, having to scramble around the documentation manually is, to be honest, quite offputting
As i get used to it it is becoming less of an issue.Many of the frameworks seem to have some sort of Search facility, including jquery’s new-fangled layout. One of the few things i found quite useful and grateful for in ExtJS is the ease of navigation around, and presentation of, the documentation.
In this site i like the many examples
But to have some enhanced Search facility would be wonderful.
Not saying this as a gripe. But, on behalf of people wanting to learn JQX if they felt anything like i have been doing about finding out about functions, properties etc and not necessarily knowing where they fit into the overall scheme of things this functionality would be a great help.
Regards Alex.
-
AuthorPosts
You must be logged in to reply to this topic.