EasyUI Forum
May 21, 2024, 09:40:10 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 27 28 [29] 30
421  General Category / EasyUI for jQuery / Re: Help about resizing inside layout on: September 09, 2013, 09:18:01 AM
Thanks, but it does not work.
Actually, it does not show grid (see image).

422  General Category / EasyUI for jQuery / Re: Help about resizing inside layout on: September 09, 2013, 06:30:47 AM
Hello
here is the code which I use in the members_tree_html_west DIV :

Code:
<table id="member_type" class="easyui-treegrid" fitcolumns="true" idField="id" treeField="name" url="json/member_type.json" fit="true">
  <thead>
    <tr>
      <th data-options="field:'name'" width="200px">Name</th>
    </tr>
   </thead>
</table>

when I use above code instead of <div id="members_tree_html_west"></div> - everything works perfect.
If I use <div id="members_tree_html_west"></div> and use this code to "populate" DIV:
  $('#members_tree_html_west').html(data);
  $.parser.parse('#members_tree_html_west');

where "data" contains above code - it does not work
Thanks!
 
423  General Category / EasyUI for jQuery / Help about resizing inside layout on: September 09, 2013, 05:40:12 AM
Hi all
If I declare some treegrid inside layout, resizing works fine and table is placed inside the west layout :

Code:
  <div id="members_tree_layout" class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',split:true" title="Member type" style="width:250px;padding:1px;">
      <table id="member_type" class="easyui-treegrid" fitcolumns="true" idField="id" treeField="name" url="json/member_type.json" fit="true">
        <thead>
  <tr>
    <th data-options="field:'name'" width="200px">Name</th>
  </tr>
</thead>
     </table>
    </div> 
  </div> 

but if I declare DIV instead of table, like this:

Code:
  <div id="members_tree_layout" class="easyui-layout" data-options="fit:true">
  <div data-options="region:'west',split:true" title="Member type" style="width:250px;padding:1px;">
      <div id="members_tree_html_west"></div>
    </div> 
  </div> 


then resizing does not work, ie: treegrid stays on their size - see image.

Why is that different and how to "tell" the grid that it should follow layout panel size?
Thanks
424  General Category / EasyUI for jQuery / Re: [SOLVED] easyui.min.js problem on: September 06, 2013, 03:01:52 AM
- problem was on another part of code.
425  General Category / EasyUI for jQuery / [SOLVED] easyui.min.js problem on: September 05, 2013, 01:22:26 PM
Hi all
I have some problem (but not always) - please see image.
It is some simple treerid and it have event:
data-options="onClickRow:onClickMemberType"
which I use to track clicks.
What I can do?
Thanks.

- problem was on another part of code.
426  General Category / EasyUI for jQuery / Re: Drag and Drop in data grid on: September 05, 2013, 03:09:22 AM
Anybody, please?
427  General Category / EasyUI for jQuery / Re: Drag and Drop in data grid on: September 04, 2013, 02:09:22 AM
Hello
I saw datagrid-dnd.js (for datagrid drag/drop) : http://www.jeasyui.com/forum/index.php?topic=625.0
Drag/drop works fine, but when I click on row, it produces some kind of animation, like drag is cancelled (see attached image).
Same is here (on treegrid example) : http://jsfiddle.net/tjdG7/116/

How to disable this animation on mouse click?
Thanks.
428  General Category / EasyUI for jQuery / Re: easyui-datebox not updated on: August 28, 2013, 01:45:54 AM
It works perfect, thank you!
429  General Category / EasyUI for jQuery / easyui-datebox not updated on: August 27, 2013, 10:22:54 PM
Hi all
I have some date field on my form.
if I use input class="easyui-datebox" on the form, value of that filed is not updated.
If I use input class="easyui-validatebox" instead, everything woks fine.
Any idea why ?

Here is the code:

Code:
function			saveCalendarTask()
{
  $('#form_task_calendar').form('submit',
    {
      onSubmit: function()
      {
        return $(this).form('validate');
      },
      success: function(result){
      if (result.substring(0,5) == "Error")
        $.messager.alert('Info',result,'error');
      else
        {
          $('#dlg_calendar_task_edit').dialog('close');
        title = $('#task_title').val();
          start = $('#task_start_date').val()+" "+$('#task_start_time').val();
   alert(start);  // here I have old date if I use input class="easyui-datebox"
          if ($('#task_operacija').val()==1)
          {
          calendar_add(id,title,start,end,ccolor);
          }
        }
      }
    });
}


Thanks!
430  General Category / General Discussion / JavaScript callback on: July 29, 2013, 11:02:07 AM
Hello all
I have this code:

function  myfunc()
{
  func1();
  func2();
  func3(); 
}

I need that func2 run after func1 finished, and func3 should run when func2 is finished.
They are executed as 1,2,3 but they are not finished on that order (for example, func2 is slow and it is not returned, but func3 is already executed.
Question is - how to run those functions so that I'm sure that next function is executed only when previous function is finished?

Thanks.
431  General Category / EasyUI for jQuery / Re: Two grids, side by side on: July 28, 2013, 11:10:11 AM
OK looks like Layout is perfect solution for both questions.
432  General Category / EasyUI for jQuery / Two grids, side by side on: July 28, 2013, 10:32:28 AM
Hello all
I need to put two datagrids side by side.
Any example?

Additional, when I create grid, is it possible to define fixed width and dynamic height?
I need to put the grid inside some layout and when user resize layout height, I want that my grid also resize their height and width should stay fixed.
Thanks.
433  General Category / EasyUI for jQuery / Re: Internet Explorer 10 GPF on: June 29, 2013, 01:44:20 AM
Hello
does somewhere exists something for IE like Firebug for Firefox?
I found some Firebug lite but I can not/ I don't know how to install it.
I try to use internal IE debugger but above code make crash (GPF) before it show why is crashed ..  Grin
434  General Category / EasyUI for jQuery / Re: Internet Explorer 10 GPF on: June 28, 2013, 06:04:00 AM
I found that IE10 crashes on this line:

$('#dlg_member_type_edit').dialog('close');

any idea why?
Thanks.
435  General Category / EasyUI for jQuery / Internet Explorer 10 GPF on: June 28, 2013, 05:03:34 AM
Hi all
I have this simple code, executed under Save button:

Code:
function saveMemberType()
{
  $('#form_member_type').form('submit',
    {
      onSubmit: function()
      {
        return $(this).form('validate');
      },
      success: function(result){
      if (result.substring(0,5) == "Error")
        $.messager.alert('Info',result,'error');
      else
        {
          $('#dlg_member_type_edit').dialog('close');
          $('#member_type').treegrid('reload');
        }
      }
    });       
}

It works perfect under Chrome, Firefox and Internet Explorer 9, but under IE10 it crashes :

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   IEXPLORE.EXE
  Application Version:   10.0.9200.16618
  Application Timestamp:   51b2f318
  Fault Module Name:   MSHTML.dll
  Fault Module Version:   10.0.9200.16618
  Fault Module Timestamp:   51b30064
  Exception Code:   c0000005

Any idea why?
Pages: 1 ... 27 28 [29] 30
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!