Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > BinaryImage > How to disable validation on BinaryImage on item edit in Grid

Not answered How to disable validation on BinaryImage on item edit in Grid

Feed from this thread
  • Posted on Apr 17, 2011 (permalink)

    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,

    Reply

  • Pavlina Pavlina admin's avatar

    Posted on Apr 21, 2011 (permalink)

    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.

    Attached files

    Reply

  • Posted on Apr 23, 2011 (permalink)

    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

    Reply

  • Pavlina Pavlina admin's avatar

    Posted on Apr 25, 2011 (permalink)

    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.

    Reply

  • Posted on Apr 27, 2011 (permalink)

    Hello Pavlina,

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

    Regards,

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > BinaryImage > How to disable validation on BinaryImage on item edit in Grid