Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:21:21 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Visual GUI Builder & Library
>
Sigma Visual - Q&A
(Moderators:
steven
,
linb
) >
How to select dirtied rows in treeGrid?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to select dirtied rows in treeGrid? (Read 601 times)
gikotim
Sr. Member
Posts: 49
How to select dirtied rows in treeGrid?
«
on:
February 01, 2010, 08:11:17 AM »
Hi, I try to select rows in a treeGrid which has been modified. I know that the getUIValue and getValue would show it, but I don't know of how to access this information.
Can you show me how to find out which rows have changed?
Thanks for your help.
Logged
linb
Administrator
Hero Member
Posts: 435
Re: How to select dirtied rows in treeGrid?
«
Reply #1 on:
February 01, 2010, 04:28:48 PM »
// get grid's profile var gridprofile=grid.get(0); // To collect rows' id var rows=[]; _.each(gridprofile.rowMap,function(row){ _.each(row.cells,function(v){ if(v._value!==v.value){ rows.push(row.id); return false; } }); });
Logged
gikotim
Sr. Member
Posts: 49
Re: How to select dirtied rows in treeGrid?
«
Reply #2 on:
February 02, 2010, 12:58:48 PM »
Thanks, but it marks every row as unequal!
The reason is that the fields show:
_value = "1"
value = 1
This is after loading the data into the treegrid without changing anything.
This is only true if the column is defined as "number".
Is this a bug?
Many thanks for your help!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...