<script type=
"text/javascript"
>
var
tabStrip1;
function
OnClientLoad() {
tabStrip1 = $find(
'<%= RadTabStrip1.ClientID %>'
);
for
(
var
i = 0; i < tabStrip1.get_tabs().get_count(); i++) {
if
(i != 0) {
AttachCloseImage(tabStrip1.get_tabs().getItem(i),
"../../Images/delete.gif"
);
}
}
}
function
addNewTab(sender, eventArgs) {
//Va chercher l'information du row que j'ai de besoin
var
dataItem = $get(eventArgs.get_id());
var
grid = sender;
var
MasterTable = grid.get_masterTableView();
var
row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
var
cell = MasterTable.getCellByColumnUniqueName(row,
"element_couvert"
);
var
value = cell.innerHTML;
//add le tab
var
tabStrip = $find(
"<%= RadTabStrip1.ClientID %>"
);
var
tab;
tab = tabStrip.findTabByText(value);
if
(tab) {
tab.click();
}
else
{
var
tab =
new
Telerik.Web.UI.RadTab();
tab.ID = cell.innerHTML.replace(
"/"
,
""
).replace(
" "
,
""
);
tab.set_text(value);
tabStrip.trackChanges();
tabStrip.get_tabs().add(tab);
tabStrip.commitChanges();
tab.click();
AttachCloseImage(tab,
"../../Images/delete.gif"
);
}
}
function
CreateCloseImage(closeImageUrl) {
var
closeImage = document.createElement(
"img"
);
closeImage.src = closeImageUrl;
closeImage.alt =
"Fermer cet onglet"
;
return
closeImage;
}
function
AttachCloseImage(tab, closeImageUrl) {
var
closeImage = CreateCloseImage(closeImageUrl);
closeImage.AssociatedTab = tab;
closeImage.onclick =
function
(e) {
if
(!e) e = event;
if
(!e.target) e = e.srcElement;
deleteTab(tab);
e.cancelBubble =
true
;
if
(e.stopPropagation) {
e.stopPropagation();
}
return
false
;
}
tab.get_innerWrapElement().appendChild(closeImage);
}
function
deleteTab(tab) {
var
tabStrip = $find(
"<%= RadTabStrip1.ClientID %>"
);
var
multiPage = $find(
"<%= RadMultiPage1.ClientID %>"
);
var
pageView = tab.get_pageView();
var
tabToSelect = tab.get_nextTab();
if
(!tabToSelect)
tabToSelect = tab.get_previousTab();
tabStrip.trackChanges();
tabStrip.get_tabs().remove(tab);
tabStrip.commitChanges();
multiPage.trackChanges();
multiPage.get_pageViews().remove(pageView);
multiPage.commitChanges();
if
(tabToSelect)
tabToSelect.set_selected(
true
);
}
function
onTabSelecting(sender, args) {
if
(args.get_tab().get_pageViewID()) {
args.get_tab().set_postBack(
false
);
}
}
</script>
Protected
Sub
RadMultiPage1_PageViewCreated(
ByVal
sender
As
Object
,
ByVal
e
As
RadMultiPageEventArgs)
Handles
RadMultiPage1.PageViewCreated
If
e.PageView.ID <>
"RadPageView5"
Then
Dim
userControlName
As
String
=
"/Commun/UserControls/DetailElementCouvert.ascx"
Dim
ctrl
As
Control
Dim
userControl
As
Fede.Web.Sifa.DetailElementCouvert
ctrl = LoadControl(userControlName)
userControl =
CType
(ctrl, Fede.Web.Sifa.DetailElementCouvert)
userControl.ID = e.PageView.ID &
"_userControl"
userControl.Strategie = e.PageView.ID.Trim()
userControl.LaDate =
CDate
(Master.fJour.SelectedDate)
e.PageView.Controls.Add(userControl)
End
If
End
Sub
Private
Sub
AddPageView(
ByVal
tab
As
RadTab)
Dim
pageView
As
RadPageView =
New
RadPageView
pageView.ID = tab.Text
RadMultiPage1.PageViews.Add(pageView)
RadMultiPage1.SelectedIndex = RadMultiPage1.PageViews.Count - 1
pageView.CssClass =
"pageView"
tab.PageViewID = pageView.ID
End
Sub
Protected
Sub
RadTabStrip1_TabClick(
ByVal
sender
As
Object
,
ByVal
e
As
RadTabStripEventArgs)
Handles
RadTabStrip1.TabClick
If
String
.IsNullOrEmpty(e.Tab.PageViewID)
Then
AddPageView(e.Tab)
e.Tab.PageView.Selected =
True
e.Tab.Selected =
True
End
If
End
Sub
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
Orientation
=
"HorizontalTop"
SelectedIndex
=
"0"
MultiPageID
=
"RadMultiPage1"
OnClientLoad
=
"OnClientLoad"
OnClientTabSelecting
=
"onTabSelecting"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"Information élément couvert"
Selected
=
"True"
PageViewID
=
"RadPageView5"
>
<
TabTemplate
>
<
div
class
=
"textWrapper"
>
Information élément couvert
</
div
>
</
TabTemplate
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"RadMultiPage1"
SelectedIndex
=
"0"
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"RadPageView5"
>
<
telerik:RadGrid
ID
=
"RadGrid1"
Culture
=
"French (Canada)"
runat
=
"server"
GroupingEnabled
=
"False"
ShowStatusBar
=
"True"
ClientSettings-ClientEvents-OnRowDblClick
=
"addNewTab"
ClientSettings-ClientEvents-OnCommand
=
"OnCommand"
>
<
MasterTableView
AllowFilteringByColumn
=
"true"
AllowPaging
=
"True"
AllowSorting
=
"true"
AutoGenerateColumns
=
"False"
PageSize
=
"16"
CommandItemDisplay
=
"Top"
>
<
CommandItemTemplate
>
<
div
style
=
"float: right"
>
<
telerik:RadButton
ID
=
"DownloadPDF"
runat
=
"server"
Text
=
"Confirmer action sur JV"
/>
<
telerik:RadButton
ID
=
"RadButton5"
runat
=
"server"
Text
=
"Confirmer action sur FT"
/>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
>
<
Icon
PrimaryIconCssClass
=
"rbRefresh"
PrimaryIconLeft
=
"8"
PrimaryIconTop
=
"4"
/>
</
telerik:RadButton
>
</
div
>
</
CommandItemTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Bottom"
/>
<
PagerStyle
AlwaysVisible
=
"True"
Mode
=
"Slider"
/>
<
ItemStyle
Wrap
=
"false"
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
<
AlternatingItemStyle
Wrap
=
"false"
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"etat_bloc"
HeaderText
=
"État du bloc"
UniqueName
=
"etat_bloc"
FilterControlWidth
=
"70%"
DataType
=
"System.String"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"strategie"
HeaderText
=
"Stratégie"
UniqueName
=
"strategie"
FilterControlWidth
=
"70%"
DataType
=
"System.String"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"element_couvert"
HeaderText
=
"Code élément couvert"
UniqueName
=
"element_couvert"
FilterControlWidth
=
"70%"
DataType
=
"System.String"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"date_echeance"
DataFormatString
=
"{0:d}"
HeaderText
=
"Date échéance"
FilterControlWidth
=
"70%"
UniqueName
=
"date_echeance"
DataType
=
"System.DateTime"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"nomi_designe"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Nominal utilisé ($)"
FilterControlWidth
=
"70%"
UniqueName
=
"nomi_designe"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"nbre_designe"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Nombre de désignations"
FilterControlWidth
=
"70%"
UniqueName
=
"nbre_designe"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"nomi_disponible"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Nominal utilisable ($)"
FilterControlWidth
=
"70%"
UniqueName
=
"nomi_disponible"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"taux_utilis_act"
HeaderText
=
"Taux utilis. actuel (%)"
FilterControlWidth
=
"70%"
UniqueName
=
"taux_utilis_act"
DataFormatString
=
"{0:N2}"
DataType
=
"System.Double"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"nomi_total_cour"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Nominal courant ($)"
FilterControlWidth
=
"70%"
UniqueName
=
"nomi_total_cour"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"nomi_total_prec"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Nominal précédent ($)"
FilterControlWidth
=
"70%"
UniqueName
=
"nomi_total_prec"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ecart_absolu"
DataFormatString
=
"{0:N0}"
HeaderText
=
"Écart absolu ($)"
FilterControlWidth
=
"70%"
UniqueName
=
"ecart_absolu"
Datatype
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ecart_pct"
HeaderText
=
"Écart (%)"
UniqueName
=
"ecart_pct"
FilterControlWidth
=
"70%"
DataFormatString
=
"{0:N2}"
DataType
=
"System.Double"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
Text
=
"Détail"
UniqueName
=
"D"
ItemStyle-HorizontalAlign
=
"Center"
ButtonType
=
"LinkButton"
CommandName
=
"CustomDetail"
/>
</
Columns
>
<
PagerStyle
AlwaysVisible
=
"True"
Mode
=
"Slider"
/>
</
MasterTableView
>
<
ClientSettings
Scrolling-UseStaticHeaders
=
"false"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"true"
ScrollHeight
=
""
/>
<
Resizing
AllowResizeToFit
=
"true"
AllowColumnResize
=
"true"
EnableRealTimeResize
=
"true"
/>
</
ClientSettings
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
..........
<
style
type
=
"text/css"
>
.list {
float: left;
width: 100px;
}
.idClass {
float: left;
width: 20px;
}
</
style
>
.........
<
telerik:RadListBox
ID
=
"RadListBox1"
runat
=
"server"
Width
=
"400px"
Height
=
"200px"
TransferToID
=
"RadListBox2"
AllowTransfer
=
"true"
SelectionMode
=
"Multiple"
AutoPostBackOnTransfer
=
"true"
AllowReorder
=
"true"
AutoPostBackOnReorder
=
"true"
EnableDragAndDrop
=
"true"
OnDropped
=
"RadListBox_Dropped"
AppendDataBoundItems
=
"False"
DataSourceID
=
"SqlDataSource1"
DataTextField
=
"Nombre"
DataValueField
=
"ID"
OnTransferred
=
"RadListBox1_Transferred"
OnItemDataBound
=
"RadListBox1_ItemDataBound"
TransferMode
=
"Copy"
CausesValidation
=
"false"
>
<
ButtonSettings
ShowTransfer
=
"false"
/>
<
ItemTemplate
>
<
span
style
=
"float:left;"
>
<
img
src='<%# Eval("Foto") %>' width="30px" height="30px" alt="dd"/>
</
span
>
<
span
style
=
"float:left;padding:10px"
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text='<%# Eval("ID") %>' CssClass="idClass"></
asp:Label
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text='<%# Eval("Nombre") %>' CssClass="list"></
asp:Label
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text='<%# Eval("Apellidos") %>' CssClass="list"></
asp:Label
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Text='<%# Eval("Rol") %>'></
asp:Label
>
</
span
>
</
ItemTemplate
>
</
telerik:RadListBox
>
<
telerik:RadListBox
ID
=
"RadListBox2"
runat
=
"server"
Width
=
"400px"
Height
=
"200px"
AllowTransfer
=
"true"
SelectionMode
=
"Multiple"
AllowReorder
=
"true"
AutoPostBackOnTransfer
=
"true"
TransferMode
=
"Copy"
AutoPostBackOnReorder
=
"true"
TransferToID
=
"RadListBox3"
EnableDragAndDrop
=
"true"
AppendDataBoundItems
=
"false"
OnDropped
=
"RadListBox_Dropped"
>
<
ItemTemplate
>
<
span
style
=
"float:left;"
>
<
img
src='<%# Eval("Foto") %>' width="30px" height="30px" alt="dd"/>
</
span
>
<
span
style
=
"float:left;padding:10px"
>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
Text='<%# Eval("ID") %>' CssClass="idClass"></
asp:Label
>
<
asp:Label
ID
=
"Label6"
runat
=
"server"
Text='<%# Eval("Nombre") %>' CssClass="list"></
asp:Label
>
<
asp:Label
ID
=
"Label7"
runat
=
"server"
Text='<%# Eval("Apellidos") %>' CssClass="list"></
asp:Label
>
<
asp:Label
ID
=
"Label8"
runat
=
"server"
Text='<%# Eval("Rol") %>'></
asp:Label
>
</
span
>
</
ItemTemplate
>
</
telerik:RadListBox
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:CNXPostes%>"
ProviderName="System.Data.SqlClient"
SelectCommand="select Foto,ID, Nombre, Apellidos, Rol from empleado">
</
asp:SqlDataSource
>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;
using Telerik.Web.UI;
public partial class Admin_TratandoProbar : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadListBox_Dropped(object sender, RadListBoxDroppedEventArgs e)
{
}
protected void RadListBox1_ItemDataBound(object sender, RadListBoxItemEventArgs e)
{
}
protected void RadListBox1_Transferred(object sender, RadListBoxTransferredEventArgs e)
{
// foreach (RadListBoxItem item in e.Items)
//{
// item.DataBind();
//}
}
}
var
s = {
"primaryIconUrl"
:
"../images/icons/EnableConvex24.png"
,
"primaryHeight"
:
"24px"
,
"primaryWidth"
:
"24px"
};
btnActivate.set_iconData(s);
btnActivate.repaint();
<
asp:Panel
ID
=
"WelcomePanel"
runat
=
"server"
>
<
div
id
=
"WelcomeMsg"
style
=
"margin-left:20px; margin-right:20px; text-align:center;"
>
<
span
style
=
"font-weight: bold; font-size: medium; text-align: center;"
>SCMS Management System Owner / Point-Of-Contact<
br
/>
Requirements Management Interface</
span
>
<
br
/> <
p
style
=
"text-align:justify;"
>
The Office of SCience Management System (SCMS) is primarily a tool for setting institutional standards and conveying related information to staff. It is also the tool by which SC develops, integrates, and demonstrates SC's conformance to requirements.
</
p
><
br
/>
<
p
style
=
"text-align:left;"
>
Click on one of the High-Level SCMS Requirements to display its detail.
</
p
>
</
div
>
</
asp:Panel
>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
>
<
div
id
=
"inactive"
style
=
"text-align:center;"
>
<
asp:Label
ID
=
"lblInactive"
runat
=
"server"
Text
=
"-- INACTIVE REQUIREMENT --"
ForeColor
=
"Red"
Font-Bold
=
"True"
></
asp:Label
>
</
div
>
<
h1
style
=
"top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px;"
>
<
asp:PlaceHolder
ID
=
"Header_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
h1
>
<
h2
style
=
"top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px; font-size: medium;"
>
<
asp:PlaceHolder
ID
=
"Header2_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
h2
>
<
div
class
=
"titleLarge"
>Management Systems</
div
><
br
/>
<
ul
class
=
"RDRImp"
>
<
asp:PlaceHolder
ID
=
"MS_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
ul
>
<
div
class
=
"titleLarge"
>Policies</
div
><
br
/>
<
div
style
=
"text-align: center;"
><
asp:Label
ID
=
"lblNoPolicies"
runat
=
"server"
Text
=
"None"
Font-Bold
=
"True"
Font-Size
=
"Medium"
></
asp:Label
>
</
div
>
<
ul
class
=
"RDRImp"
>
<
asp:PlaceHolder
ID
=
"Policy_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
ul
>
<
div
class
=
"titleLarge"
>Subject Areas / Procedures</
div
><
br
/>
<
div
style
=
"text-align: center;"
><
asp:Label
ID
=
"lblNoSAs"
runat
=
"server"
Text
=
"None"
Font-Bold
=
"True"
Font-Size
=
"Medium"
></
asp:Label
>
</
div
>
<
ul
class
=
"RDRImp"
>
<
asp:PlaceHolder
ID
=
"SA_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
ul
>
<
div
class
=
"titleLarge"
>RDR Actions</
div
><
br
/>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"False"
CssClass
=
"RadGrid_Default"
CellSpacing
=
"0"
style
=
"margin-left: 20px !important; margin-right: 20px !important;"
ItemStyle-VerticalAlign
=
"Top"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Comments"
FilterControlAltText
=
"Filter line column"
HeaderText
=
"Action"
UniqueName
=
"Action"
FilterControlWidth
=
"150px"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Bottom"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DueDate"
FilterControlAltText
=
"Filter line column"
HeaderText
=
"Planned"
UniqueName
=
"Planned"
FilterControlWidth
=
"150px"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CompDate"
FilterControlAltText
=
"Filter line column"
HeaderText
=
"Complete"
UniqueName
=
"Complete"
FilterControlWidth
=
"150px"
DataFormatString
=
"{0:MM/dd/yy}"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ActionOwner"
FilterControlAltText
=
"Filter line column"
HeaderText
=
"Action Owner"
UniqueName
=
"ActionOwner"
FilterControlWidth
=
"150px"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
br
/>
<
div
class
=
"titleLarge"
>Training</
div
>
<
div
style
=
"text-align: center; margin-top: 20px;"
><
asp:Label
ID
=
"lblNoTraining"
runat
=
"server"
Text
=
"None"
Font-Bold
=
"True"
Font-Size
=
"Medium"
></
asp:Label
>
</
div
>
<
ul
class
=
"RDRImp"
>
<
asp:PlaceHolder
ID
=
"Training_PlaceHolder"
runat
=
"server"
></
asp:PlaceHolder
>
</
ul
>
<
div
style
=
"text-align:center;"
>
<
br
/>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"RDR Initiate Date:"
></
asp:Label
>
<
asp:Label
ID
=
"lblInitiateDate"
runat
=
"server"
Text
=
""
></
asp:Label
>
<
br
/>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text
=
"RDR Approval Date:"
></
asp:Label
>
<
asp:Label
ID
=
"lblApprovalDate"
runat
=
"server"
Text
=
""
></
asp:Label
>
<
br
/>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text
=
"RDR Approved By:"
></
asp:Label
>
<
asp:Label
ID
=
"lblApprovedBy"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
div
>
</
asp:Panel
>
<
telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMenu1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"WelcomePanel"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"Panel1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
e.RebindReason == GridRebindReason.ExplicitRebind
/*This function displays a confirm dialog box when the user clicks the delete button */
function DeleteOnClientClickingExternal(sender, args, radGrid) {
var MasterTable = radGrid.get_masterTableView();
var selectedRows = MasterTable.get_selectedItems();
if (selectedRows.length > 0) {
var callBackFunction = Function.createDelegate(sender, function(argument) {
if (argument) {
this.click();
}
});
var text = "This process CANNOT be un-done.\\nAre you sure you want to delete this record?.";
radconfirm(text, callBackFunction, 500, 100, null, "Delete Record");
args.set_cancel(true);
}
else {
alert('You must select a row to be deleted.');
args.set_cancel(true);
}
}