<EditFormSettings CaptionDataField="Edit contact:" ColumnNumber="2" EditFormType="Template" > |
<FormTemplate> |
<table id="ContactsMiddle" runat="server" style="width:100%; border:none 0px #ffffff; color:#9EB6CE; text-align:left;"> |
<tr> |
<td style="width:100px; padding-left:10px" >Last Name:</td> |
<td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactName" Text='<%#Bind("LastName")%>'></asp:TextBox></td> |
<td style="width:100px; padding-left:10px" >First Name:</td> |
<td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactHomePhone" Text='<%#Bind("FirstName")%>'></asp:TextBox></td> |
</tr> |
<tr> |
<td style="width:100px; padding-left:10px" >Title:</td> |
<td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactEmail" Text='<%#Bind("Title")%>'></asp:TextBox></td> |
<td style="width:100px; padding-left:10px" >Address:</td> |
<td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactCellPhone" Text='<%#Bind("Address")%>'></asp:TextBox></td> |
</tr> |
<tr> |
<td style="width:100px; padding-left:10px" >Date:</td> |
<td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="TextBox1" Text='<%#Bind("HireDate")%>'></asp:TextBox></td> |
<td style="width:350px; padding-left:10px" colspan="2" > |
<asp:LinkButton CssClass="lnkSubmit" ID="btnOK" runat="server" CommandName="Update">OK</asp:LinkButton> |
<asp:LinkButton CssClass="lnkSubmit" ID="btnCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> |
</td> |
</tr> |
</table> |
</FormTemplate> |
</EditFormSettings> |
I see only one example with edit form template on your web site, and that one is using non-standard data source and is visualy very difficult to follow. Not to mention dirty code with ? instead of parameter names and non-maximisable code window. Link: http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultCS.aspx
Please let me know how to use custom template form for automatic operations.
Regards,
Alex
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
style
type
=
"text/css"
>
.iconStyle
{
top: 4px !important;
left: 5px !important;
height: 32px !important;
width: 32px !important;
}
</
style
>
<
telerik:RadStyleSheetManager
id
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<%--Needed for JavaScript IntelliSense in VS2010--%>
<%--For VS2008 replace RadScriptManager with ScriptManager--%>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
telerik:RadButton
runat
=
"server"
ID
=
"RadButton1"
Text
=
"Go to basket"
Height
=
"40px"
Width
=
"200px"
EnableBrowserButtonStyle
=
"true"
>
<
Icon
PrimaryIconUrl
=
"App_Themes/Default/Graphics/shopping_cart_lrg.png"
PrimaryIconCssClass
=
"iconStyle"
/>
</
telerik:RadButton
>
</
div
>
</
form
>
</
body
>
</
html
>
<
telerik:RadBinaryImage
ID
=
"rbiSpeaker"
DataValue='<%#Eval("Image") %>' ToolTip='<%#Eval("Name") %>' Width="180px" Height="234px" AutoAdjustImageControlSize="true" AlternateText='<%#Eval("Name") %>' CssClass="speaker-photo" runat="server" />
SelectedDate property only works for dayViews, I haven't been able to find how to accomplish this in WeekView.
string[] viewImages = new string[] { "~/Email" };
RadEditor1.ImageManager.ViewPaths = viewImages;
When I run the application in the development environment and open the ImageManager for RadEditor, there are no files available for selection.
If I create an Email folder under the website and point to that folder for the ViewPaths property, the files are available.
How should I configure virtual directory so that the ImageManager can see the files properly when running in the Visual Studio 2008 development environment,
Thanks for your help!
Good Morning,
I would like to know, if possible, if you can help me with the following questions:
I wish the state of the checkbox when it was changed, to update the database table with values 0 and 1 (1 Checked, Unchecked 0)
Secondly, I would like the Calendar and Scheduler were synchronized. When clicking a date on the calendar, change the scheduler, and vice versa. If possible, when selecting a week in the Calendar, the Scheduler switch to Week view and show the selected week.