EasyUI Forum
September 15, 2025, 02:28:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: align datagrid table on: October 05, 2012, 07:43:25 PM
thx gonna try that Cheesy
2  General Category / EasyUI for jQuery / align datagrid table on: October 04, 2012, 11:31:13 PM
hi all Cheesy,

 i wanna ask how to center datagrid table inside a div ...
coz everytime i add align="center" to the div container ...
all datagrid headers gone  -.-

thx Cheesy
3  General Category / EasyUI for jQuery / Re: custom view td width calculation on: October 02, 2012, 04:01:21 AM
hahaha Cheesy this is what i needed Cheesy thx mate
4  General Category / EasyUI for jQuery / Re: Modal window outside a Tabs (Iframe) on: September 30, 2012, 10:25:23 PM
lol im a noob, but how about defining ur div modal outside the iframe  ( hvnt tried it Cheesy myself ) but who know it'll work lol
5  General Category / EasyUI for jQuery / custom view td width calculation on: September 30, 2012, 10:20:45 PM
hi guys,
first of all thx for this great plugin Cheesy

can u guys help me how to make td width in custom view so that it can match the header' width
heres my piece o code

var custview = $.extend({}, $.fn.datagrid.defaults.view, {  
    renderRow: function(target, fields, frozen, rowIndex, rowData){  
        var cc = [];  
//        cc.push("<div style='overflow-x:auto;'>");
        if(frozen){
            for(var i=0; i<fields.length; i++){  
              var copts = $(target).datagrid('getColumnOption', fields);  
              cc.push('<td field="' + copts.field + '" style="width:160px;text-align:center">'+rowData[fields]+'</td>');  
            }
        }
        if (!frozen){  
//            
            for(i=0; i<fields.length; i++){  
                copts = $(target).datagrid('getColumnOption', fields);  
                cc.push('<td field="' + copts.field + '" style="width:100px; border-right:1px dotted #ccc">'+rowData[fields]+'</td>');  
            }  
            cc.push('</div>');  
        }  
//        cc.push("</div>");
        return cc.join('');  
    }
});

additional note -> i define style:width:100px to match the header width .. but :/ .... doesnt work
* did further investigation ... seemed that custom view' fitColumns-> true by default ...  (how to turn this thing off lol )

thx Cheesy
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!