Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Update Event for a calculated unbound Column in Grid #48

Closed
thomasfritz opened this issue Jul 12, 2013 · 8 comments
Closed

Update Event for a calculated unbound Column in Grid #48

thomasfritz opened this issue Jul 12, 2013 · 8 comments
Assignees
Labels

Comments

@thomasfritz
Copy link

I try to update a unbound column in the grid when a cell-value of this row has changed. I don't want to save the updated data to the datasource. I only want to show the calculated data in the unbound column.

Grid definition:

griddefinition

Datasource definition:

datasource

Column definition (the calculation works on data load right, but additional it should work at row update):

columndefinition

Thank you!

@ChristianWeyer
Copy link

This is currently a showstopper in a project - any ideas anybody?

@burkeholland
Copy link
Contributor

Hey guys - can you replicate this in Plunker for me? That way Pierre and I will have a good baseline to start from.

@ghost ghost assigned passelin Jul 19, 2013
@thomasfritz
Copy link
Author

Here is the demo:

http://plnkr.co/edit/RvHCNo8NV0i0QFAdDX4D

The unbound column should calculated then a value in the "Geburt"- or "Verlust"-Field changed. Thank you for your support!

@passelin
Copy link
Contributor

Looks like the kendo grid is not telling your datasource that data has changed. From what I understand in the kendo doc, the grid will invoke update on the datasource when you autosync but a modified plunk (see the datasource) doesn't seem to be invoking update: http://plnkr.co/edit/17AGwScfe1VGwJz5kJUe?p=preview. I'm probably missing something, @burkeholland ?

@thomasfritz
Copy link
Author

The time is running:-(! Is there a solution to our problem? Thanks!

@thomasfritz
Copy link
Author

Sorry, but I think an answer where cool!!!!

@burkeholland
Copy link
Contributor

@thomasfritz You do deserve an answer. I'm sorry.

I think the best way for you to pull this off is to tie into the save event and then refresh the grid...

http://plnkr.co/edit/E3nucPfTgD5rKmb1VSIH?p=preview

@thomasfritz
Copy link
Author

Thank you Burke! It works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants