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

Problem with editing a record and the RowDetailsTemplate

3 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 20 Dec 2012, 01:27 PM
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

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 20 Dec 2012, 03:05 PM
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.

0
PDS
Top achievements
Rank 1
answered on 21 Dec 2012, 09:49 AM
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
0
Nedyalko Nikolov
Telerik team
answered on 21 Dec 2012, 01:39 PM
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.

Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
PDS
Top achievements
Rank 1
Share this question
or