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

How to close EditForm on condition

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gábor
Top achievements
Rank 1
Gábor asked on 27 Sep 2012, 04:51 PM
Hi!

Here is my problem:
I use ascx editform in telerik radgrid. I have some textboxes, a Cancel and a Save button on it.
I want it to work the following way:
- if the user writes correct values in the textboxes and clicks the save button, the editform must close and the grid must show the new values.
- if the user writes wrong values in the textboxes and clicks the button, the editform must stay visible so the user can change the wrong values.

The situation is a little bit more complicated, because I use the editform in the grid's childgrid/detailtable.
If it is possible, I want to solve the problem in the ascx form's code behind. 

Sorry for my bad English,
Thanks for the answers!

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 29 Sep 2012, 10:47 PM
Hi Gábor,

You could take a look at this demo where is represented the server-side validation mechanism of the Telerik RadGrid edit form. Additionally you can check the related resources tab for more information.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Gábor
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or