EasyUI Forum
May 28, 2024, 08:45:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 233 234 [235] 236 237 ... 239
3511  General Category / EasyUI for jQuery / Re: Adding tab tools dynamically in version 1.2.5 on: December 08, 2011, 06:37:09 PM
When tools '#p-tools' has be used in 'Tab1' panel, it cannot be used in other panel again. Remove tools from 'Tab1' panel and below code will run fine.
$('#main-tab-bar').tabs('add',{ title:"Tab1", content: "test", tools: "#p-tools" });
3512  General Category / News / jQuery EasyUI 1.2.5 Release on: December 06, 2011, 06:20:05 PM
We are pleased to announce the availability of jQuery EasyUI 1.2.5.

  • Compatible with jQuery 1.7.x.
  • Some bugs in previous version are fixed.
  • Some useful features are added to exists plugins.

Please visit http://www.jeasyui.com/download/v125.php to see more details.
3513  General Category / EasyUI for jQuery / Re: Set URL without reloading grid on: December 06, 2011, 02:26:26 AM
Call 'load' method and pass new parameter to it:
$("#" + datagrid).datagrid('load',{
  type:'...',
  parameters:...
});
3514  General Category / EasyUI for jQuery / Re: Questions about Tabs on: December 01, 2011, 08:13:03 PM
For the portal issue, if the horizontal scrollbar is generate by tab panel, set the 'overflow:hidden' style for that tab panel:
<div id="tt" fit="true">
   <div title="Title1"></div>
   <div title="Portal Title" style="overflow:hidden">
      <div id="pp" style="position:relative">
   </div>
</div>

You can try another way: when select the portal tab panel, call 'resize' method to reset the portal size:
$('#tt').tabs({
   onSelect:function(title){
      if (title == 'Portal Title'){
         $('#pp').portal('resize');
      }
   }
});
3515  General Category / EasyUI for jQuery / Re: Questions about Tabs on: November 30, 2011, 12:33:01 AM
1) Another way to find and use a tab, users can pass the tab title or tab index. This feature will be supported in version 1.2.5.
2) In version 1.2.5, users can define mini tools on tabs. See the demo http://www.jeasyui.com/easyui/demo/tabs.html.
3) Place a portal to a tab panel, set 'fit' property to true for the portal is a good idea.
3516  General Category / Bug Report / Re: Poor performance with large row or column count on: November 28, 2011, 08:04:27 PM
Please refer to this tutorial http://www.jeasyui.com/tutorial/datagrid/datagrid2.php.

In your server, you will get 'page' and 'rows' request parameters. You should return exactly 'rows' records to browser not all records.
3517  General Category / Bug Report / Re: Poor performance with large row or column count on: November 28, 2011, 06:19:51 PM
Paging is the easiest way to manage large rows within the datagrid. Set 'pagination' property to true to allow datagrid paging.
3518  General Category / EasyUI for jQuery / Re: Messager Buttons on: November 27, 2011, 10:13:04 PM
A sample:

$.messager.alert('My Title','Here is a message!');
$('body div.messager-body>div.messager-button').children('a.l-btn').linkbutton({plain:true});
3519  General Category / EasyUI for jQuery / Re: What is the proper way to update a panel's properties? on: November 23, 2011, 06:21:24 PM
Call $('#p').panel({...}) will recreate the panel.
Call $('#p').panel(methodname, parameter) will perform action on the panel existed.
3520  General Category / EasyUI for jQuery / Re: Portal Layout within Tabs displays incorrectly on: November 21, 2011, 07:03:53 PM
The portal have 'fit' property and 'resize' method, which can be used to make it work in some container. Try set the 'fit' property to true and call 'resize' method to adjust the portal size when tab panel opened.
3521  General Category / EasyUI for jQuery / Re: Delay Ajax Loading? on: November 14, 2011, 06:44:23 PM
The panel load its content via 'href' only when the panel is opened or expanded. Set 'closed' property to true or 'collapsed' property to true to prevent the content from loading at once.
3522  General Category / EasyUI for jQuery / Re: How to use DataGrid within a Portal Layout? on: November 08, 2011, 07:53:40 PM
Try specify 'break-word' value with 'word-wrap' property for the datagrid cells:

.datagrid-body .datagrid-cell{
   word-wrap: break-word;
   white-space: normal;
}
3523  General Category / EasyUI for jQuery / Re: How to use DataGrid within a Portal Layout? on: November 04, 2011, 08:31:14 PM
When datagrid parent panel resize, try call 'resize' method for your datagrid:

Code:
<div id="pdatagrid" title="TEST" collapsible="true" closable="true" maximizable="true">
  <table width="100%" cellspacing="0" cellpadding="0" border="0" id="test-datagrid" class="easyui-datagrid">
  ...
  </table>
</div>
Code:
$('#pdatagrid').panel('options').onResize = function(){
  $('#test-datagrid').datagrid('resize');
}
3524  General Category / EasyUI for jQuery / Re: Problems with Accordion Layout on: November 01, 2011, 06:12:20 PM
Put your accordion component in separate <div> container:
Code:
Carol's Info:<br/>
<% userid = 345 %>
<div style="width:300px;height:200px;">
<!-- #include file="include/userinfo.inc"-->
</div>

Bob's Info:<br/>
<% userid = 678 %>
<div style="width:300px;height:200px;">
<!-- #include file="include/userinfo.inc"-->
</div>
3525  General Category / EasyUI for jQuery / Re: treegrid select one row on: October 30, 2011, 06:21:31 PM
Many methods of treegrid are similar to tree, please use the 'select' method:

$('#tt').treegrid('select', id);
Pages: 1 ... 233 234 [235] 236 237 ... 239
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!