EasyUI Forum
April 27, 2024, 01:25:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 3 [4]
46  General Category / Bug Report / Re: Dialog buttons on: April 18, 2012, 05:56:29 AM
Hi Xiaolin

I've tested this on my server and did not see any issues with 1.2.5. The code I used to test with is below (similar to the demo software). I've also tested this with jQuery 1.7.1 without any issues.

<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta name="keywords" content="jquery,ui,easy,easyui,web">
   <meta name="description" content="easyui help you build your web page easily!">
   <title>Create Dialog - jQuery EasyUI Demo</title>
   <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://code.jquery.com/jquery-1.6.1.min.js"></script>
   <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
<body>
   <h2>Create Dialog</h2>
   <div id="dd" class="easyui-dialog" style="padding:5px;width:400px;height:200px;"
         title="My Dialog" iconCls="icon-ok" minimizable="true" maximizable="true" collapsible="true" closable="true"
         toolbar="#dlg-toolbar" buttons="#dlg-buttons">
      Dialog Content.
   </div>
   <div id="dlg-toolbar">
      <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:alert('Add')">Add</a>
      <a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="javascript:alert('Save')">Save</a>
   </div>
   <div id="dlg-buttons">
      <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:alert('Ok')">Ok</a>
      <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dd').dialog('close')">Cancel</a>
   </div>
</body>
</html>
47  General Category / EasyUI for jQuery / Re: Adding custom data to a form on: April 13, 2012, 04:10:38 PM
Hi Peter

I've done something similar but I just sent this data as part of the url post. ie.

url = 'PHP/update_data.php?part=0&user=1001&status='+row.status;

The framework will append your form data to this. Of course, if your data is a lot more complexed, you could send a $.post after receiving a success to your form data.
48  General Category / EasyUI for jQuery / Re: Matching column width with data-column width automatically on: April 05, 2012, 06:20:06 PM
 Actually I am contributing constructively towards the problem at hand or do you have a guilty conscience to what I’m saying? I really think that the only way to solve this is by having the source code at hand and having the interface with the developer, which is afforded to you when you purchase the commercial license. I don't believe that the column header has been designed not to take a width parameter, hence the problems you are getting. But with the source, it might become a simple procedure to forward calculate the max column width and apply this.
49  General Category / Bug Report / Re: Bug in form load (checkbox) on: April 04, 2012, 08:54:32 PM
Hi Anton

I don't think this is a bug. You have defined your value as a string (value="true"). In the same way you could define this as value="1". Thus to set the check box, you would have;
   $('#ff').form('load',{
      is_active:'1'
   });

Technically there is no boolean type true in HTML, which might be confusing you.
50  General Category / EasyUI for jQuery / Re: Datagrid with variable number of columns on: April 04, 2012, 04:40:29 AM
Hi lusabo

I agree with mzeddd response. Just hide/unhide columns, but it you want to add/remove column, just reinit the datagrid. I'm sure there are better ways to do this, but you should get the idea from the example;
var menuStruct = [];
var menuItems = [];
var menuItem1 = {
   field: 'field1',
   title: 'Title1',
   width: 100
}
var menuItem2 = {
   field: 'field2',
   title: 'Title2',
   width: 105
}

function insertCol() {
   menuStruct.pop();
   menuItems.push(menuItem2);
   menuStruct.push(menuItems);

   $('#myDatagrid').datagrid({
      columns: menuStruct
   });
}

$(function () {
   menuItems.push(menuItem1);
   menuStruct.push(menuItems);

   $('#myDatagrid').datagrid({
      columns: menuStruct,
      fit: false,
      width: 370,
      nowrap: false,
      striped: true,
      collapsible: true,
      url: url
   });
}

To delete a column means you need to remove the menu object from the menuItems array and reinit the datagrid.
51  General Category / EasyUI for jQuery / Re: Matching column width with data-column width automatically on: April 04, 2012, 04:21:54 AM
Hi Swader

It really does not make sense to say you will get management to approve budget to purchase a commercial license after your development has been completed. By purchasing the license, you will get full source code and 1 months support. I don't know what your hour rate is, but surely you could be wasting more by not purchasing the framework.

Take the plunge and support jeasyui. Like all of us, he needs the financial support. After all, he has developed an amazingly easy framework and we would like to see him continue developing this.
52  General Category / EasyUI for jQuery / Re: moving a tab panel vs setting display to none for a deselected panel. on: April 04, 2012, 03:20:35 AM
Hi Carl. I had a similar issue. I just could not find these class selectors. In the end I solved this by calculating page relevant information when the tab was selected. This technique works perfectly. (I had a problem where the accordion height was not being displayed correctly in the hidden tab).

   $("#centerTabs").tabs({
      "onSelect": function (title) {
         if (title == "Replay") {
            //fix the accordion height
            var hAccord = $('#divSearchTrackInfo').parent().height();
            var hSearch = $('#divSearchTrackInfo').height() + 4;
            $('#accordSize').height(hAccord - hSearch);
         }
      }
   });
Pages: 1 2 3 [4]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!