EasyUI Forum
May 16, 2024, 12:39:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: required fields in datagrid?  (Read 7472 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: September 04, 2013, 10:40:21 AM »

I have grid editing working based on the "Row Editing in DataGrid" example.  in the example there's a combobox that's marked Required and I have that working.  I'm trying to make a text box required also, and this isn't doing it.
Code:
<th data-options="field:'F1',width:155,
editor:{
type:'text',
options:{
required:true
}
}">field 1</th>

I also tried this:
Code:
<th data-options="field:'F1',width:155,editor:'text',required:true">Field 1</th>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 04, 2013, 07:23:55 PM »

The text editor has no 'required' property, please use validatebox editor instead.
Code:
<th data-options="field:'F1',width:155,
editor:{
type:'validatebox',
options:{
required:true
}
}">field 1</th>
Logged
chrwei
Full Member
***
Posts: 219


View Profile Email
« Reply #2 on: September 05, 2013, 12:03:45 PM »

yeah I should have seen that.  thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!