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

ModelState error handling issue on telerik grid edit mode

1 Answer 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Khyati
Top achievements
Rank 1
Khyati asked on 04 Mar 2013, 12:01 PM
Hi,

I am using Telerik MVC grid in my MVC3 asp.net application. I am facing very weird issues while updation in grid row.

My Model has two strings fields.Noth fields are required if they satisfy some particular criteria..
My modelState error shows message even after error goes. This happens only if I have two strings in my model.
Scenario steps:
1) Provide no value to both the strings - Model state error would show correct errors. (two errors as both fields are required)
2) Provide value to one string and no value to other string - Model state error still shows two errors. Ideally It should get updated with one error only. 

Please find attached the files for reference.
I am not sure what is wrong with my files. I have tried every possible solution.

Regards,
Khyati

1 Answer, 1 is accepted

Sort by
0
Khyati
Top achievements
Rank 1
answered on 14 Mar 2013, 10:06 AM
Hi,

Can anyboday please help me for the above posted issue?

Thanks & Regards,
Khyati Vaghela
Tags
General Discussions
Asked by
Khyati
Top achievements
Rank 1
Answers by
Khyati
Top achievements
Rank 1
Share this question
or