HI,
I have a strange issue.
I have a "eval" function in my webdatagrid to fulfill the title property of an image with the property of my DataRow(column : SAVEDSTATE)
At the first page load, it's ok eval is well execute. I modify the cell in column col2 and click on a button to save the modification.
In the save method : if the modification isn't properly saved, I set the RowError with a message. But when the webdatagrid is display, the eval isn’t reevaluated.
If I create another postback with another button (it does nothing), the eval is reevaluated.
I could send you my test project.
A part of my webdatagrid
Hello,
In order to get the modified row data you need to handle RowUpdating/RowUpdated event of the grid. Refer to the link below that will give more details on these events:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=Infragistics4.Web.v12.2~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~RowUpdating_EV.html
http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=Infragistics4.Web.v12.2~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~RowUpdated_EV.html
I hope this helps.
Sorry, maybe i hadn't well explain my case, but if I put the value in a BoundDataField the value is correctly refreshed at the first time, but not in ItemTemplate by the eval.Or maybe if I understand what you said : to Update a ItemTemplate, I have to pass by this handle?
I have create a Sample to show you my problem.
https://skydrive.live.com/redir?resid=12A32E9C2F02224F!367
Thank You.
Hello Charles,
Thank you for your patience. I have done some further looking into this matter and have found why this is occurring. It seems like the button click is too late in the postback to change the value of the RowError and have it display properly. In my testing when I have done this in the PageLoad after you set your data back to the datasource of the grid the message is displayed properly in the cell. I recommend you set a hidden field on the client side to let you know when the button has been clicked to perform this operation and then on postback PageLoad check this hidden field and make the changes to the error if need.
Sincerely,Mike P.Developer Support Engineer IIInfragistics, Inc.www.infragistics.com
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Hi,Sorry and thank you, this time, for your patience.So, I have test, the tips : isn't working for me.I give you my test : TestApp3-Eval-WebDataGrid
The Video demo : Demo-TestApp3-Eval-WebDataGrid
Maybe, I don't code exactly with the same way?what happens with the tips :When I arrive on my business method The FIRST time (called from the page load), the DataTable has NO modified row. This information is loose.This behavior doesn't make sens for me.If you'll find the fix, could you join your sample in response, please.Thank you
Thank you for the update. I have done some further looking into this matter and have the following information. It seem like the datasource in still in previous state on page load which is why you are unable to find any modified row in page load. Setting the row error later than the page load is too late for it to have effect. I recommend either using a hidden field to keep track of which row you modify or set the text to the grid using a method other than the row error such as a bound data field or have a textbox or label in your template column that you can set the value of.
Please let me know if you have any questions concerning this matter.