EasyUI Forum
May 30, 2024, 06:56:00 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: Datagrid: Set a Column editable  (Read 6108 times)
Andy1980
Newbie
*
Posts: 14


View Profile Email
« on: March 18, 2014, 08:47:01 AM »

Hi all,

i want to have a datagrid, with two columns in which every field is editable.
I just find examples about editing rows, but not columns.
How would i do this?

And is there a option, to set a validator to all the fields ( like field 1 is lesser then field 2 ), so if I click a save button, the validator is fired an every row will be validated on it's own.

Thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 18, 2014, 08:56:03 PM »

Do you want to achieve cell editing? If so, please refer to this example http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Cell%20Editing%20in%20DataGrid.
Logged
Andy1980
Newbie
*
Posts: 14


View Profile Email
« Reply #2 on: March 18, 2014, 11:37:07 PM »

Yes i want achieve cell editing, although not for a single field, but for the whole column.

lets say the datagrid has columns 1 to 5.
I want col 3 and 4 to be editable, with a input field in every single rows.
But the editor should not just appear when clicking a button or in a cell, the editors should be ready at the start, for the whole column.

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!