Dear,
The function I want to implement is call the method defined on the server side when cell value changed in WebDataGrid. The attachment is the demo that I try to define a button hidden and the post back to server according click the button in the client script method "CellValueChanged" which will be run when cell value changed. It applies to all cells, except for the last one. When I changed the last cell, it will also post back to server. But it will not perform the specified method, just like refresh the page. I think this is a issue, please help me ! Thanks!
The details you can see the demo of attachment file.
Best Regards
Hello,
When I run the provided sample, I see the call to the server on every cell change and the btnUpdate_Click event is fired and the txtInfo Text is changed. Please provide me with detailed steps to reproduce, actual results, and expected results so that I better understand what the issue is.
Note that I would recommend against using a full post back on every cell change. Do you have more details on what you are looking to accomplish? It is likely that there is a better approach that can be used to accomplish the same goal.
Let me know if you have any questions with this matter.
Thank for your reply!
The detail steps please find the attachment.The fact is that I used a WebDataGrid and a Chart Control in one page. When I change the cell value of the WebDataGrid, I need to post back to server and participate in some logical operations on the server side according all cell values of the WebDataGrid, and then generate a statistical chart which will be displayed in chart control. So I use a full post back on every cell change in above situation. Do you have a better idea? Thanks!
The logic for you button is still happening and after that call to the server the WebDataGrid is triggering another post back to the server for the RowUpdating when the last cell in the row is edited. This also happens when there are more than one row in the grid and you change rows. The following is the order of events:
You can see this by looking at the network activity in the developer tools of your web browser.
If you need to dynamically change the chart as the values are edited, you may want to consider a client only approach such as using the igDataChart and the igGrid.