Error: unterminated string literal

4 posts, 0 answers
  1. maggi
    maggi avatar
    58 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2008 Link to this post

    Hi,

        I am getting an error while binding data to radgrid the error is

    Error: unterminated string literal

    new RadGridNamespace.RadGridTable( {OwnerID:"RadGrid1",DetailTables:[],HierarchyLoadMode:"ServerOnDemand",GroupLoadMode:"Server",AllowFilteringByColumn:false,PageSize:10,PageCount:217,TableLayout:"Auto",RenderItemStyle:"color:#999966;background-color:

    Can someone please help me

    Thanks

    maggi


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 03 Sep 2008 Link to this post

    Hello maggi,

    I think that this syntax is related to the old "Classic" RadGrid.

    Regards,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. maggi
    maggi avatar
    58 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2008 Link to this post

    Hi,

        I'll try to explain in detail what is the problem this error arises when the grid is bound for the first time. I saw this error in the error console

    (error in error console)
    Error: unterminated string literal


    error(in view code):

    <script type="text/javascript">
    <!--
    var Page_ValidationActive = false;
    if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();(error comes on this line)
    }

    function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
    return ValidatorCommonOnSubmit();
    }
    else {
    return true;
    }
    }
    // -->
    </script>
    The thing is the same page works fine when i run it on another website. Please help

    Thanx

    maggi
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Sep 2008 Link to this post

    Hi maggi,

    This code is from Microsoft ASP.NET validation controls - not Telerik. If you can send us small example which demonstrates this (via support ticket) I will gladly help you.

    Greetings,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top