EasyUI Forum
May 13, 2024, 02:26:56 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 / Re: the onRowContextMenu event of Datagrid Causes another fetch of data from server. on: September 04, 2013, 03:10:53 AM
But when I remove the context menu binding code, the extra post to the server goes off, I am using FireBug to see the post to the server, you can check in the screenshot in my first post. I will analyze it in more detail and if could found the reason will post here for others.
BTW, thanks for your usual superb cooperation.
2  General Category / EasyUI for jQuery / Re: the onRowContextMenu event of Datagrid Causes another fetch of data from server. on: September 04, 2013, 01:46:48 AM
I declared with the class="easyui-datagrid", now when I removed, it reduced one post to the server. But I am wondering why would a javascript binding (i.e. binding the context menu) should recreate the whole datagrid and cause a post back to the server it is an optimization issue.
3  General Category / EasyUI for jQuery / the onRowContextMenu event of Datagrid Causes another fetch of data from server. on: September 02, 2013, 11:22:26 PM
I am trying to put a context menu to a datagrid but the event causes another POST method to the server. My Javascript for putting context menu is as following:

Code:
$(document).ready(function() {
$('#dg').datagrid({
onRowContextMenu:function(e, field){
e.preventDefault();
$('#mm').menu('show', {
left: e.pageX,
top: e.pageY
});
}
});
});

I have tried the above javascript in the onLoadSuccess event of Datagrid, but still the same. Attached you can see in the firebug which shows two post to get JSON data.

Please help! Smiley
4  General Category / General Discussion / Insert a Row in a Datagrid without mentioning column names on: August 12, 2013, 10:17:43 PM
I want to add a row into a datagrid without mentioning the Column names. Right now I can Insert a row by using the following syntax:

$('#dg').datagrid('insertRow',{
   index: 1,   // index start with 0
   row: {
      name: 'new name',
      age: 30,
      note: 'some messages'
   }
});


But I want it to be like the following:

$('#dg').datagrid('insertRow',{
   index: 1,   // index start with 0
   row: {
      'new name',
      30,
      'some messages'
   }
});

I want this feature to create a function which should be able to dynamically add sub totals to as many columns of a datagrid as I give it as a parameter.

Or, please show me how to add an array to a row of a datagrid like following:

var varRow = new Array ('new name', 30, 'some messages');

$('#dg').datagrid('insertRow',{
   index: 1,   // index start with 0
   row: { varRow }
});
5  General Category / General Discussion / Re: Datagrid row navigation with up and down arrow keys on: August 12, 2013, 10:01:11 PM
Thank you very much! So far enjoying your superb works!  Smiley
6  General Category / General Discussion / Datagrid row navigation with up and down arrow keys on: August 01, 2013, 12:53:37 AM
I want to have the functionality of scrolling/navigating through the datagrid records by using the keyboard up & down arrow keys like you can do in MS Excel. If anyone knows how to implement this, please guide me.
7  General Category / General Discussion / Re: #datagrid# using up/down key to move cursor and scroll page like gmail on: August 01, 2013, 12:52:15 AM
Could you find a solution for this? I am in need of such a feature as well?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!