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

Error: unterminated string literal

3 Answers 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
maggi
Top achievements
Rank 1
maggi asked on 03 Sep 2008, 11:18 AM
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


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 03 Sep 2008, 11:20 AM
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.
0
maggi
Top achievements
Rank 1
answered on 04 Sep 2008, 03:19 AM
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
0
Vlad
Telerik team
answered on 04 Sep 2008, 05:46 AM
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.
Tags
Grid
Asked by
maggi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
maggi
Top achievements
Rank 1
Share this question
or