Show Posts
|
Pages: [1] 2
|
4
|
General Category / EasyUI for jQuery / Re: issue in treegrid
|
on: September 24, 2012, 06:31:53 PM
|
1. If ajax query not send then error occurred in ajax invoking code or previous lines possible here searchData = { 'id': _txtdbid, 'filename': _txtdocname, 'doctype': _txtdoctype};
_txtdbid etc. is global variables, accesible from this context? 2. Browser contains support of JSON object (JSON.stringify) ? 3. What output in error console? 4. document.getElementById('grayOut').style.display = "none"; //Same $('#grayOut').hide();
5. For bettre performance call selector once var tree = $('#test'); tree.treegrid('loading'); ... tree.treegrid('loadData', jQuery.parseJSON(data.d)); enableDnd(tree); tree.treegrid('loaded');
|
|
|
7
|
General Category / General Discussion / Re: Menu: feature request
|
on: September 14, 2012, 07:06:25 AM
|
Please review rewritten menu plug-in. Rewrited piece function wrapMenu(menu) { // Tmp is element for text width calculation var tmp = $('<div/>').addClass('menu').css({ visibility:'hidden' }).appendTo('body'); // Tmp variable contains maximum item width var autoWidth = 0; menu.addClass('menu').find('>div').each(function() { var item = $(this); if (item.hasClass('menu-sep')) { item.html(' '); } else { // the menu item options var itemOpts = $.extend({}, $.parser.parseOptions(this, ['name', 'iconCls', 'href']), { disabled: (item.attr('disabled') ? true : undefined) }); item.attr('name', itemOpts.name || '').attr('href', itemOpts.href || ''); var text = item.addClass('menu-item').html(); // Fill tmp tmp.html(text); // Get width + left offset + arrow width var itemWidth = tmp.width() + 28 + 22; // + Left offset + arrow width // If width greater than previous, replace width if (autoWidth < itemWidth) { autoWidth = itemWidth; }
item.empty().append($('<div class="menu-text"></div>').html(text)); if (itemOpts.iconCls) { $('<div class="menu-icon"></div>').addClass(itemOpts.iconCls).appendTo(item); } if (itemOpts.disabled) { setDisabled(target, item[0], true); } if (item[0].submenu) { $('<div class="menu-rightarrow"></div>').appendTo(item); // has sub menu } item._outerHeight(22); } // Remove tmp element tmp.remove(); // Apply autowidth menu.css({width:autoWidth}); menu.hide(); } }
|
|
|
10
|
General Category / Bug Report / Re: DataGrid colspan bug
|
on: September 12, 2012, 07:05:32 AM
|
But this hack, is not solution. I checked other look-like code, everywhere when summary width of bottom columns greater then top columns, we get same bug. May be once at table creattion when column width undefined - calc autosize? var tmp = $('<div/>').css({display:'inline',visibility:'hidden'}).text('Restructured outdated').appendTo('body'); var autoSize = tmp.width(); tmp.remove();k
|
|
|
13
|
General Category / Bug Report / Re: DataGrid colspan bug
|
on: September 12, 2012, 04:29:37 AM
|
But when width of columns is set - it's work correcly?. In documentation we can read following description "The width of column. If not defined, the width will auto expand to fit its contents."
|
|
|
|