EasyUI Forum
September 13, 2025, 02:23:48 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 toolbar made by code  (Read 6476 times)
Fabrice
Jr. Member
**
Posts: 62


View Profile
« on: September 05, 2014, 02:47:13 AM »

i try to build toobar content in a datagrid by code, it work's perfect except for combobox, there is no space between two combobox, padding top and bottom work's fine but not padding left and right!
my code like this :

 
Code:
  var toolbar = $('<div style="padding:2px 8px;"></div>')

.
.
    var btn = $('<a style="margin-right:8px"></a>').appendTo(toolbar);
  btn.combobox({
                    buttonText: 'Filter',
                    buttonAlign: 'left',
                    buttonIcon: 'icon-filter',
                    width: 300,
                   editable: false,
                    data: menu,
                   
                });

    var btn2 = $('<a style="margin-right:8px"></a>').appendTo(toolbar);
  btn2.combobox({
                    buttonText: 'Search',
                    buttonAlign: 'left',
                    buttonIcon: 'icon-search',
                    width: 300,
                   editable: false,
                    data: menu,
                   
                });
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!