EasyUI Forum
May 16, 2024, 03:38:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2]
16  General Category / EasyUI for jQuery / change table header in runtime on: December 09, 2014, 05:56:15 AM
I had a table with the following header;

<thead> 
            <tr> 
               <th field="descp" width="30%" >description</th> 
               <th field="quan" width="16%" align='right'>quantity</th>
            
            </tr>   
</thead> 

How can I change to 2nd column header title (during runtime) from 'quantity' to, say 'amount'?

thanks,
Mak
17  General Category / EasyUI for jQuery / table width in percent on: November 15, 2014, 09:10:04 PM
Dear All;

I tried to specify the width of table in percent, like 'width:100%' as below:

<table id="currSS"  class="easyui-datagrid" style="width:100%;height:150px" 
            url="curr_ss.php?hdr=plee"   pagination="false" idField="descp" 
            rownumbers="false" fitColumns="true" singleSelect="true" showFooter="true"
          > 

The width of table turns out to be 100pixels, instead of the 100%  of browser width, please tell me how to specify the width of table to 100% of browser width.

Thanks,
mak
18  General Category / EasyUI for jQuery / 'onLoadSuccess' function of the datagrid on: November 22, 2013, 11:57:42 PM
Why is there no alert box pop up after the table being populated?Huh?

<table id="newcases"  class="easyui-datagrid" style="width:350px;height:270px" 
            url="load_data.php"   pagination="false" idField="ym" 
            rownumbers="false" fitColumns="true" singleSelect="true" showFooter="true"
            onLoadSuccess:function(data){alert("load ok");}
            onLoadError:function() {alert("load fail");} > 
            <thead> 
            <tr> 
               <th field="ym" width="25%" >Month</th> 
               <th field="newc" width="25%" align='right'>Brand New</th>
               <th field="evanc" width="25%" align='right'>From Old</th>
               <th field="ttl" width="25%" align='right'>Total</th>
               
            </tr>   
            </thead> 
         </table> 
19  General Category / General Discussion / unexpected datagrid behaviour after reload on: March 03, 2013, 08:09:51 AM
In a datagrid, I write an 'afterEdit' event handler, why the reloaded grid did not reflect the change in row data?

     onAfterEdit: function(rowIndex, rowData, changes) {
            
       // reload the grid
        $('#dg').edatagrid('reload');
       // select back the row
        $('#dg').edatagrid('selectRow', rowIndex);
               
       // fetch that row from the updated grid
   var row = $('#dg').edatagrid('getSelected');
   alert(rowData.tx);  // show the new updated value
   alert(row.tx);        // show the old value!!!
     }
20  General Category / General Discussion / Re: access text value in combobox on: February 14, 2013, 07:22:45 PM
is the variable 'items' an array?
I try alert(items[0]), it display [object object]. How can I display the content?
21  General Category / General Discussion / Re: access text value in combobox on: February 13, 2013, 12:55:36 AM
How to get the array of items in the combobox? the following did not work:

$var =  $('#cc').combobox('getData').data;
22  General Category / General Discussion / access text value in combobox on: February 11, 2013, 03:17:03 AM
How to access the text of, say, 3rd element of the combobox value? the following not work.

$var =  $('#cc').combobox('getData').data;
alert($var[1][2]);

thanks.
23  General Category / EasyUI for jQuery / index of the selected row in edatagrid on: January 22, 2013, 08:38:39 AM
Hi experts;

To edit the selected row in a datagrid, we need the selected row index. What to be put in the __________ parameter in the following call to fulfil the purpose?

function edit_row() {
   var row = $('#dg').edatagrid('getSelected');
   if (row) {
      $('#dg').edatagrid('editRow',__________);
   }
}

thanks.
24  General Category / EasyUI for jQuery / number of rows in datagrid on: January 21, 2013, 07:43:37 AM
Hi expert;

The easyui document mentioned that the 'data' property of the datagrid is an array object, however, I cannot get the size of this data array by issuing:

var arr = $('#dg').datagrid('options').data;
alert(arr.length); 

How can I achieve the goal?

thx
25  General Category / EasyUI for jQuery / left click datagrid header on: December 23, 2012, 01:12:57 AM
Dear Everybody;

What event will fire when user 'left' click the header of datagrid? Seems it is not available from the documentation.

Mak
26  General Category / EasyUI for jQuery / get the url property string of the datagrid on: December 21, 2012, 09:34:25 AM
Hi everybody;

How can I get the value of url property in a datagrid, say #dg?

$('#dg').url  did not work.


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