Sigma Php Ajax framework, Ajax Components, GUI Builder
February 12, 2012, 12:27:14 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: getColumnValue, setColumnValue not working on new rows  (Read 2062 times)
suppau
Jr. Member
**
Posts: 11


View Profile
« on: January 13, 2009, 11:08:31 PM »

Hi, getColumnValue, setColumnValue are not working on new rows.. the data must have not been added to the columnlist when new row is created..

The data is null for getcolumn and setcolumn doesn't set the intended column value. Therefore any dynamic data function cannot be implemented on new rows.

Can rectify the problem?

Thanks
Logged
nerovee
Jr. Member
**
Posts: 5


View Profile
« Reply #1 on: January 14, 2009, 10:07:05 AM »

Try with this:

var grid2=Sigma.$grid(grid_details_id);
grid2.setContent([record]);
Logged
suppau
Jr. Member
**
Posts: 11


View Profile
« Reply #2 on: January 14, 2009, 05:32:52 PM »

The data needs to be dynamic based on user input. I cant get getColumnValue to work so there's no point in setting the value of the whole row.

1 other way is to use our own "add new row" function on separate tables.. After inserting the data using our own function, then sigmagrid can do the other functions to update and delete...

That might be the best way for now...
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #3 on: January 15, 2009, 05:17:58 AM »

Yes, the problem is that the grid is not capable of reading user input rows until it is saved. I also had this problem. It would be nice to have in a new version.
Logged
misicom
Newbie
*
Posts: 4


View Profile
« Reply #4 on: June 18, 2009, 03:13:38 PM »

in what version do you expect this option be available ?
Logged
mwmconsulting
Jr. Member
**
Posts: 12



View Profile WWW
« Reply #5 on: January 22, 2010, 02:22:52 PM »

I found that this worked for me:

afterEdit: function() {
    this.activeRecord.<column_name> = <value>;
    this.refresh();
}


Hope this helps...

- MWM
Logged

========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================
gururaj
Newbie
*
Posts: 3


View Profile
« Reply #6 on: June 22, 2010, 06:38:01 AM »

i found one solution which is as follows:

/*********************/
mygrid.setColumnValue("customer",mygrid.activeRecord,mygrid.refresh();.rowIndex);
mygrid.refreshRow(mygrid.activeRow);

/*********************/

may help some one who is in need of this solution.
« Last Edit: June 23, 2010, 07:35:23 AM by gururaj » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!