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

[Solved] curly brace } missing from Telerik-generated javascript

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim R
Top achievements
Rank 1
Tim R asked on 13 Apr 2009, 06:48 PM

I am getting a scripting error on this line generated by Telerik: a missing "}".

$create(Telerik.Web.UI.RadGrid, {

"ClientID":"RadGrid1","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowExpandCollapse":true,"AllowGroupExpandCollapse":true,"AllowKeyboardNavigation":true,"ColumnsReorderMethod":0,"ShouldCreateRows":true,"Selecting":{"AllowRowSelect":true},"Scrolling":{"SaveScrollPosition":true,"ScrollHeight":"300px"},"Resizing":{"ClipCellContentOnResize":true},"ClientMessages":{"DragToGroupOrReorder":"Drag to group or reorder","DragToResize":"Drag to resize","DropHereToReorder":"Drop here to reorder","PagerTooltipFormatString":"Page: \u003cb\u003e{0}\u003c/b\u003e out of \u003cb\u003e{1}\u003c/b\u003e pages"}},"Skin":"Default","UniqueID":"RadGrid1","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_gridTableViewsData":"[{\"ClientID\":\"RadGrid1__ctl0\",\"UniqueID\":\"RadGrid1:_ctl0\",\"PageSize\":22,\"PageCount\":1,\"CurrentPageIndex\":0,\"Name\":\"\",\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"SelectedRow_Default\",\"_renderActiveItemStyle\":\"\",\"_renderActiveItemStyleClass\":\"ActiveRow_Default\",\"_columnsData\":[{\"UniqueName\":\"column\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":false,\"Display\":true},{\"UniqueName\":\"name\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"citystate\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"phone\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true}]}]","_loadingText":"Loading...","_masterClientID":"RadGrid1__ctl0","_popUpIds":"[]","_popUpSettings":{"ScrollBars":0,"Modal":false,"ZIndex":8000,"Height":{"IsEmpty":true,"Type":1,"Value":0},"Width":{"IsEmpty":false,"Type":1,"Value":400},"ViewState":{}},"_readyText":"Ready","_statusLabelID":"","allowMultiRowSelection":false,"clientStateFieldID":"RadGrid1_ClientState"}, {"gridCreated":GridCreated,"masterTableViewCreated":goToResults,"rowCreated":RowCreated}, null, $get("RadGrid1"));

 

});

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Apr 2009, 07:47 AM
Hello Tim,

Could you please isolate the depicted issue in a simple, working project? In this way we will be able to debug it locally and then provide an appropriate answer for you.

Thank you for your cooperation.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Tim R
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or