Problem with editing a record and the RowDetailsTemplate

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Dec 2012

    Posted 20 Dec 2012 Link to this post

    Hi, 

    I have a RadGridView with a template for the RowDetailsTemplate,
    wherein can be found two RadWatermarkTextBox controls which are editable.
    When the user opens the details panel the row gets put in edit mode
    by our code.

    The problem is that when the user switches between the watermark textbox controls
    the endedit event is automatically raised. This problem does not occur all the time but very often it does.

    The bottom most entry in the stacktrace is the endedit event handler:
    RadGridViewRowEditEnded.OnRowEditEnded(object sender, GridViewRowEditEndedEventArgs e)

    This behavior was not present in version 2011.1, but occurs when we upgraded to 2012.3.

    Also when I replace the RadWatermarkTextBox control with a plain TextBox control
    the problem does not occur.

    Do you have any idea what might cause this, or how to prevent it?

    Thanks,
    Thomas

  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 20 Dec 2012 Link to this post

    Hello,

    I've tried to reproduce the reported issue unfortunately to no avail. I'm attaching my sample project.
    Could you please used it for a reference and let me know what steps I need to perform in order to simulate the problem?

    Regards,
    Nedyalko Nikolov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. PDS
    PDS avatar
    6 posts
    Member since:
    Mar 2011

    Posted 21 Dec 2012 Link to this post

    I have extended the lines containing the watermark controls like so:

    <telerik:RadWatermarkTextBox Text="{Binding FirstName}" Width="150"  />

     
    becomes:

    <telerik:RadWatermarkTextBox Text="{Binding FirstName}" Width="150" VerticalContentAlignment="Top" AcceptsReturn="True" MinHeight="48" />

     


    The textbox control becomes multiline. The problem occurs when the user clicks in the lower
    part of the textbox control (below the first line).
    At this point the radGridView_RowEditEnded gets called and the row leaves edit mode.

    As I said before this type of behavior did not occur in version 2011.1 of the controls.
    I acctually tested this with your test application.

    Is there anything to do to prevent the endedit to be called?

    Thanks,
    Thomas

    BTW I also created a support ticket for this with the PDS account, ticket nr 642455
  4. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 21 Dec 2012 Link to this post

    Hello,

    We've fixed a similar issue lately.
    Could you please try your application with our latest internal build and let me know about the result?
    Sorry for the inconvenience caused.

    Regards,
    Nedyalko Nikolov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top