EasyUI Forum
November 04, 2025, 09:14:53 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 / 'scrollTo' method is not working in datagrid on: November 08, 2013, 12:25:04 AM
I'm using 1.3.3 and the scrollTo method of datagrid is not working at all.

my source code is
Code:
function reloadGrid() {
    $('#dg').datagrid('scrollTo', 18);
}

the 'dg' is datagrid id and pagesize is 20. but nothing happens when I click the reload button to call reloadGrid().
Did i use this method wrong?
2  General Category / EasyUI for jQuery / Button group help on: June 28, 2013, 12:28:39 AM
I'm new to javascript and easyui and I run into this little problem when using easyui to build some webpages.
I wanna use the  Button Group extended from linkbutton.
and the code is like this:

<a href="javascript:void(0)" class="easyui-linkbutton" data-options="toggle:true,group:'g1',plain:true" iconCls="icon-redo" onclick="someMethod()" id="g1left">toggle1</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="toggle:true,group:'g1',plain:true" iconCls="icon-undo" onclick="someMethod(2)" id="g1right">toggle2</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true" iconCls="icon-redo" onclick="someMethod(3)" id="g2left">toggle3</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="toggle:true,group:'g2',plain:true" iconCls="icon-undo" onclick="someMethod(4)" id="g2right">toggle4</a>



and what i wanna do is, when click different button, I can filter different data to the datagrid.
So my question is how do I get which button is selected in the two button groups?
I tried some js code and they didn't work.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!