Sigma Php Ajax framework, Ajax Components, GUI Builder
May 17, 2012, 01:09:48 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: how to add values to new row  (Read 1304 times)
gururaj
Newbie
*
Posts: 3


View Profile
« on: June 21, 2010, 02:30:33 AM »

Hi All,

  I have one requirement, initially there are no rows in grid,i need to create new row,now i have to enter data for col 1,then after edit col2 value should be populated based on col 1.but i am getting error at
  " updateRecord:function($,F,C ", can any one let me know the solution for this issue.thx for your wonderful grid.

Logged
gururaj
Newbie
*
Posts: 3


View Profile
« Reply #1 on: June 21, 2010, 04:54:07 AM »


Hi,

i got the solution , i was sending row index,but need to pass active record,this code works for any version
hope so. 

/*********************/
var row = mygrid.activeRow;
mygrid.setColumnValue("customer",mygrid.activeRecord,row.rowIndex);
mygrid.refresh();
/*********************/

thanks Sigma team.
Logged
AlsonSmith
Newbie
*
Posts: 1



View Profile
« Reply #2 on: March 20, 2011, 11:43:40 PM »

Gone through the tutorial but my connections are making some problem...Will check this once more.
Logged

rfaes
Full Member
***
Posts: 23


View Profile
« Reply #3 on: May 03, 2011, 01:08:35 AM »

i would not refresh the whole grid.
i would use this:
"grid.refreshRow(grid.activeRow);"

i hade some issues when i was refreshing the whole grid.
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!