I am getting this error after leaving the detail grid (on page load) that displays the users information that is connected to another grid that is used for selecting a users name. THe error is reported in the ScriptResource.axd on line 2560 the bold line
any ideas?
RadGridNamespace.RadGridTable.prototype.InitializeEvents=function(_1a9){
for(clientEvent in _1a9){
if(typeof (_1a9[clientEvent])!="string"){
continue;
}
if(!this.Owner.IsClientEventName(clientEvent)){
if(_1a9[clientEvent]!=""){
var _1aa=_1a9[clientEvent];
if(_1aa.indexOf("(")!=-1){
this[clientEvent]=_1aa;
}else{
this[clientEvent]=eval(_1aa);
}
}else{
this[clientEvent]=null;
}
}
}
};
6 Answers, 1 is accepted
0

Dan Rowe
Top achievements
Rank 1
answered on 17 Aug 2010, 08:45 PM
Wondering if anyone has any ideas as to where I should start looking for this issue please.
Thanks
Thanks
0
Hi Dan,
Could you please elaborate a bit more on your application? Providing some code from the RadGrid settings could help us further resear4ch on the issue. Also please post the exact error you receive.
Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

Dan Rowe
Top achievements
Rank 1
answered on 18 Aug 2010, 02:16 PM
This is the error I get after my page loads. It is not a pop up error but there is a bang(!) notice in the status area. (See attached Image
Webpage error details). This happens after or during the page load or when selecting a new record from the grid. The grid on the left of the screen contains records that when selected will show details attained from another Stored Procedure on the right hand side. The data is properly showing the first record when done loading but I am getting this error from the AXD file. I have attached the debugview.jpg also and attempted to upload the AXD file as the axd.jpg but it will not upload. The offending code is in the last post I made but I could email the AXD file if you want it. does this help?
Webpage error details). This happens after or during the page load or when selecting a new record from the grid. The grid on the left of the screen contains records that when selected will show details attained from another Stored Procedure on the right hand side. The data is properly showing the first record when done loading but I am getting this error from the AXD file. I have attached the debugview.jpg also and attempted to upload the AXD file as the axd.jpg but it will not upload. The offending code is in the last post I made but I could email the AXD file if you want it. does this help?
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 18 Aug 2010 12:51:31 UTC
Message: 'RowSelected' is undefined
Line: 2560
Char: 1
Code: 0
URI: http://localhost/ScriptResource.axd?d=E-CZVV1tAjPC948_h1b65KPxuNzANW_gp50IRrnkiDeCxbyLdLpWDBKeoAL0MwBhPN77eI1USvdAJDv-uqlbnIOrJE4uFpEW0&t=633425673020000000
0
Hi Dan,
Could you please verify if you are calling RowSelected function somewhere in your code and if it is correctly set? Also please post some code from the RadGrid settings which could help us isolate the problem.
Greetings,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

