Hi all,
I'm using in many form the following code. But, It's not working in default.aspx.
Help me please...
l
213e123r
I'm using in many form the following code. But, It's not working in default.aspx.
Help me please...
<
script
type
=
"text/javascript"
>
function RowDblClick(sender,arg) {
alert('test');
}
</
script
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
AutoGenerateColumns
=
"true"
>
<
ClientSettings
>
<
ClientEvents
OnRowClick
=
"RowClick"
OnRowSelected
=
"RowDblClick"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
213e123r
I am using in many form the following code. But, It's not working in default.aspx. Help me please ..
7 Answers, 1 is accepted
0
Hi Göksel,
I tried to replicate the described issue on my side but to no avail. Find attached a sample application where the OnRowClick client-side event is working as expected.
I hope this helps.
Regards,
Pavlina
the Telerik team
I tried to replicate the described issue on my side but to no avail. Find attached a sample application where the OnRowClick client-side event is working as expected.
I hope this helps.
Regards,
Pavlina
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

Göksel
Top achievements
Rank 1
answered on 10 Nov 2010, 01:11 PM
Hi,
Your sample application is working. Besides, my code is working on another page. It's not only working on default.aspx. I'm using RadDock on default.aspx. I wonder, the reason can RadDock be?
Your sample application is working. Besides, my code is working on another page. It's not only working on default.aspx. I'm using RadDock on default.aspx. I wonder, the reason can RadDock be?
0
Hello Göksel,
Can you please send us the code from default.aspx page? Please, use the code formatter tool of the ticket editor to make the code readable.
Thank you.
Regards,
Pavlina
the Telerik team
Can you please send us the code from default.aspx page? Please, use the code formatter tool of the ticket editor to make the code readable.
Thank you.
Regards,
Pavlina
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

Göksel
Top achievements
Rank 1
answered on 10 Nov 2010, 02:27 PM
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" MasterPageFile="~/CRM.Master" Title="CRM" Inherits="CRM.Default1" EnableEventValidation="true" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content
ID
=
"Content1"
runat
=
"Server"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
EnableViewState
=
"true"
>
<
script
type
=
"text/javascript"
>
function RowDblClick(sender, eventArgs) {
alert('1');
}
function RowClick(sender, eventArgs) {
alert('2');
}
function test(Row) {
alert('3');
}
</
script
>
<!-- Docks -->
<
div
id
=
"divDock"
class
=
"divDock"
style
=
"position:fixed; left:0px; top:135px; overflow:scroll; overflow-x:hidden; height:540px; width:100% "
>
<
telerik:RadDockLayout
ID
=
"RadDockLayout1"
runat
=
"server"
>
<
table
width
=
"100%"
>
<
tr
valign
=
"top"
>
<
td
style
=
"width:50%"
>
<
telerik:RadDockZone
ID
=
"RadDockZone1"
runat
=
"server"
Style
=
"border:none"
>
<
telerik:RadDock
ID
=
"RadDock1"
Runat
=
"server"
Collapsed
=
"true"
Closed
=
"true"
EnableAnimation
=
"true"
Title
=
"Son 3 Ayda Satınalması En Çok Artan 30 Müşteri"
Skin
=
"Black"
>
<
ContentTemplate
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Black"
GridLines
=
"None"
AllowPaging
=
"true"
PageSize
=
"10"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
>
<
ClientSettings
>
<
ClientEvents
OnRowClick
=
"RowClick"
OnRowDblClick
=
"RowDblClick"
/>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"False"
ClientDataKeyNames
=
"CLIENTREF"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"CLIENTREF"
HeaderText
=
"ID"
ItemStyle-Width
=
"40px"
UniqueName
=
"column1"
/>
<
telerik:GridBoundColumn
DataField
=
"MUSTERI_ADI"
HeaderText
=
"Müşteri Adı"
ItemStyle-Width
=
"300px"
UniqueName
=
"column2"
/>
<
telerik:GridBoundColumn
DataField
=
"ILK_UC_AY"
HeaderText
=
"İlk 3 Ay"
ItemStyle-Width
=
"65px"
UniqueName
=
"column4"
/>
<
telerik:GridBoundColumn
DataField
=
"SON_UC_AY"
HeaderText
=
"Son 3 Ay"
ItemStyle-Width
=
"65px"
UniqueName
=
"column5"
/>
<
telerik:GridBoundColumn
DataField
=
"FARK"
HeaderText
=
"Fark"
ItemStyle-Width
=
"70px"
UniqueName
=
"column6"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
ContentTemplate
>
</
telerik:RadDock
>
</
telerik:RadDockZone
>
</
td
>
</
tr
>
</
table
>
</
telerik:RadDockLayout
>
</
div
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
Width
=
"600"
Height
=
"500"
ShowContentDuringLoad
=
"false"
ReloadOnShow
=
"true"
EnableShadow
=
"true"
Modal
=
"true"
VisibleStatusbar
=
"false"
Behaviors
=
"Close,Move, Resize"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
ID
=
"rwReport"
Behaviors
=
"Close"
Width
=
"1200"
Height
=
"630"
Modal
=
"true"
Skin
=
"Black"
></
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
</
asp:Content
>
0
Hi Göksel,
I suggest that you examine the website from the following forum thread and see if it helps to resolve the issue:
http://www.telerik.com/community/forums/aspnet/grid/rowclick-rowdblclick-rowselected.aspx
Regards,
Pavlina
the Telerik team
I suggest that you examine the website from the following forum thread and see if it helps to resolve the issue:
http://www.telerik.com/community/forums/aspnet/grid/rowclick-rowdblclick-rowselected.aspx
Regards,
Pavlina
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

Göksel
Top achievements
Rank 1
answered on 24 Nov 2010, 10:13 AM
Hi
My code is working on IE but It's not working Chrome :(
My code is working on IE but It's not working Chrome :(
0
Hi Göksel,
Could you please prepare and send us a simple running project via formal support ticket, where we can reproduce the problem?
Kind regards,
Pavlina
the Telerik team
Could you please prepare and send us a simple running project via formal support ticket, where we can reproduce the problem?
Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart 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.