Problems with grids (standard and DevExpress).


Author
Message
Peter Jones
Peter Jones
Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)Advanced StrataFrame User (504 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi,

As you may remember I'm trying to add code to my BO that will automatically save dirty records as the user moves between rows. I still haven't worked out how to do this when new records and broken rule records are involved and I thought I would see what happens when the StrataFrame navigation bar is used. Doing that test raises the following issue.

I'm using the SF DevExpress Maint Form and, except for a little bit of code in the set defaults area, there is no code in the BO or form. The BO's AcceptRowChangesMode is set to AcceptAfterRowSaved and SetDirtyOnEdit is set to True.

When I open the form the Navigate, Add and Delete works ok. I then closed the form and opened it again. I click Edit but the Save/Undo buttons remain greyed out and, If I make changes, they remain greyed out and I cannot save the changes. If I add a record the Save button is active and when I click Save the new record it is created and my previous edits are also saved. This seems like vanilla processing so maybe I'm missing a configuration step.

I then added the DevExpress embedded navigator which doesn't have an explicit Save button but it does have an 'end edit' which I presume is the same thing. I made couple of changes and the 'end edit' button wasn't greyed out but when I clicked it the changes were not saved. Are you able to confirm if the 'end edit' button should work the same as Save on the SF navigation bar.

Just carrying on from this I created a standard SF maintenance form with a standard Windows Data Grid and dropped the BO on it that I used in the DevExpress tests. I open the form and click the ">" navigation button twice but there is no change on the screen, i.e. focus didn't change to the third record. I then click Delete and third record is deleted. So the current row focus had changed in the grid but it wasn't reflected on the screen.

I closed the form and reopened it. I click on the second row and change a value and click Save. The value then reverts to its original value and I check what was sent to the database and it was an update to the first row (nothing was changed on the row).

At this stage I thought it best to wait your advice. Am I doing something fundementally wrong? Clearly other users can't be seeing these problems else you would be inundated with support calls.

I'm using the latest SF and DevExpress releases.

Cheers, Peter

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search