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

How to disable validation on BinaryImage on item edit in Grid

4 Answers 58 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Owidat
Top achievements
Rank 2
Owidat asked on 17 Apr 2011, 12:29 PM
Hi,

I want to display image in my grid and I'm following this demo "BinaryImage / Binary Images and Upload in Grid", I need to disable validation while editing, I'm not able to reach GridBinaryImageColumn, I need this because clients my try to update ImageName or Description only but validation control not allowing this ..

any ideas how to do that?

Regards,

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Apr 2011, 09:09 AM
Hello Owidat,

To achieve your goal you can check if there is any file uploaded with the updated item, when RadGrid is updating. If no file was uploaded, you can skip modifying the data field holding the binary image data.

However, I am sending you a sample test page which demonstares the needed functionality.

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Aamir Ali Ansari
Top achievements
Rank 2
answered on 23 Apr 2011, 12:47 PM
Dear Pavlina
Your solution just work fine for me but there is one issue. I need to keep validation for insertion only and disable it for editing only. Can you suggest solution?? I think we have to keep validation enabled as mentioned in original code and disable it when we press edit button. A sample code or hint for this scenario will help me resolve my problem.

Regards
Aamir
0
Pavlina
Telerik team
answered on 25 Apr 2011, 09:19 AM
Hi Owidat,

Please refer to the online example below which demonstrates the desired functionality. Check it out and let me know if it helps to achieve your goal:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=grid

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Owidat
Top achievements
Rank 2
answered on 27 Apr 2011, 07:26 AM
Hello Pavlina,

Yes that what exactly I want, its working fine for me ...

Regards,
Tags
BinaryImage
Asked by
Owidat
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Aamir Ali Ansari
Top achievements
Rank 2
Owidat
Top achievements
Rank 2
Share this question
or