Validation in Radgrid

9 posts, 0 answers
  1. pavan
    pavan avatar
    17 posts
    Member since:
    Aug 2010

    Posted 17 May 2011 Link to this post

    I have a radgrid which is having some controls in its Edit and Insert mode.I have put some validation on those controls. we are using simple asp.net validator.In my case ,Everything is working properly untill Validator get fired.Once validator get fired,nothing is working,not even cancel button which can close Edit or insertion mode in the radgrid.In normal  asp.net web application,it is working fine.but in sharepoint it is giving problem.Is anything to do with config file . Looking for ur help.Thanks in advance



     if we remove radajaxmanager  then everything is working fine. But we need that Ajax.Please provide any solution
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 19 May 2011 Link to this post

    Hi Pavan,

    Could you please try using the following approach and let me know if the issue still exists:
    1. Open the "SharePoint 2010 Management Shell"
    2. Run the following command: set-spfarmconfig -ASPScriptOptimizationEnabled:$false

    Looking forward for your reply.

    Greetings,
    Radoslav
    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. pavan
    pavan avatar
    17 posts
    Member since:
    Aug 2010

    Posted 19 May 2011 Link to this post

    Thanks for your reply.But we are using Sharepoint 2007 where we don't have Management shell and no existence of the mention below command.
  4. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 20 May 2011 Link to this post

    Hello pavan,

    Please, specify if you are getting any server-side error or javascript exception (for the latter, you need to switch script debugging on in your browser). 

    Regards,
    Tsvetoslav
    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.

  5. pavan
    pavan avatar
    17 posts
    Member since:
    Aug 2010

    Posted 23 May 2011 Link to this post

     We are not getting any server-side error or javascript exception .Simply,it stand on same page.No other functionality is working then .So no other option than closing the browser.If no validation fired then everything will work fine.Problem arise when Validation get fired.It get stuck to that same page.
  6. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 25 May 2011 Link to this post

    Hello pavan,

    We no longer support SharePoint 2007 and I do not have a way to test your scenario. However, please, do the following test in order to get the picture clearer:
    1. Put a validator control outside of the RadGrid control.
    2. Add a validated control, e.g. a simple text box again outside of RadGrid.
    3. Now open RadGrid's edit form with its validation controls and let us know of the result.

    Regards,

    Tsvetoslav
    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.

  7. Ankit
    Ankit avatar
    2 posts
    Member since:
    Feb 2012

    Posted 08 Aug 2012 Link to this post

    Did we get any solution to this?  This doesnt work in Sharepoint 2010 also......
  8. Ankit
    Ankit avatar
    2 posts
    Member since:
    Feb 2012

    Posted 08 Aug 2012 Link to this post

    I had to paste this lines in javascript to make it work....
    if (typeof (_spBodyOnLoadFunctionNames) != 'undefined' && _spBodyOnLoadFunctionNames != null) {

     

    _spBodyOnLoadFunctionNames.push(

     

    "supressSubmitWraper");

     

    }

     

     

    function supressSubmitWraper() {

     

    _spSuppressFormOnSubmitWrapper =

     

    true;

     

    }

  9. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 09 Aug 2012 Link to this post

    Hello Ankit,

    Thanks for sharing that.

    Greetings,
    Tsvetoslav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top