<
telerik:GridCalculatedColumn
SortExpression
=
"Employee.FirstName"
HeaderText
=
"Employees"
AutoPostBackOnFilter
=
"true"
DataFields
=
"Employee.Title,Employee.FirstName, Employee.LastName"
Expression
=
'{0} + ":" + {1} + " " + {2}'
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"30%"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
/>
</
telerik:GridCalculatedColumn
>
Hi,
Now i am able to print RadGrid selected row with the help of following article:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-print-selected-radgrid-row-and-add-new-link-button-in-command-item-template.aspx
I need to print Header Row along with selected row.
How can i achieve this requirement.
Thanks in advance...
.RadWindow
{
height:200px;
position: fixed !important;
}
The solution works only for a few top records. when bottom record is clicked the window won't be shown ( I think it maybe shown somewhere which I can't see) and the whole grid page is grayed out.
I don't know how to solve the problem. please help.
My code is code for reference. Thanks again.
function ShowDetail(sender, args) {
var id = args.getDataKeyValue("RowID");
var wnd = window.radopen("CommLogDetail.aspx?RowID=" + id, "RecordDetailWindow");
wnd.Center();
}
<
script
type
=
"text/javascript"
>
.RadWindow
{
height:200px;
position: fixed !important;
}
</
script
>
// and I also try to merge these codes into it ( another solution) which doesn't work.
function ShowDetail(sender, args) {
var id = args.getDataKeyValue("RowID");
var wnd = window.radopen("Detail.aspx?RowID=" + id, "RecordDetailWindow");
//wnd.Center();
GetSelectedWindow();
PositionWindow();
}
function GetSelectedWindow() {
var oManager = GetRadWindowManager();
return oManager.getActiveWindow();
}
function PositionWindow() {
var oWindow = GetSelectedWindow();
if (!oWindow) {
return;
}
////
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RecordDetailWindow"
runat
=
"server"
Title
=
"Record Detail"
Height
=
"700px"
Width
=
"900px"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
Modal
=
"true"
CssClass
=
"RadWindow"
/>
</
Windows
>
</
telerik:RadWindowManager
>
<
telerik:GridCalculatedColumn
SortExpression
=
"Employee.FirstName"
HeaderText
=
"Employees"
AutoPostBackOnFilter
=
"true"
DataFields
=
"Employee.Title,Employee.FirstName, Employee.LastName"
Expression
=
'{0} + ":" + {1} + " " + {2}'
>
<
HeaderStyle
HorizontalAlign
=
"Left"
Width
=
"30%"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
/>
</
telerik:GridCalculatedColumn
>
<
EditColumn CancelText="Cancel" UpdateText="Update" ButtonType="PushButton"></EditColumn>