<
NoRecordsTemplate>
<
center
>
<
iframe
src='<%= GetTrainingVideo("RiskManagement.Options") %>' class="EmbededVimeo"
width="400" height="300" frameborder="0">
</
iframe
>
</
center
>
</
NoRecordsTemplate
>
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'hidden" />
</
div
>
|0|updatePanel|ctl0'.
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Test._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
>Test</
title
>
</
head
>
<
body
>
<
form
id
=
"MainForm"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadSCM"
runat
=
"server"
/>
<
asp:Panel
ID
=
"pnlWrapper"
runat
=
"server"
DefaultButton
=
"btnSearch"
>
<
telerik:RadTextBox
ID
=
"tbSearch"
runat
=
"server"
EmptyMessage
=
"Search"
Width
=
"130"
/>
<
telerik:RadButton
ID
=
"btnSearch"
ButtonType
=
"StandardButton"
Text
=
"Search"
ToolTip
=
"Searching"
runat
=
"server"
OnClick
=
"btnSearch_Click"
/>
</
asp:Panel
>
<
asp:Label
ID
=
"lblMsg"
runat
=
"server"
/>
</
form
>
</
body
>
</
html
>
using
System;
namespace
Test
{
public
partial
class
_Default : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
lblMsg.Text =
string
.Empty;
}
protected
void
btnSearch_Click(
object
sender, EventArgs e)
{
lblMsg.Text =
"O.K. - Button fired"
;
}
}
}
Hi ,
by setting dateinput-label property to any string value for example "DATA:" , the control is rendered with the label duplicate. ("DATA: DATA:")
This is my piece of code:
<telerik:RadDatePicker ID="RadDatePicker1" DateInput-Label="TESTO:" runat="server">
</telerik:RadDatePicker>
My version of Telerik Library is 2012.2.607.35
Thanks in advance
Gaetano
protected
override
void
OnPreRender(EventArgs e)
{
try
{
//Hide controls on the page based on permission
//Code to hide control
// code to hide RadGrid AddNewRecordButton
RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton =
false
;
}
base
.OnPreRender(e);
}
catch
(Exception ex)
{
HandleException(ex, ErrorControl);
}
}
Hi Team,
1) We are using RadGrid in our application, we plan to use the In-built functionality from Telerik Radgrid for Exporting the Grid data to Word document and PDF format document. We have Grid data, and Chart Image for the corresponding Grid Data which we displaying outside the Grid. I have attached the Screenshot of my application, I need to populate the Chart Image along with the Grid Data to word document and pdf document while export. (attached file Name: Application_ScreenShot.JPG)
2) Also I would like to know that Isn't it possible to export the Grid data with skin(font color,fort size,font family) to Word and Excel and PDF format.
3) While I tried to Export into PDF format, the Grid Data is not populating properly. Kindly find the attached file for get me.(attached File Name for reference: PDF.JPG)
Please give me any possible solution on this ASAP.
Thanks
Alexis
protected void Item_PreRender(object sender, EventArgs e)
{
string text = ((GridGroupHeaderItem)sender).DataCell.Text;
for (int i = 4; i < ((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns.Length; i++)
{
TableCell cell = new TableCell();
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "TESTDESC")
{
cell.Text = text.Trim().Replace(": ", "");
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "Name")
{
cell.Text = "Name";
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "ToTalScores")
{
cell.Text = "Total Scores";
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "REPORTINGTIME")
{
cell.Text = "EST Time";
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "MainGroupCollapse")
{
Button ExpandControl = ((GridGroupHeaderItem)sender).Cells[0].Controls[0] as Button;
ExpandControl.CssClass = "rgCollapse";
cell.CssClass = "MainGroupCollapse";
cell.Controls.Add(ExpandControl);
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "DOWNLOAD")
{
LinkButton lnkDownloadBtn = new LinkButton();
lnkDownloadBtn.ID = "btnDownload";
lnkDownloadBtn.Text = "Download/Print";
lnkDownloadBtn.CommandName = "DownloadAndPrint";
lnkDownloadBtn.CssClass = "DownloadAndPrint";
cell.CssClass = "DownloadAndPrintCell";
cell.Controls.Add(lnkDownloadBtn);
}
if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "LeftSide")
{
cell.CssClass = "LeftRightMargin";
}
((GridGroupHeaderItem)sender).Cells.Add(cell);
}
}
protected void RadGridTest_ItemCommand(object source, GridCommandEventArgs e)
{
GridGroupHeaderItem Item2 = e.Item as GridGroupHeaderItem;
if
(Item2 is GridGroupHeaderItem)
{
if (e.CommandName.Equals("DownloadAndPrint"))
{
//call custom methods
//RenderReport(TestDateTreeView.SelectedNode.Value, "Chem");
}
}
}