Sigma Php Ajax framework, Ajax Components, GUI Builder
February 09, 2012, 10:14:17 PM *
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: setColumnValue error  (Read 2011 times)
humi
Hero Member
*****
Posts: 284


View Profile
« on: February 09, 2009, 06:59:49 AM »

setColumnValue is not updating the text on the grid. It will change the actual value, as seen in an editor, but not the displayed data.

I am sending data back from a customDialogEditor. With the values rownum as the row number. newvalue1 as the edited field value. I can confirm i am passing the changed value in the alert. When I view the displayed text on the grid, there isno change. However, if i enter its editor in-grid, it has been changed there.



Also, using getRecord into an array, and changing the array value for the specific column does not work. I confirm the change in an alert, but neither value changes (the in-grid editor value, or the displayed text.)

Is there a solution to this?
-humi
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #1 on: February 09, 2009, 09:10:48 AM »

It appears the solution to this is mygrid.updateEditState().

Logged
mwmconsulting
Jr. Member
**
Posts: 12



View Profile WWW
« Reply #2 on: January 22, 2010, 02:21:51 PM »

I found that mygridinstance.updateEditState(); did not work for new rows.

It had strange behaviors.

I found this worked though:

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


Hope this helps some.

- MWM
Logged

========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================
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!