Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid.getEditedRecord / getRecord behaviour change with 4.0p

$
0
0
Hello,

We upgraded our application from 3.1p to 4.0p (NIGHTLY-2013-08-26) and had some issues with our custom code. The culprit was a change in the logic how 4.0p version acts when calling ListGrid's getEditedRecord and getRecord in series.

We have some code acting on edited list grid rows calling as follows:

Code:

    Record edited = grid.getEditedRecord(row);
    Record actualRecord = grid.getRecord(row);
    ...

Running this code on 3.1p returns the records as separate objects. After upgrading to 4.0p it seems that the first row works as expected but calling the getRecord(row) method afterwards returns the same Record object but ofcourse loses the edited attributes from the object. Our code fails as the edited variable does not hold the edited attributes anymore.

We can easily go around this issue but we thought about asking if this is really intentional ?

Thanks,
Marko

Viewing all articles
Browse latest Browse all 4756

Trending Articles