I have a text column in my grid called "Service" that is editable. When holding the "down arrow" key to quickly scroll past a number of rows, the values in the highlighted field are replaced with blanks as the cursor moves off each of them.
My process for working with the data in these rows is to ensure the field length isn't longer than the field can store during the gridview_CellValidating event and then to persist the object back to the database on RowEditEnded.
The field is defined very simply as well:
<telerik:GridViewDataColumn Header="Service" DataMemberBinding="{Binding Service, Mode=TwoWay, ValidatesOnExceptions=True}" />
Nothing fancy is really taking place, but by using this method to quickly move around the grid it is blanking out values and then saving those blank values back to the database. Note it does not seem to happen when scrolling horizontally across one row, only when scrolling vertically in this manner.
Can you please let me know if you can replicate this issue and what can be done to correct this?
7 Answers, 1 is accepted
I am a bit confused- typically on scrolling no edit commits should be applied . Can you elaborate a bit more .
Any details on how to reproduce the issue here would be helpful.
All the best,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I do not have any code that would be blanking out this field value, only the CellValidating checks for length issues and will truncate the data if it is too long to store into the field.
Then RowEditEnded saves the item back to the database.
Somehow in there the holding down of the down-arrow key is causing some weird behavior. Hitting the down-arrow repeatedly to scroll down one row at a time does not cause this to happen, only holding it down.
I am wondering if maybe it is not waiting for the CellValidating to end before performing the RowEditEnded and therefore it is not able to access the field's value when saving the records back to the DB?
Indeed I've managed to simulate the issue. It seems that binding which we use for editing purposes does not update the editor with the underlying value. Unfortunately we do not have control over binding (how and when will be triggered). We will consider this scenario, but I cannot commit with a specific date or release when this behavior will be fixed.
Regards,Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Unfortunately, we have still not managed to fix this problem.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
We are sorry but we cannot commit to a time frame when this issue will be resolved. As soon as we find a fix, we will post more information and release notes.
Please excuse us for any inconvenience caused.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.