EasyUI Forum
May 13, 2024, 04:49:54 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: appendRow - PropertyGrid  (Read 17342 times)
pacific202
Newbie
*
Posts: 35


View Profile
« on: October 28, 2011, 03:31:45 PM »

I am trying to use appendRow on a PropertyGrid but all I see is a very thin row (see attached image).

The exact same code inserts rows on a DataGrid.

Tested on Chrome and IE7.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 28, 2011, 07:33:01 PM »

The row to be appended to propertygrid should have name, value, group(optional) and editor properties. Below is some test code:

var row = {
  name:'AddName',
  value:'',
  group:'Marketing Settings',
  editor:'text'
};
$('#tt').propertygrid('appendRow',row);
Logged
pacific202
Newbie
*
Posts: 35


View Profile
« Reply #2 on: October 29, 2011, 01:05:39 PM »

Thanks!

Would be great if the docs were updated with this.
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!