Holding down arrow key causes field to blank out

8 posts, 0 answers
  1. Matthew
    Matthew avatar
    46 posts
    Member since:
    Aug 2011

    Posted 23 May 2012 Link to this post

    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?
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 24 May 2012 Link to this post

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

  3. Matthew
    Matthew avatar
    46 posts
    Member since:
    Aug 2011

    Posted 24 May 2012 Link to this post

    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?
  4. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 29 May 2012 Link to this post

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

  5. Matthew
    Matthew avatar
    46 posts
    Member since:
    Aug 2011

    Posted 08 Aug 2012 Link to this post

    Hello, is there any update on this bug?
  6. Vera
    Admin
    Vera avatar
    265 posts

    Posted 09 Aug 2012 Link to this post

    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.

  7. Matthew
    Matthew avatar
    46 posts
    Member since:
    Aug 2011

    Posted 09 Aug 2012 Link to this post

    Can you provide any timeline for this?  We are getting pressure from some of our clients to get this fixed.
  8. Vera
    Admin
    Vera avatar
    265 posts

    Posted 10 Aug 2012 Link to this post

    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.

Back to Top