EasyUI Forum
October 19, 2025, 09:55:32 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: edatagrid + saveUrl = how to return an error ? on: December 12, 2013, 03:29:52 AM
thank you very much
2  General Category / EasyUI for jQuery / edatagrid + saveUrl = how to return an error ? on: December 11, 2013, 09:58:21 AM
hello,

is it possible to handle errors with saveUrl ?

save_something.php :
Quote
echo json_encode(array(
  'success' => false,
  'message' => 'handle this error please, for example, display an error message to the visitor'
));
3  General Category / EasyUI for jQuery / datagrid load data after filter initialization on: December 11, 2013, 03:22:21 AM
hello,

i'd like datagrid to load my datas after filter initialization.

Quote
var filter_initialized = false;

dg.edatagrid({
  ...
  onBeforeLoad: function() { return filter_initialized; }
});

dg.edatagrid( 'enableFilter', columns );
dg.datagrid( 'addFilterRule', ... );
filter_initialized = true;
dg.datagrid( 'doFilter' );

is there a better way to do it ?

4  General Category / EasyUI for jQuery / datagrid move columns on: December 06, 2013, 03:32:14 AM
hello,

is it possible with datagrid to move the columns by dragging them ? as it is possible with datatables ?

http://datatables.net/release-datatables/extras/ColReorder/index.html
5  General Category / Bug Report / Re: conflict with bootstrap on: December 04, 2013, 05:52:31 AM
i've got a new conflict problem :]

Quote
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
    <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
  </head>
  <body>
    <table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"
            toolbar="#toolbar" pagination="true"
            rownumbers="true" fitColumns="true" singleSelect="true">
        <thead>
            <tr>
                <th field="firstname" width="50">First Name</th>
                <th field="lastname" width="50">Last Name</th>
                <th field="phone" width="50">Phone</th>
                <th field="email" width="50">Email</th>
            </tr>
        </thead>
    </table>
    <script type="text/javascript">
      $('#dg').datagrid({
        data: [
          {
            firstname: 123,
            lastname: 123,
            phone: 123,
            email: '123@456.789'
          }
        ]
      });
    </script>
  </body>
</html>

6  General Category / Bug Report / Re: conflict with bootstrap on: December 04, 2013, 03:11:06 AM
it seems to work, thanks
7  General Category / Bug Report / conflict with bootstrap on: December 04, 2013, 01:29:13 AM
hello,

i know you already know there is a conflict with bootstrap but i'm going to say it anyway :

Quote
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
  </head>
  <body>
    <div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px;"
        title="My Panel" iconCls="icon-save" collapsible="true">
      The panel content
    </div>
  </body>
</html>

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