How to disable validation on BinaryImage on item edit in Grid

5 posts, 0 answers
  1. Owidat
    Owidat avatar
    11 posts
    Member since:
    Jan 2011

    Posted 17 Apr 2011 Link to this post

    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,
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 21 Apr 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aamir Ali Ansari
    Aamir Ali Ansari avatar
    22 posts
    Member since:
    Jun 2010

    Posted 23 Apr 2011 Link to this post

    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
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Apr 2011 Link to this post

    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.

  6. Owidat
    Owidat avatar
    11 posts
    Member since:
    Jan 2011

    Posted 27 Apr 2011 Link to this post

    Hello Pavlina,

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

    Regards,
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017