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

Not able to trigger the Radbuttonclick event when an error occurs in rad gridview

2 Answers 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sreelakshmi T
Top achievements
Rank 1
sreelakshmi T asked on 10 Dec 2011, 09:11 AM
Hi All,

I have a RadGrid and 5 Rad buttons in a page.

i am validating the grid data in cellvalidating event.

After an error comes in grid,all buttons click event is not fairing.

even error comes i want to fire the buttonclick event of some buttons.

Can any body sugest me a solution?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 12 Dec 2011, 07:51 AM
Hello Sreelakshmi,

That would be the expected behavior since RadGridView keeps the focus on any validation errors until they are corrected. What you can try is to set ActionOnLostFocus property to "None". Thus the value will not be committed and even though it is not correct, you will be able to click on an element outside the grid. 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
sreelakshmi T
Top achievements
Rank 1
answered on 12 Dec 2011, 08:18 AM
Hi Maya,

if i set ActionOnLostFocus property to "None" its allowing me to click on other Buttonsin the page.But in my case is i want allow some buttons not all the buttons.

is there any solution for this?

Thanks And Regards,
Sreelakshmi.
Tags
GridView
Asked by
sreelakshmi T
Top achievements
Rank 1
Answers by
Maya
Telerik team
sreelakshmi T
Top achievements
Rank 1
Share this question
or