or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetailInfos.aspx.cs" Inherits="waPMHI.dlg.DetailInfos" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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"
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlockInfo"
runat
=
"server"
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function CloseWindow() {
var oWindow = GetRadWindow();
oWindow.close();
}
function AddAttachment() {
var oBrowserWnd = GetRadWindow().BrowserWindow;
setTimeout(function() {
var oWnd = oBrowserWnd.radopen("../dlg/GeneralUploader.aspx", "Upload");
oWnd.SetUrl(oWnd.GetUrl());
oWnd.add_close(OnClientClose);
}, 300);
}
function OnClientClose(oWnd) {
// Nach dem Schliessen eines Fensters: AjaxRequest
oWnd.remove_close(OnClientClose);
$find("<%= infoManager.ClientID %>").ajaxRequest("AddAttachmentClose");
}
<!-- [...] more JS -->
</
script
>
</
telerik:RadCodeBlock
>
</
head
>
<
body
class
=
"dlgInfos"
onkeypress
=
"Escape(event);"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadWindow
ID
=
"DetailInfo"
runat
=
"server"
SkinID
=
"SingletonSkin"
/>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
/>
<
telerik:RadFormDecorator
ID
=
"RadFormDecorator"
runat
=
"server"
DecoratedControls
=
"Buttons"
/>
<
telerik:RadAjaxManager
ID
=
"infoManager"
runat
=
"server"
OnAjaxRequest
=
"InfoManager_AjaxRequest"
/>
<
table
width
=
"100%"
cellpadding
=
"0px"
cellspacing
=
"0px"
>
<
tr
>
<
td
>
<
asp:UpdatePanel
ID
=
"FormPanel"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<!-- More Elements [...] -->
<
asp:Button
ID
=
"btnAddAttachment"
Enabled
=
"false"
runat
=
"server"
Text="<%$Resources:TextResources, ID_MAIL_ADDATTACHMENT%>"
OnClick="btnAddAttachment_Click" />
<!-- More elements [...] -->
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
br
/>
<
telerik:RadGrid
runat
=
"server"
Width
=
"100%"
ID
=
"attGrid"
ShowHeader
=
"false"
AutoGenerateColumns
=
"true"
OnNeedDataSource
=
"infoGrid_NeedDataSource"
>
</
telerik:RadGrid
>
</
form
>
</
body
>
</
html
>
PrintEditor.ExportToPdf();
When I do I can the attached error. The thing is, when I copy the html code from the editor and hard code it in to the <Content></Content> tags it works fine.protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem dataItem = (GridDataItem)e.Item;
rev1Sum += CorrectlyParseString((dataItem[
"Rev1"
].FindControl(
"Rev1Label"
)
as
Label).Text.ToString());
}
else
if
(e.Item
is
GridFooterItem)
{
GridFooterItem footer = (GridFooterItem)e.Item;
(footer[
"Rev1"
].FindControl(
"Rev1Total"
)
as
RadNumericTextBox).Value = Double.Parse(rev1Sum.ToString());
}
}
I have a RadGrid that has a DataList inside of each row.
The DataList has checkboxes in them.
Example:
Let's say the grid has four rows, and the datalist inside each row has three rows itself.
When a user checks one of the checkboxes in the datalist, I need the same checkbox in the the other three rows with the same value to get checked. Would it be easier for me to do it client side or server side? Also, any help to achieve this would be great.
Here a sample of the code:
<
telerik:GridTemplateColumn
HeaderText
=
"Optional Languages"
HeaderStyle-Width
=
"100%"
ItemStyle-HorizontalAlign
=
"Left"
Groupable
=
"false"
>
<
ItemTemplate
>
<
asp:DataList
ID
=
"DataListl"
OnItemDataBound
=
"DataList1_ItemDataBound"
RepeatLayout
=
"Table"
Width
=
"100%"
ItemStyle-BorderStyle
=
"None"
runat
=
"server"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"CheckboxOptional1"
runat
=
"server"
/>
<
asp:Literal
ID
=
"LiteralOptional1"
Visible
=
"false"
runat
=
"server"
/>
</
ItemTemplate
>
</
asp:DataList
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
>
<
Icon
PrimaryIconUrl
=
"images/icons/find.png"
/>
</
telerik:RadButton
>