Sigma Php Ajax framework, Ajax Components, GUI Builder
February 09, 2012, 10:50:11 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 Grid
>
Sigma Grid - Q&A
(Moderators:
steven
,
gbolanoscruz
) >
Using method getCell()...
Pages: [
1
]
« previous
next »
Print
Author
Topic: Using method getCell()... (Read 945 times)
cbd
Full Member
Posts: 30
Using method getCell()...
«
on:
June 11, 2010, 03:45:36 PM »
Hi, I've some troubles trying to use this method.
Well, I add a new record to the dataset (just one for testing) without saving to the backend and then
I try the following code:
...
beforeSave : function( requestParameter ) {
var ret = true;
requestParameter.insertedRecords.each( function(valor, indice ) {
if( valor.personal_id == 0 ) {
alert("Message.");
var myTD = mygrid.getCell(indice, 'personal_id'); <--------
CRASH HERE
mygrid.focusCell(myTD);
...
Note:
I'm also using prototype framework, so I use method each() to iterate loops on arrays.
Indice is equal to row number in the dataset.
Well, I get an error in line marked above...
Question: Am I using the method in a right way or not?
Thanks
CBD
«
Last Edit: June 11, 2010, 08:16:59 PM by cbd
»
Logged
cbd
Full Member
Posts: 30
Re: Using method getCell()...
«
Reply #1 on:
June 14, 2010, 05:04:59 PM »
I discovered that it is not possible to do this on inserted records.
All I need to do is to get a focusCell on a certain field not matching the right value when the record or the records are sent to the bakend.
On updated records it's working perfectly.
It's a pity not to be able to work on inserted records for me because I need to check several values programmatically when the data is saved, and get the cell with the wrong value focused in case of exist one.
Anyone kwows some trick to do this job?
Thanks
«
Last Edit: June 15, 2010, 09:19:08 AM by cbd
»
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...