or
<
div
id
=
"ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder_SlotsScheduler_43_0"
title="10:20 - 10:40
XXX YYY"
class
=
"rsApt resource n10 appointmentPassed rsAptSelected"
style
=
"height:29px;width:11.25%;left:78,75%;top:8px;"
>
<
div
class
=
"rsAptOut">
<
div
class
=
"rsAptMid">
<
div
class
=
"rsAptIn"
>
<
div
class
=
"rsAptContent"
>
<
a
class
=
"appointmentIcon"
></
a
><
span
> </
span
>XXX YYY
<
a
class
=
"rsAptDelete"
href
=
"#"
style
=
"visibility: hidden;"
>delete</
a
>
</
div
>
</
div
>
</
div
>
<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="RadSpellTestApp._Default" %>
<
asp:Content
runat
=
"server"
ID
=
"HeaderContent"
ContentPlaceHolderID
=
"HeadContent"
>
<
script
type
=
"text/javascript"
>
function spellCheck(elID) {
var spell = $find(elID);
spell.startSpellCheck();
return false;
}
</
script
>
</
asp:Content
>
<
asp:Content
runat
=
"server"
ID
=
"BodyContent"
ContentPlaceHolderID
=
"MainContent"
>
<
asp:Button
ID
=
"btnOpen"
runat
=
"server"
Text
=
"Open Window"
/>
<
trk:RadWindow
ID
=
"rdwElement"
runat
=
"server"
Behaviors
=
"Move,Resize"
Width
=
"525"
Height
=
"390"
Modal
=
"true"
VisibleStatusbar
=
"false"
>
<
ContentTemplate
>
<
trk:RadAjaxPanel
ID
=
"pnlElement"
runat
=
"server"
>
<
trk:RadTextBox
ID
=
"txtText"
runat
=
"server"
Rows
=
"7"
TextMode
=
"MultiLine"
Width
=
"474px"
/>
<
trk:RadSpell
ID
=
"rdSpell"
runat
=
"server"
ButtonType
=
"None"
ControlToCheck
=
"txtText"
/>
<
asp:Image
ID
=
"imgSpell"
runat
=
"server"
ImageUrl
=
"~/Images/spellcheck.gif"
Style
=
"cursor: pointer;"
ToolTip
=
"Spell check"
/>
</
trk:RadAjaxPanel
>
<
br
/>
<
asp:Button
ID
=
"btnClose"
runat
=
"server"
Text
=
"Close Window"
/>
</
ContentTemplate
>
</
trk:RadWindow
>
</
asp:Content
>
Public
Class
_Default
Inherits
Page
Private
Sub
btnOpen_Command(sender
As
Object
, e
As
CommandEventArgs)
Handles
btnOpen.Command
rdwElement.VisibleOnPageLoad =
True
End
Sub
Protected
Sub
btnClose_Command(
ByVal
sender
As
Object
,
ByVal
e
As
CommandEventArgs)
Handles
btnClose.Command
rdwElement.VisibleOnPageLoad =
False
End
Sub
Protected
Overrides
Sub
OnPreRender(e
As
EventArgs)
MyBase
.OnPreRender(e)
imgSpell.Attributes(
"onClick"
) =
"spellCheck('"
& rdSpell.ClientID &
"')"
End
Sub
End
Class
<
ItemTemplate
>
<
div
class
=
"rlvI"
>
<
telerik:RadRating
ID
=
"rCevap"
runat
=
"server"
Orientation
=
"Vertical"
SelectionMode
=
"Continuous"
IsDirectionReversed
=
"true"
Precision
=
"Exact"
AutoPostBack
=
"true"
OnRate
=
"rCevap_Rate"
cId='<%# Eval("CId") %>'
ViewStateMode="Disabled"
EnableViewState="false"
Visible='<%# Eval("CId")==null?false:true %>'
>
</
telerik:RadRating
>
</
div
>
</
ItemTemplate
>
protected void rCevap_Rate(object sender, EventArgs e)
{
RadRating rc = (sender as RadRating);
int cId = Convert.ToInt32(rc.Attributes["cId"]);
...
}
Problem adding javascript onclick event to gridbuttoncolumn in code behind when using grid virtualization - when virtualisation = false works Ok i.e. when user clicks on the button an image is displayed in a lightbox - when virualisation = true link does not work - attached is code within itemdatabound event from a test project that I setup - thanks
Private Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
If TypeOf e.Item Is GridDataItem Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim imageTitle As String = ""
Dim imageDescription As String = ""
Dim imageName As String = "~/Images/Refresh.gif"
Dim ImageButton1 As ImageButton = DirectCast(item("Image1").Controls(0), ImageButton)
ImageButton1.Attributes.Add("onclick", "showImage('" & imageTitle & "','" & imageDescription & "','" & imageName & "'); return false;")
End If
End Sub