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?
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
>
Bug Report & Wishlist
(Moderator:
steven
) >
setColumnValue error
Pages: [
1
]
« previous
next »
Print
Author
Topic: setColumnValue error (Read 2011 times)
humi
Hero Member
Posts: 284
setColumnValue error
«
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.
alert("rownumber:" + rownum + "\n Info:" + newvalue1); mygridinstance1.setColumnValue('description',rownum,newvalue1);
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
Re: setColumnValue error
«
Reply #1 on:
February 09, 2009, 09:10:48 AM »
It appears the solution to this is mygrid.updateEditState().
var mygrid1_id = "mygrid1Grid"; var gridOption={ id : mygrid1_id, ect...ect... } var mygridinstance = new Sigma.Grid( gridOption ); // in the onclick function for custom dialog editor: // ie: <input type='button' value='OK' onclick=' finishDialog(rownum,newval1,newval2 ); '> function finishDialog(rownum,newval1,newval2){ mygridinstance.setColumnValue('description',rownum,newvalue1); mygridinstance.setColumnValue('from',rownum,newvalue2); // updates all changed cells. mygridinstance.updateEditState(); // closes dialog box Sigma.$grid('mygrid1Grid').activeDialog.confirm(); }
Logged
mwmconsulting
Jr. Member
Posts: 12
Re: setColumnValue error
«
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
« 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...