EasyUI Forum
April 27, 2024, 03:38:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Toolbar at bottom of a datagrid  (Read 15587 times)
Fabrice
Jr. Member
**
Posts: 62


View Profile
« on: September 01, 2014, 08:03:13 AM »

how can i display a toolbar at bottom of datagrid?
Logged
Kevin
Jr. Member
**
Posts: 52


View Profile Email
« Reply #1 on: September 15, 2014, 05:58:55 PM »

This is more of a hack but does work. You need to move the toolbar div after the datagrid div once the datagrid has been generated. This can be done in the onLoadSuccess event. ie

Code:
$('#dg').datagrid({
   onLoadSuccess: function(){
      $("#toolbar").insertAfter("#myid .datagrid-view");
   }
});

...

<div id="myid">
   <table id="dg" toolbar="#toolbar" ></table>
   <div id="toolbar"></div>
</div>
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #2 on: September 16, 2014, 07:15:45 AM »

thank you for this reply but it seem not to work for me maybe because i build datagrid by code and not by html,
I need a toolbar at top of datagrid and a footbar at bottom

i found a solution not very funny : i set pagination:true and then $('.pagination-info').replaceWith($(myfootbar));

better solution will be an option like 'footbar':
 
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #3 on: September 18, 2014, 06:48:06 AM »

In fact, in my application i have multiple pages with more than one datagrid on each et it's very hard to add layouts for all theses pages, that's why i have extend datagrid to do somes tasks automaticaly and it will be better for me to have an options 'footbar:' like toolbar, this footbar should be in place of pager.
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #4 on: September 18, 2014, 07:20:29 PM »

try to refer to this demo http://www.jeasyui.com/easyui/demo/datagrid/custompager.html
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #5 on: September 20, 2014, 06:25:21 AM »

I know this demo but i don't want pagination, simply a footbar with customs buttons and informations
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #6 on: September 29, 2014, 09:54:50 PM »

now, i need achieve this..make a toolbar that appear on bottom and without pagination,........

mmmmmmm
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #7 on: October 04, 2014, 05:51:00 AM »

The example below shows how to add a footer bar to the datagrid panel.
http://jsfiddle.net/2d7j3ft9/
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #8 on: October 05, 2014, 04:23:21 AM »

Thank's, it's perfect,very good job.
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #9 on: October 17, 2014, 02:41:24 AM »

It seem that footbar become invisible when resize pane!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!