EasyUI Forum
May 13, 2024, 06:14:58 PM *
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 / Can I make the grid have dynamic height depending on the number of records in it on: April 22, 2013, 08:13:41 AM
there is a empty column(should be preserved for scrollbar) if I set fit=true in a datagrid, it looks very weired.
Can I make the grid have dynamic height depending on the number of records in it, instead of a fixed height?
2  General Category / EasyUI for jQuery / Can EasyUI be compatible with jQuery2.0? on: April 18, 2013, 09:44:50 PM
jQuery 2.0 is released just now, Can EasyUI be compatible with jQuery2.0?
3  General Category / General Discussion / Re: #Datagrid# is there a way to make the width of a column expanded automatically ? on: April 12, 2013, 03:26:09 AM
Anybody can help me out?
4  General Category / General Discussion / #datagrid# using up/down key to move cursor and scroll page like gmail on: April 11, 2013, 08:01:00 PM
Like gmail,
1)when mouse is hovering over a datagrid table, user can use up/down key to move cursor up/down row by row and scroll page, go next page if cursor is moved to the last row and next page exists. go previous page if cursor is moved to the first row.
2) when mouse is not hovering a datagrid table, key events disabled.

Can anybody give me some hints to implement this function?


5  General Category / General Discussion / Re: how to show a sort name&order icon when a datagrid is successfully loaded on: April 11, 2013, 07:40:16 PM
Thank you stworthy.
I can see it works well as what I expect on the live demo.

But it looks like this does not work on my test page, what's wrong with me?
I have downloaded the updated datagrid plugin file you gave on the previous thread to my site.

here is my part html codes.

         <table id="dg-user" class="easyui-datagrid"
               title=""
               iconCls="toolabar-icon-gear"
               fit="true"   
               pagination="false"
               sortName="username" sortOrder="asc" 
               data-options="rownumbers:false,singleSelect:false,fitColumns:true,url:'ajax.user.php'"> 
            <thead> 
               <tr> 
                  <th data-options="field:'id',checkbox:true"></th> 
                  <th field="username" width="200" sortable="true">Username</th> 
                  <th field="realname" width="200" sortable="true">Realname</th> 
                  <th field="email" width="200" sortable="true">Email</th>
                  <th field="date_created" width="150" formatter="formatUnixTimeStamp" align="center" sortable="true">Date Created</th> 
                  <th field="date_last_visit" width="150" formatter="formatUnixTimeStamp" align="center" sortable="true">Last Visited</th>
                  <th field="status" width="70" align="center" formatter="formatStatus" sortable="true">Status</th>                  
               </tr> 
            </thead> 
         </table>
 
6  General Category / General Discussion / Re: #Datagrid# is there a way to make the width of a column expanded automatically ? on: April 10, 2013, 10:46:12 PM
It seems that fitColumns will assign average width to each column, right?

I need the width of 1st column is fixed, the width of 3rd column is fixed as well, but the 2nd column's width is flexible.( its' width should equal table's width - 1st column's width - 3rd column's width. its' width will be adjusted automatically according along with the table's width.)

I don't know if I have expressed my thought clearly, but maybe you can go see Gmail's email list.
7  General Category / General Discussion / #Datagrid# is there a way to make the width of a column expanded automatically ? on: April 10, 2013, 09:49:29 PM
Set fit as true,
the with of table should be 100%,

NameDescriptionDate
bakerThis is a test2013-4-11
DavidSo looooooooooooooooooooooooong descirption2013-4-11

the width of column Name is fixed, I set it as 150,
the width of column Date is fixed as well, I set it as 200,
Can the width of column Description automatically expand to left width of a table?
8  General Category / General Discussion / Re: how to show a sort name&order icon when a datagrid is successfully loaded on: April 10, 2013, 09:04:56 PM
Thanks for quick response.
Is there any updated documents or demo to guide me?
9  General Category / General Discussion / how to show a sort name&order icon when a datagrid is successfully loaded on: April 08, 2013, 09:30:40 PM
After a datagrid is successfully loaded, there is no default sort icon indicator displayed on the table header.
You need click a column of table header to see a sort icon.

my question is: can I set a default sort name&order and show a sort icon when a datagrid is successfully loaded at the first time? no need user to click the column of table header.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!