EasyUI Forum
April 19, 2024, 06:13:18 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 Card View -- How to display description field below row column data?  (Read 4349 times)
Aod47
Jr. Member
**
Posts: 81


View Profile
« on: July 18, 2017, 07:51:47 PM »

May be I used a wrong word in question. Could you please advice how to apply Card View like this picture?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 20, 2017, 02:05:07 AM »

The detail view may be more suitable.
While using the detail view, expand all the rows after loading data successfully.
Code:
onLoadSuccess: function(){
  var len = $(this).datagrid('getRows').length;
  for(var i=0; i<len; i++){
    $(this).datagrid('expandRow',i)
  }
}

If you don't want to display the expander button, please set the 'hidden' property to true for this column.
Code:
{field:'e',width:40,expander:true,hidden:true},
{field:'itemid',title:'Item ID',width:80},
{field:'productid',title:'Product ID',width:100,sortable:true},
...
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!