Dan Rowe
Top achievements
Rank 1
answered on 22 Sep 2010, 06:24 PM
the only place that rowselected is found is in the RadGrid.js file and it is an OnRowSelected.
Not sure if this is what your looking for?
Not sure if this is what your looking for?
Protected Sub CreateCompanyGrid()
Dim CompaniesGrid As RadGrid = New RadGrid
' Need to be sure we have a DataSourceId before running so grid is not empty
If CompaniesGrid.DataSourceID = "" Then
If Session("CompaniesCheckedBox") = 1 Or Session("CompaniesCheckedBox") = 2 Then
CompaniesGrid.DataSourceID = "CompaniesInactiveDataSource"
Else
CompaniesGrid.DataSourceID = "CompaniesDataSource"
End If
End If
CompaniesGrid.ID = "CompaniesGrid"
AddHandler CompaniesGrid.ItemCommand, AddressOf CompaniesGrid_ItemCommand
AddHandler CompaniesGrid.ItemDataBound, AddressOf CompaniesGrid_Itemdatabound
CompaniesGrid.Width = Unit.Pixel(265)
CompaniesGrid.PageSize = 5
CompaniesGrid.AllowPaging = False
CompaniesGrid.ClientSettings.Scrolling.AllowScroll = True
CompaniesGrid.ClientSettings.Scrolling.ScrollHeight = 350
CompaniesGrid.ClientSettings.Scrolling.UseStaticHeaders = True
CompaniesGrid.ClientSettings.Scrolling.SaveScrollPosition = True
CompaniesGrid.AutoGenerateColumns = False
Dim buttonColumn2 As GridButtonColumn = New GridButtonColumn
Dim buttonColumn3 As GridButtonColumn = New GridButtonColumn
Dim boundColumn1 As GridBoundColumn = New GridBoundColumn
Dim boundColumn2 As GridBoundColumn = New GridBoundColumn
Dim boundColumn3 As GridBoundColumn = New GridBoundColumn
Dim boundColumn4 As GridBoundColumn = New GridBoundColumn
Dim boundColumn5 As GridBoundColumn = New GridBoundColumn
Dim companyNameLink As GridButtonColumn = New GridButtonColumn
'add columns (order determines order of grid columns display)
CompaniesGrid.MasterTableView.Columns.Add(buttonColumn2)
CompaniesGrid.MasterTableView.Columns.Add(buttonColumn3)
CompaniesGrid.MasterTableView.Columns.Add(boundColumn5)
CompaniesGrid.MasterTableView.Columns.Add(boundColumn1)
CompaniesGrid.MasterTableView.Columns.Add(boundColumn2)
CompaniesGrid.MasterTableView.Columns.Add(boundColumn3)
CompaniesGrid.MasterTableView.Columns.Add(boundColumn4)
CompaniesGrid.MasterTableView.Columns.Add(companyNameLink)
'' Working
''CompaniesGrid.MasterTableView.AllowFilteringByColumn = True
'assign column properties
buttonColumn2.ButtonType = GridButtonColumnType.ImageButton
buttonColumn2.ImageUrl = "~/DesktopModules/TTSTimeClock_Selection/RadControls/Grid/Skins/Outlook2007/Edit.gif"
buttonColumn2.HeaderText = "E"
buttonColumn2.Text = "Edit"
buttonColumn2.CommandName = "EditCompany"
buttonColumn2.UniqueName = "editColumn"
buttonColumn3.ButtonType = GridButtonColumnType.ImageButton
buttonColumn3.ImageUrl = "~/DesktopModules/TTSTimeClock_Selection/RadControls/Grid/Skins/Outlook2007/Delete.gif"
buttonColumn3.HeaderText = "D"
buttonColumn3.Text = "delete"
buttonColumn3.CommandName = "DeleteCompany"
buttonColumn3.UniqueName = "deleteColumn"
buttonColumn3.ConfirmText = "Delete selected company?"
boundColumn1.DataField = "CompanyID"
boundColumn1.HeaderText = "ID"
boundColumn1.UniqueName = "CompanyIDColumn"
boundColumn2.DataField = "CompanyName"
boundColumn2.HeaderText = "Co Name"
boundColumn2.UniqueName = "CompanyNameColumn"
boundColumn2.Visible = False
boundColumn3.DataField = "CompanyPhone"
boundColumn3.HeaderText = "Phone"
boundColumn3.UniqueName = "CompanyPhoneColumn"
boundColumn3.Visible = False
boundColumn4.DataField = "CompanyContact"
boundColumn4.HeaderText = "Co Contact"
boundColumn4.UniqueName = "CompanyContactColumn"
boundColumn4.Visible = False
boundColumn5.DataField = "BureauID"
boundColumn5.HeaderText = "Bureau ID"
boundColumn5.UniqueName = "BureauIDColumn"
boundColumn5.Visible = False
companyNameLink.ButtonType = GridButtonColumnType.LinkButton
companyNameLink.HeaderText = "Name"
companyNameLink.Text = ""
companyNameLink.CommandName = "ViewCompany"
companyNameLink.UniqueName = "CompanyNameColumn2"
'' Working
''companyNameLink.AutoPostBackOnFilter = "true"
' This will call Javascript to resize the hieght of grid when
' less then 350 PX so there is no blank area on the bottom of grid
CompaniesGrid.ClientSettings.ClientEvents.OnGridCreated = "GridCreated"
Me.PlaceHolder2.Controls.Add(CompaniesGrid)
End Sub
0
Hi Dan,
As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.
Best wishes,
Maria Ilieva
the Telerik team
As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.
Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items