Virtualization
as described under http://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx.<
telerik:RadScheduler runat="server" ID="RadScheduler1"
Width="100%" Skin="Office2007" EnableEmbeddedSkins="True"
DayStartTime="04:00:00" DayEndTime="18:00:00"
DataSubjectField="Subject"
DataStartField="Start" DataEndField="End"
DataSourceID="dbAppointment"
DataKeyField="AppointmentID"
Height="620px" CustomAttributeNames="InvoiceId,PatientId,PatientFullName,TreatmentTypeId,Description,AppointmentId" >
<
InlineInsertTemplate>
<asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%" TextMode="MultiLine" Height="40px">
</asp:TextBox> <br />
Patient:
<asp:DropDownList ID="ddPatient" runat="server"
DataSourceID="SelPatientByCurrentUserId" DataTextField="PatientFullName"
DataValueField="PatientId" SelectedValue='<%# Bind("PatientId") %>'>
</asp:DropDownList>
Treatment:
<asp:DropDownList ID="ddTreatmentType" runat="server"
DataSourceID="SelTreatmentTypeByUserUIForDoctor" DataTextField="Description"
DataValueField="TreatmentTypeId" SelectedValue='<%# Bind("TreatmentTypeId") %>'>
</asp:DropDownList>
<hr />
<asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">
<asp:Image runat="server" ID="insertImage" ImageUrl="~/Images/OfficeUser/Okay.gif" AlternateText="Confirm" />
</asp:LinkButton>
<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel">
<asp:Image runat="server" ID="Image2" ImageUrl="~/Images/OfficeUser/Cancel.gif" AlternateText="Cancel" />
</asp:LinkButton>
</InlineInsertTemplate>
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
<
telerik:GridTemplateColumn
UniqueName
=
"colPrimaryProcedure"
HeaderText
=
""
ItemStyle-HorizontalAlign
=
"Center"
><
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
ItemTemplate
>
<
asp:checkbox
ID
=
"chkPrimary"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Dim
chk
As
CheckBox =
DirectCast
(item(
"BlockCheck"
).Controls(0), CheckBox)
chk.Enabled =
True
chk.Attributes.Add(
"onmouseenter"
,
"changeEditor(this)"
)
function
changeEditor(sender) {
var
grid = $find(
"<%=RadGrid1.ClientID%>"
);
var
cell = Telerik.Web.UI.Grid.GetFirstParentByTagName(sender,
"td"
);
var
batchManager = grid.get_batchEditingManager();
grid.get_batchEditingManager().openCellForEdit(cell);
}<
telerik:GridCheckBoxColumn
DataField
=
"BlockCheck"
UniqueName
=
"BlockCheck"
AutoPostBackOnFilter
=
"true"
>
<
HeaderStyle
ForeColor
=
"Black"
Width
=
"20%"
></
HeaderStyle
>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridTemplateColumn
DataField
=
"BlockCheck"
Visible
=
"false"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"Cb1"
Checked='<%# Eval("BlockCheck")%>' runat="server"/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:CheckBox
ID
=
"Cb2"
Checked='<%# Bind("BlockCheck")%>' runat="server" />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>