EasyUI Forum
September 11, 2024, 08:30:02 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 148 149 [150] 151 152
2236  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/
2237  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.
2238  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/.
2239  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.
2240  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();
2241  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();
  }
});
2242  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);
}
2243  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
2244  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.
2245  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.
2246  General Category / EasyUI for jQuery / Re: changing datagrid column title on: June 12, 2014, 03:12:28 PM
To update and apply column properties, you have to recreate datagrid with the new columns.
Code:
var dg = $('#dg');
var columns = dg.datagrid('options').columns;
columns[0][2].title = 'new title';  //change columns ...
dg.datagrid({columns:columns});  // recreate datagrid
2247  General Category / Bug Report / Re: destroyRow bug in edatagrid mode using pagination on: June 11, 2014, 09:17:02 AM
Please confirm if you are using the latest edatagrid plugin. If not, please download it from http://www.jeasyui.com/extension/edatagrid.php.
2248  General Category / Bug Report / Re: Datagrid row filter on: June 10, 2014, 08:49:45 AM
Please download the latest 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php. You may need to override the filter operators. The operator code looks like this:
Code:
$.extend($.fn.datagrid.defaults.operators,{
less: {
text: 'Less',
isMatch: function(source, value){
return source < value;
}
}
})
2249  General Category / EasyUI for jQuery / Re: Confirmation dialog on panel onBeforeClose on: June 09, 2014, 06:31:37 PM
All the $.messager functions work in async mode. This means that the user can't block it before doing any more. To make the confirm message window works like a native confirm window in 'onBeforeClose' event, please try the code below:
Code:
$('#win').window({
  onBeforeClose:function(){
    var p = $(this);
    $.messager.confirm('Confirm','Are you sure you want to close?',function(r){
      if (r){
        var opts = p.panel('options');
        var onBeforeClose = opts.onBeforeClose;
        opts.onBeforeClose = function(){};
        p.panel('close');
        opts.onBeforeClose = onBeforeClose;
      }
    });
    return false;
  }
})
2250  General Category / General Discussion / Re: last selected on combobox on reload on: June 07, 2014, 05:44:42 AM
If a data item has 'selected' property set to true, it will be selected when loaded successfully. All you need to do is to set 'selected' property for the specified item from your returned json data. Look at the following data, the 'Ruby' item will be selected since its 'selected' property is set to true.
Code:
[{
"value":1,
"text":"Java"
},{
"value":2,
"text":"C#"
},{
"value":3,
"text":"Ruby",
"selected":true
}]
Pages: 1 ... 148 149 [150] 151 152
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!