EasyUI Forum
September 14, 2025, 03:13:51 AM *
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: getNode on tree node does not return correct object on: November 22, 2013, 04:45:55 AM
Great! It works as expected, thank you.
2  General Category / EasyUI for jQuery / getNode on tree node does not return correct object on: November 21, 2013, 06:42:49 AM
Hi there,
I'm having some troubles with object returning from getNode method on tree widget:

This is not working:
Code:
var nodeid = 23; // This node exists, of course
var node = $('#SomeTree').tree('getNode', nodeid);
$('#SomeTree').tree('uncheck', node.target); // This trows an error "Uncaught TypeError: Cannot call method 'replace' of undefined "

And this works:
Code:
var checked = $('#SomeTree').tree('getChecked');
$('#SomeTree').tree('uncheck', checked[0].target); // This unchecks that node of checked[0]

What am I doing wrong?

Thanks in advance,
Juan
3  General Category / EasyUI for jQuery / Re: Deleting rows in a grid with multiple IDs on: July 25, 2013, 07:25:24 AM
Thanks! It worked like a charm.
4  General Category / EasyUI for jQuery / Deleting rows in a grid with multiple IDs on: July 24, 2013, 04:46:27 AM
Hi,

I've some grids where I have more than one ID field. For example, one of my grids has a column called order_id and another one called order_item_id (both fields are part of the PK of my order_items table in the backend). The values for those two columns must be sent to the server when I want to delete a row but, in the standard grid definition, I can only use one field as "idField".

Which is the best way to handle row deletions on tables where there's more than one idField?

Thanks in advance.
5  General Category / EasyUI for jQuery / Re: Re-apply formatter in one cell on: June 11, 2013, 02:35:10 AM
Thank you, I'll try with this option.
6  General Category / EasyUI for jQuery / Re: Re-apply formatter in one cell on: June 10, 2013, 09:37:10 AM
Thank you for your response,

Yes, this is great to include the formatter at the declaration of the table grid.

But we meant if we can change the cell by calling the formatter "in real time" not just in the declaration of the datagrid, is this possible?

For example, if we are in editing mode, we need to change one specific cell only when other cell has changed by selecting an item in its combobox.
How do we call the formatter in that case?
7  General Category / EasyUI for jQuery / Re-apply formatter in one cell on: June 10, 2013, 06:33:10 AM
Hello,
Could we re-apply a cell formatter in a particular case when some conditions happen in other cells?

For example, using your edatagrid inline editing example, if user selects someting in a selectbox in the first field of that row, we would like to apply formatter to the last cell (p.e. putting text in red).

Thanks in advance

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