User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Dojo Validation Page [1]  
David0603
All American
12764 Posts
user info
edit post

Is there a way to validate fields in a dojo grid without having to use a dojo form?
I tried these two methods of creating text boxes with validation with no success.

{ name: 'IP', field: 'col5',widgetClass: dijit.form.ValidationTextBox,regExp:"a",width: 10},

{name: 'Time', field: 'col6',
widgetClass:'dijit.form.ValidationTextBox',
widgetProps:{regExp:'\\d{4}',invalidMessage:'This number should always be four digits, between 0000 and 2359'}
},

3/16/2012 10:13:34 AM

kiljadn
All American
44690 Posts
user info
edit post

http://dojotoolkit.org/reference-guide/dijit/form/ValidationTextBox.html ?

3/16/2012 6:47:22 PM

CaelNCSU
All American
7080 Posts
user info
edit post

This looks Java style: regExp:'\\d{4}',

Try this: /\d{4}/

Nevermind... It probably does new RegExp('\\d{4}') which would work.

[Edited on March 16, 2012 at 7:16 PM. Reason : a]

3/16/2012 7:09:33 PM

David0603
All American
12764 Posts
user info
edit post

This dojo grid is pissing me off. May I'll just use the dojo form instead.

3/17/2012 1:51:00 PM

 Message Boards » Tech Talk » Dojo Validation Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.