This is a migrated thread and some comments may be shown as answers.

Holding down arrow key causes field to blank out

7 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 23 May 2012, 08:18 PM
I've found a weird bug with the GridView that I need some assistance with...

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

Sort by
0
Pavel Pavlov
Telerik team
answered on 24 May 2012, 09:20 AM
Hi Matthew,

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 >>

0
Matthew
Top achievements
Rank 1
answered on 24 May 2012, 03:57 PM
Basically I have a grid that has about 100 rows of data loaded.  When I'm on one of the editable text fields and hold the down arrow to quickly scroll down through the rows the value in the column that get scrolled past are being wiped out.

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?
0
Nedyalko Nikolov
Telerik team
answered on 29 May 2012, 01:02 PM
Hello,

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 >>

0
Matthew
Top achievements
Rank 1
answered on 08 Aug 2012, 03:21 PM
Hello, is there any update on this bug?
0
Vera
Telerik team
answered on 09 Aug 2012, 04:44 PM
Hello Matthew,

 
Unfortunately, we have still not managed to fix this problem.

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Matthew
Top achievements
Rank 1
answered on 09 Aug 2012, 04:53 PM
Can you provide any timeline for this?  We are getting pressure from some of our clients to get this fixed.
0
Vera
Telerik team
answered on 10 Aug 2012, 12:45 PM
Hi Matthew,

 
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.

Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Matthew
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Vera
Telerik team
Share this question
or