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

How to disable validating in Gridview.

7 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phong
Top achievements
Rank 1
Phong asked on 28 Apr 2010, 09:13 AM
- I have just update Silverlight control to latest version. I had an trouble in auto validating of gridview so now i want to disable this function. Please tell me the way to disable auto validating in earch cell.

7 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Apr 2010, 04:01 PM
Hello Phong,

Please, provide us with more detailed information about your scenario, so that we can reproduce it and be more helpful. Do you want to remove the validation at the UI layer, Data-layer, etc ? 

 

All the best,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phong
Top achievements
Rank 1
answered on 29 Apr 2010, 05:17 AM
- I sent to you an image that shows my problem. Now i want to remove the red message on each cell of gridview. I want to control validating by my side. 
0
Maya
Telerik team
answered on 29 Apr 2010, 03:30 PM
Hi Phong,

You can change the appearance and the visibility of your Validation as you edit the template of a TextBox in Microsoft Expression Blend. Working with the  <VisualStateManager.VisualStateGroups> gives you the opportunity to define your own style of the Validation or to remove it with the Property "IsEnabled = False".

Another idea for working with validation is proposed in this blog post. However, here you deal with it validation on property/cell level via DataAnnotaions, but it might be helpful for your project.


Kind regards,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phong
Top achievements
Rank 1
answered on 03 May 2010, 05:36 AM
Hi.

Can you show me the detail, I could not understand, I think you have easy way to remove that message. Ex : IsValidateCell = "False"

. Can you give me an example for this situation.

0
Maya
Telerik team
answered on 03 May 2010, 12:42 PM
Hi Phong,

For the time being there is no property that can be set in order to remove the validation. What you can do is to use a custom template via CellEditTemplate property of a certain column of the GridVew.
I am attaching you a sample project so that you can see and test the proposed solution. The Validation is removed for the first column. 

I hope this helps.

Greetings,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phong
Top achievements
Rank 1
answered on 06 May 2010, 10:54 PM
HI Admin!

I tried your Example already. In your Example and my application too, the red message could not display but had problem that could not complete my issue that I Could not enter new value for that cell . This problem happened with your example and my application too from that i could not change new value for that cell. so please show me how .

Please reply this soon because it's very important to fix this early.
0
Maya
Telerik team
answered on 10 May 2010, 04:16 PM
Hi Phong,

You can remove the appearance of the validation pop-up window, but there is no way to remove the validation as a whole.Thus, if you define your field to be "int" you can change its value with another 'int" value, but you cannot insert "string" for example (as it is the case with the first column of the grid in the project I have sent to you).
We will work on the case of bypassing a custom validation (for example to escape validation for a condition if a value is between certain limits as in the case: -50<x<100 ). However, this will be probably available in the next Service Pack.


Sincerely yours,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Phong
Top achievements
Rank 1
Answers by
Maya
Telerik team
Phong
Top achievements
Rank 1
Share this question
or