or
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Height
=
"100%"
SplitBarsSize
=
".5"
Width
=
"100%"
Orientation
=
"Vertical"
Skin
=
"WebBlue"
OnClientLoad
=
"RadSplitter1_OnClientLoad"
>
<
telerik:RadPane
ID
=
"LeftPane"
runat
=
"server"
Width
=
"200px"
MaxWidth
=
"300"
ShowContentDuringLoad
=
"false"
>
<
h1
>
Hello World</
h1
</telerik:RadPane>
<
telerik:RadSplitBar
ID
=
"Radsplitbar1"
runat
=
"server"
>
</
telerik:RadSplitBar
>
<
telerik:RadPane
ID
=
"MiddlePane1"
runat
=
"server"
CssClass
=
"contentPaneDecorator"
ShowContentDuringLoad
=
"false"
>
<
asp:ContentPlaceHolder
ID
=
"ContentPlaceHolder1"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
<
ClientSettings
EnablePostBackOnRowClick
=
"true"
><
br
> <
ClientEvents
OnRowDblClick
=
"SelectTab"
/><
br
> <
Selecting
AllowRowSelect
=
"true"
/><
br
> </
ClientSettings
>
<
script
type
=
"text/javascript"
><
br
><
br
> function SelectTab() {<
br
> var tabStrip = $find("<%= rdDisputeOutputTabStripDetail.ClientID %>");<
br
> var tab = tabStrip.findTabByText("Detail");<
br
> if (tab) {<
br
> tab.select();<
br
> $('html,body').scrollTop(0);<
br
> }<
br
> } <
br
> </
script
>
<
ClientSettings
AllowKeyboardNavigation
=
"true"
> <
br
> <
ClientEvents
OnKeyPress
=
"keyPressed"
/> <
br
> <
Selecting
AllowRowSelect
=
"true"
/><
br
> </
ClientSettings
> <
br
>
<
script
type
=
"text/javascript"
><
br
><
br
function keyPressed(sender, args) {<
br
if (args.get_keyCode() == 13) {<
br
alert("Hello");<
br
var e = args.get_domEvent().rawEvent;<
br
e.returnValue = false;<
br
e.cancelBubble = true;<
br
><
br
if (e.stopPropagation) {<
br
e.preventDefault();<
br
e.stopPropagation();<
br
> }<
br
> } <
br
> <
br
> } <
br
> </
script
>
string
url, path =
""
;
bool
isExport =
false
;
protected
void
Page_Load(
object
sender, EventArgs e)
{
url = String.Format(
"~/{0}.pdf"
, RadGrid1.ExportSettings.FileName);
path = Server.MapPath(url);
}
protected
void
RadGrid1_GridExporting(
object
source, GridExportingArgs e)
{
if
(File.Exists(path))
{
File.Delete(path);
}
using
(FileStream fs = File.Create(path))
{
Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
fs.Write(info, 0, info.Length);
}
Response.Redirect(
"~/frm_UploadDocs.aspx"
);
}
protected
void
RadToolBar1_ButtonClick(
object
sender, RadToolBarEventArgs e)
{
if
(e.Item.Value ==
"Export"
)
{
//RadGrid1.ExportSettings.ExportOnlyData = false;
isExport =
true
;
RadGrid1.MasterTableView.ExportToPdf();
}
else
if
(e.Item.Value ==
"Delete"
)
{
if
(File.Exists(path))
{
File.Delete(path);
}
}
}