EasyUI Forum
May 15, 2024, 09:51:21 AM *
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 DetailView only specifics rows  (Read 4665 times)
crosemffet
Jr. Member
**
Posts: 68



View Profile WWW Email
« on: December 08, 2015, 07:32:09 AM »

hello, and thanks for your support,
the situation is: I have one datagrid with 10 rows. I want the + sign shows only in certain rows that can be expanded, i.e. rows 4 and 6.
the other rows can't be expanded because no data to expand.
how can I avoid to shot the + sign in the expand column in the rows 1, 2, 3.....?
thanks in advance,
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 08, 2015, 08:30:14 AM »

You can hide the expanding icons on any rows. Please refer to the code below:
Code:
$('#dg').datagrid({
    onLoadSuccess: function(){
        var dg = $(this);
        $.map([1,2,3], function(index){
            dg.datagrid('getExpander', index).hide();
        })
    }
});
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!