EasyUI Forum
May 15, 2024, 11:07:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 147 148 [149] 150 151
2221  General Category / EasyUI for jQuery / Re: Add item to combobox on: June 27, 2014, 11:43:23 PM
You could prepare all the data items and then call 'loadData' method to re-bind the new data.
Code:
var data = $('#cc').combobox('getData');
data.push({id:'idvalue',text:'textvalue'});
$('#cc').combobox('loadData', data);
2222  General Category / Bug Report / Re: datagrid virtual scrolling not working in IE8 on: June 27, 2014, 11:37:11 PM
Please download the newest 'datagrid-scrollview.js' file from http://www.jeasyui.com/extension/datagridview.php
2223  General Category / EasyUI for jQuery / Re: disabling tab user click on: June 26, 2014, 06:50:29 PM
Please add the style below to the page to prevent from greying the tab title.
Code:
<style>
.tabs-disabled{
  opacity:1.0;
}
</style>
If you do not want the user to select all the tabs, you can hide the tabs header.
Code:
$('#tt').tabs({
  showHeader:false
});
2224  General Category / EasyUI for jQuery / Re: disabling tab user click on: June 26, 2014, 06:39:46 PM
Please call 'disableTab' method to disable a special tab panel. When a tab panel is disabled, users can not click to select it but this tab panel still can be selected by calling 'select' method.
Code:
var t = $('#tt');  // the tabs object
t.tabs('disableTab', index);  // disable the special tab panel
t.tabs('select', index);  // select this tab panel again
2225  General Category / EasyUI for jQuery / Re: DataGrid Detailview + ajax on: June 25, 2014, 05:38:20 PM
The 'detailFormatter' function only provide the detail content container. You can append any contents to this container.
2226  General Category / EasyUI for jQuery / Re: Buddhist Era for EasyUi on: June 25, 2014, 05:30:24 PM
If you only want to use the datepicker plugin of jQuery UI with EasyUI, yes, they can work together. You can find the example here:
http://jsfiddle.net/qX26t/
2227  General Category / EasyUI for jQuery / Re: Buddhist Era for EasyUi on: June 25, 2014, 03:35:40 AM
Some conflicts may occur when using easyui with jQuery UI together. Please try to use the datebox plugin of easyui.
2228  General Category / EasyUI for jQuery / Re: combo boxes not selected when form loads on: June 22, 2014, 06:31:05 PM
When calling 'load' method to load form combobox, the 'setValue' method of combobox will be called to set the combobox with new value, the related item of drop-down will be selected too.
Please see this example http://jsfiddle.net/YBhB9/.
2229  General Category / Bug Report / Re: datagrid - frozen columns and row filter IE8 datagrid header bug on: June 19, 2014, 08:55:21 PM
Make sure that you are using the newest datagrid-filter.js file. If not please update this newest file to your page. After that, if your issue continues, please provide an example to demonstrate your issue.
2230  General Category / EasyUI for jQuery / Re: How can I use linkbutton in datagrid fomatter on: June 19, 2014, 12:31:43 AM
After update a row, you need to call .linkbutton() to create the linkbutton again.
Code:
$('#dg').datagrid('getPanel').find('a.easyui-linkbutton').linkbutton();
2231  General Category / EasyUI for jQuery / Re: How can I use linkbutton in datagrid fomatter on: June 18, 2014, 08:58:10 AM
The 'formatter' function only returns the formatted string. This function can't create any components automatically. You have to construct them manually. Please try to call .linkbutton(...) when loaded data successfully.
Code:
$('#dg').datagrid({
  onLoadSuccess:function(){
    $(this).datagrid('getPanel').find('a.easyui-linkbutton').linkbutton();
  }
});
2232  General Category / EasyUI for jQuery / Re: how to filter datagrid by all columns from one search field on: June 18, 2014, 08:52:55 AM
The local searching is similar to this tutorial. All you need to do is to filter the 'data' and call 'loadData' method to render the new rows. Please see the 'doSearch' function to learn how to achieve this functionality.
Code:
function doSearch(q){
    var rows = [];
    $.map(data, function(row){
        for(var p in row){
            var v = row[p];
            if (String(v).indexOf(q) >= 0){
                rows.push(row);
                break;
            }
        }
    });
    $('#dg').datagrid('loadData', rows);
}
2233  General Category / EasyUI for jQuery / Re: how to filter datagrid by all columns from one search field on: June 17, 2014, 07:56:32 PM
Here is the tutorial shows how to add search functionality.
http://www.jeasyui.com/tutorial/datagrid/datagrid24.php
2234  General Category / Bug Report / Re: Datagrid pagination and appendRow on: June 17, 2014, 09:17:47 AM
The appendRow method append a new row to the current page. To append to other page, you have to change the grid page before calling this method.
2235  General Category / EasyUI for jQuery / Re: Drag and Drop on: June 15, 2014, 03:22:23 PM
You have to use draggable and droppable plugins to achieve this functionality manually.
Pages: 1 ... 147 148 [149] 150 151
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!