Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
255 views
I have three key questions regarding the "All Fields" list in the Configuration Panel for RadPivotGrid.

1. For a DateTime field, is it possible to control the options that appear?  I have a DateTime field and the valid values for this field are month beginning dates (e.g. Jan 1 2014, Feb 1 2014, etc).  They drive some monthly reporting that is shown in the PivotGrid.  But in my field chooser I automatically also get Year, Quarter, Month, Week, Day, Hour, Minute, and Second -- which I don't want.  I have searched but can't seem to find a way to suppress them.  Is this possible?  If so, how?

2.  Regarding the rest of the fields -- can I order them how I like after they have been added to the All Fields list (so that the ordering is just shown in the All Fields list)?  I am hoping to be able to sort them alphabetically for easy reference.

3.  If a field exists in a DataTable that is the DataSource for the PivotGrid, is there a way I can exclude that field from the All Fields list?

I think these questions should be pretty straightforward.   If needed, however, I *can* provide a working solution which illustrates them.

Thanks -
Erik Dahl
Kostadin
Telerik team
 answered on 02 Sep 2016
5 answers
112 views
I am working with the latest version of the controls, using the HTMLChart for a Pie Chart and I cannot locate or use the old "DiameterScale" property anywhere - has this property been removed?  Is there any way still to determine what area of the total chart is filled by the "pie"?
Danail Vasilev
Telerik team
 answered on 02 Sep 2016
1 answer
233 views

The code  used is from already posted here. http://www.telerik.com/forums/excel-like-filtering-doesn't-fire-the-filterchecklistitemsrequested-event

The problem is I have got Excel like filtering to work for the radgrid But if I have a column already filtered in the radgrid and then another column is clicked for filtering then the dropdown should display onlt the distinct values from the already filtered values.But this doesn't seem to happen. It shows all the distinct values of the particular column even though it is not being display currently.

 

This behavior is correct with what is being shown in this demo https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

 I can see the when the apply/Clear filter is selected this data is being postback to the server. Can you tell me how I can get the column name and field so that I can store them and get the unique data from the filter conditions already set.

Can you suggest on how to achieve this functionality.

Thanks.

Kostadin
Telerik team
 answered on 02 Sep 2016
10 answers
299 views

With the RadNavigation, is there a way to control the height of the dropdowns for when the nodes are not in the more Menu (sandwich button) and controlling the height of the dropdown for the more Menu (sandwich button)?

 

Sincerely,

Keith Jackson

Ivan Danchev
Telerik team
 answered on 02 Sep 2016
5 answers
457 views
Hi,

Can you please help with following issue:
I'm using RadImageEditor to edit images from simple image gallery. But, when made any changes (crop, brush, or any other action) on Image Saving, those changes were not saved.

Rad Image Editor is defined as :

<telerik:RadImageEditor ID="rieImageEditor" runat="server" Width="760px" Height="560px" OnImageSaving="rieImageEditor_SaveImage" AllowedSavingLocation="Server" OnClientCommandExecuting="OnClientCommandExecuting">
</telerik:RadImageEditor>

it's defined inside RadWindow which is inside RadAjaxPanel.

OnClientCommandExecuting is created to avoid "Save" dialog, because it's only need to save changed content back to DB (not to change image name nor to select destination)
In "OnImageSaving" I'm taking image data :

EditableImage img = e.Image;
MemoryStream imgstream = new MemoryStream();
img.Image.Save(imgstream, img.RawFormat);

Memory stream is the data which I save back in DB.

This is my scenario:

1. Image content is load from database to the editor and it's displayed correctly
2. Do some actions on the image (crop, draw...)
3. Click "Save" button in RadImageEditor
4. On Close on RadWindow which contains RadImageEditor there is postback just to refresh image gallery

there are some cases when OnImageSave event is not even launched. But, even if it's launched, it does not save the changes.

Also for all actions there is information in status bar of the editor what's done (as "Last Action"), but there is no feedback after saving - user is no aware if image is saved correctly or not.

First, can you please help me, how to save changes made in the editor.
Second, can you please tell me how to return feedback to the user if there were some errors during saving or not.

Thanks in advance,
Regards,
Stefan
Niko
Telerik team
 answered on 02 Sep 2016
3 answers
734 views

Hi,

I have 4 tabs in my wizard loaded in user controls. On the first tab, based on a selection, I want to disable the next button to stop the user from going any further.

How can I achieve that?

Rumen
Telerik team
 answered on 02 Sep 2016
4 answers
391 views

Hi

I am trying to bind some sql data to a grid. Quite simple really. Most datatypes seem to work except GridCheckBoxColumn 

I have a bit field in sql server (all values populated). I am binding to radgrid with a datasource (LLBLGenProDataSource2) using GridCheckBoxColumn.

No  data is displayed for the checkbox column . If I bind using GridBoundColumn however it shows up! (True/False) as text

fails to show

                <telerik:GridCheckBoxColumn UniqueName="GridCheckBoxColumn" DataField="IsEnabled" HeaderText="Fails" DataType="System.Boolean" >
                </telerik:GridCheckBoxColumn>

shows up
                <telerik:GridBoundColumn DataField="IsEnabled" HeaderText="Works" UniqueName="NewIs" DataType="System.Boolean">                 
                </telerik:GridBoundColumn>

If I examine the value in the RadGrid1_ItemDataBound event it is empty (&nbsp;) for the GridCheckBoxColumn but shows True for the GridBoundColumn 

It seems odd? I can see some of your demos working with a GridCheckBoxColumn , could it be there is a different interpretation of what makes a boolean when reading from the datasource?

Your help apprciated

 

I am using the Q2 2016 sp1, VS2015 Windows 7, Chrome

 

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <telerik:RadGrid ID="RadGrid1" runat="server"
        OnItemCommand="RadGrid1_OnItemCommand"
        OnItemDataBound="RadGrid1_ItemDataBound"
        OnItemCreated="RadGrid1_ItemCreated1"
        PagerStyle-PageButtonCount="5"
        AutoGenerateColumns="false"
        DataKeyNames="OrganisationId"
        AllowPaging="True"
        AllowSorting="True"
        ShowGroupPanel="True"
        RenderMode="Auto"
        EnableLinqExpressions="false"
        AllowFilteringByColumn="True"
        AutoGenerateEditColumn="True"
        AutoGenerateDeleteColumn="True"
        DataSourceID="LLBLGenProDataSource1">
        <GroupingSettings ShowUnGroupButton="true" />

        <ExportSettings ExportOnlyData="true" IgnorePaging="true"></ExportSettings>
        <MasterTableView AllowAutomaticInserts="true"
            AllowAutomaticUpdates="true"
            AllowAutomaticDeletes="true"
            AllowFilteringByColumn="true"
            AutoGenerateColumns="False"
            EditMode="PopUp"
            TableLayout="Fixed"
            CommandItemDisplay="Top"
            InsertItemPageIndexAction="ShowItemOnFirstPage"
            DataSourceID="LLBLGenProDataSource1"
            RetrieveDataTypeFromFirstItem="true"
            DataKeyNames="OrganisationId">
            <EditFormSettings CaptionFormatString="Edit Organisation: {0}" CaptionDataField="DisplayText" PopUpSettings-Width="600px" />

            <CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowExportToPdfButton="true" ShowExportToWordButton="true" />

            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                    UniqueName="Name" AutoPostBackOnFilter="true" DataType="System.String">
                    <HeaderStyle Width="250px" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" SortExpression="Email"
                    UniqueName="Email" ReadOnly="true" DataType="System.String">
                    <HeaderStyle Width="250px" />
                </telerik:GridBoundColumn>
                <telerik:GridDropDownColumn DataSourceID="LLBLGenProDataSourceType" ListTextField="DisplayText" ListValueField="OrganisationTypeId"
                    UniqueName="OrganisationTypeId" HeaderText="DropDown Column" DataField="OrganisationTypeId"
                    AllowAutomaticLoadOnDemand="true"
                    AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="10" DropDownControlType="DropDownList">
                </telerik:GridDropDownColumn>
                <telerik:GridCheckBoxColumnUniqueName="GridCheckBoxColumn" DataField="IsEnabled" HeaderText="Fails" DataType="System.Boolean" >
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumnDataField="IsEnabled" HeaderText="Works" UniqueName="NewIs" DataType="System.Boolean">                
                </telerik:GridBoundColumn>

                <telerik:GridHTMLEditorColumn EditFormColumnIndex="0" UniqueName="Notes" SortExpression="Notes" HeaderText="HTMLEditor Column"
                    DataField="Notes" HeaderStyle-Width="200px" DataType="System.String">
                </telerik:GridHTMLEditorColumn>
                <telerik:GridDateTimeColumn UniqueName="DOB" PickerType="DatePicker" HeaderText="DOB"
                    DataField="DOB" DataFormatString="{0:d}"
                    EditDataFormatString="d" DataType="System.DateTime">
                </telerik:GridDateTimeColumn>
                <telerik:GridTemplateColumn HeaderText="Attachment" UniqueName="UploadTemplateColumn">
                    <ItemTemplate>
                        <asp:LinkButton ID="DownloadButton" runat="server" CommandName="DownloadFileAttachment"
                            Text="Download">
                        </asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadAsyncUpload ID="ImportantDocUpload" EnableInlineProgress="true" runat="server" AllowedFileExtensions=".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx" MaxFileSize="4000000">
                        </telerik:RadAsyncUpload>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Pic" UniqueName="UploadPic">
                    <ItemTemplate>
                        <asp:Image runat="server" ID="OrgPic" ImageUrl='<%# string.Format(@"{0}.emfile?d={0}",Eval("AvatarImageId")) %>' Height="48" Width="48" />

                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadAsyncUpload ID="PicUpload" EnableInlineProgress="true" runat="server" AllowedFileExtensions=".png,.jpg,.gif" MaxFileSize="4000000">
                        </telerik:RadAsyncUpload>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="ImportantDocId" Display="false" ReadOnly="true" UniqueName="ImportantDocId" DataType="System.Guid">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="AvartarImageID" Display="false" ReadOnly="true" UniqueName="PicID" DataType="System.Guid">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="true" AllowColumnHide="true" AllowDragToGroup="false">
            <Selecting AllowRowSelect="true" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            <ClientEvents OnPopUpShowing="PopUpShowing" />
        </ClientSettings>
        <PagerStyle PageButtonCount="5" />
        <FilterMenu RenderMode="Auto">
        </FilterMenu>
        <HeaderContextMenu RenderMode="Auto">
        </HeaderContextMenu>
    </telerik:RadGrid>

    <llblgenpro:LLBLGenProDataSource2 ID="LLBLGenProDataSource1" LivePersistence="true" runat="server"
        AdapterTypeName="ExamMeisterDataLayer.DatabaseSpecific.DataAccessAdapter, ExamMeisterDataLayerDBSpecific"
        DataContainerType="EntityCollection"
        EntityFactoryTypeName="ExamMeisterDataLayer.FactoryClasses.OrganisationEntityFactory, ExamMeisterDataLayer"
        OnPerformSelect="LLBLGenProDataSource1_PerformSelect"
        OnPerformGetDbCount="LLBLGenProDataSource1_PerformGetDbCount"
        OnPerformWork="LLBLGenProDataSource1_PerformWork"
        OnEntityInserting="LLBLGenProDataSource1_OnEntityInserting"
        OnEntityUpdating="LLBLGenProDataSource1_OnEntityUpdating"
        CacheLocation="ASPNetCache"
        EnablePaging="false">
    </llblgenpro:LLBLGenProDataSource2>
    <llblgenpro:LLBLGenProDataSource2 ID="LLBLGenProDataSourceType" LivePersistence="true" runat="server"
        AdapterTypeName="ExamMeisterDataLayer.DatabaseSpecific.DataAccessAdapter, ExamMeisterDataLayerDBSpecific"
        DataContainerType="EntityCollection"
        EntityFactoryTypeName="ExamMeisterDataLayer.FactoryClasses.OrganisationTypeEntityFactory, ExamMeisterDataLayer"
        CacheLocation="ASPNetCache"
        EnablePaging="false">
    </llblgenpro:LLBLGenProDataSource2>
    <llblgenpro:LLBLGenProDataSource2 ID="LLBLGenProDataSourceUpload" LivePersistence="true" runat="server"
        AdapterTypeName="ExamMeisterDataLayer.DatabaseSpecific.DataAccessAdapter, ExamMeisterDataLayerDBSpecific"
        DataContainerType="EntityCollection"
        EntityFactoryTypeName="ExamMeisterDataLayer.FactoryClasses.DocViewWithDataEntityFactory, ExamMeisterDataLayer"
        OnEntityInserting="LLBLGenProDataSourceUpload_OnEntityInserting"
        OnEntityUpdating="LLBLGenProDataSourceUpload_OnEntityUpdating"
        CacheLocation="ASPNetCache"
        EnablePaging="false">
    </llblgenpro:LLBLGenProDataSource2>
    <telerik:RadCodeBlock runat="server">
        <script type="text/javascript">
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("Button") >= 0) {
                    args.set_enableAjax(false);
                }
            }
        </script>
    </telerik:RadCodeBlock>

Tim Titchmarsh
Top achievements
Rank 2
 answered on 02 Sep 2016
4 answers
129 views

Is it possible to add error bars to a column chart using UI for ASP.NET AJAX? Haven't been able to find any information on this. Thanks.

 

Marin Bratanov
Telerik team
 answered on 02 Sep 2016
2 answers
323 views

I am using a telerik Grid (version 2015.2.826.45) 

when applying Filters, i am getting filter in the next row. Instead i want to have filters in the same row as column name. 

This is the example i followed to create my grid. I do not want the filters in the second row but want them in the same row as the column header.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

 

Pierre
Top achievements
Rank 1
 answered on 02 Sep 2016
1 answer
533 views
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +191
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +510
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1298
   Telerik.Web.UI.RadComboBox.PerformSelect() +68
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +71
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +88
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883

 

 

Any help would be appreciated.

 

 

 

001.<body onload="maxWindow();">
002.    <form id="form1" runat="server" style="position: relative">
003.    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
004.    </telerik:RadStyleSheetManager>
005. 
006.    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
007.    </telerik:RadScriptManager>
008. 
009.    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
010.        <script type="text/javascript">
011.            function isNotIE8CompatMode() {
012.                return ($.browser.msie && document.documentMode
013.                && document.documentMode < 8);
014.            }
015. 
016.//            if (isNotIE8CompatMode())
017.//                alert('Please disable "Compatability View" in the Internet Explorer "Tools" menu.');
018. 
019.            function InitiateAsyncRequest(argument) {
020.                var ajaxManager = $find("<%= RadAjaxManager2.ClientID %>");
021.                ajaxManager.ajaxRequest(argument);
022.                return false;
023.            }
024. 
025.            function ValueChanged(sender, e) {
026.                //var div = document.getElementById("Div1");
027.                //div.innerHTML = "ValueChanged (Client Event): OldValue=" + e.get_oldValue() + "; NewValue=" + e.get_newValue() + ";";
028.                InitiateAsyncRequest(sender.get_id());
029.                e.set_cancel(true);
030.            }
031. 
032.            function btnClickedTop(sender, args) {
033.                var button = null;
034. 
035.                var validated = Page_ClientValidate('SubmitGroup');
036.                if (!validated) return;
037. 
038.                button = $find("<%=btnSaveExitTop.ClientID %>");
039.                if (button != null)
040.                    button.set_enabled(false);
041. 
042.                button = $find("<%=btnSaveTop.ClientID %>");
043.                if (button != null)
044.                    button.set_enabled(false);
045.            }
046. 
047. 
048.            function ClosedRequestClientValidate(source, arguments) {
049.                arguments.IsValid = false;
050.                var button = null;
051.                var rcbStatus = document.getElementById('rcbStatus');
052.                if (rcbStatus != null) {
053.                    if (rcbStatus.value.toString().toLowerCase() == 'closed') {
054.                        var rcbRiskRemoved = $find("<%=rcbRiskRemoved.ClientID%>");
055.                        var rdpDateClosed = $find("<%=rdpDateClosed.ClientID%>");
056. 
057.                        if (rcbRiskRemoved != null && rdpDateClosed != null) {
058.                            if (rcbRiskRemoved.get_value() != '') {
059.                                if (rdpDateClosed.get_selectedDate() != null) {
060.                                    arguments.IsValid = true;
061.                                }
062.                                else {
063.                                    if (btnApprove != null)
064.                                        btnApprove.set_enabled(true);
065. 
066.                                    button = $find("<%=btnSaveTop.ClientID %>");
067.                                    if (button != null)
068.                                        button.set_enabled(true);
069. 
070.                                    button = $find("<%=btnSaveExitTop.ClientID %>");
071.                                    if (button != null)
072.                                        button.set_enabled(true);
073. 
074.                                }
075.                            }
076.                            else {
077.                                button = $find("<%=btnSaveTop.ClientID %>");
078.                                if (button != null)
079.                                    button.set_enabled(true);
080. 
081.                                button = $find("<%=btnSaveExitTop.ClientID %>");
082.                                if (button != null)
083.                                    button.set_enabled(true);
084. 
085.                            }
086.                        }
087.                        else //(rcbRiskRemoved == null || rdpDateClosed == null)
088.                        {
089.                            button = $find("<%=btnSaveTop.ClientID %>");
090.                            if (button != null)
091.                                button.set_enabled(true);
092. 
093.                            button = $find("<%=btnSaveExitTop.ClientID %>");
094.                            if (button != null)
095.                                button.set_enabled(true);
096. 
097.                        }
098.                    } // Status == 'closed')
099.                    else  // Status != 'closed', display the close button)
100.                    {
101.                     }
102.                // if (rcbStatus != null)
103. 
104.                $find("<%=btnSaveTop.ClientID %>");
105.                if (button != null)
106.                    button.set_enabled(true);
107. 
108.                $find("<%=btnSaveExitTop.ClientID %>");
109.                if (button != null)
110.                    button.set_enabled(true);
111. 
112.            }
113. 
114.            function OnClientHidden(sender, args) {
115.                //RadNotification is hidden. Need to refresh the parent window.
116.                var notification = $find("<%=RadNotification1.ClientID %>");
117.                var commandName = "saveonly";
118. 
119.                if (notification != null)
120.                    commandName = notification.get_value();
121. 
122.                if (opener) {
123.                    if (opener.document.getElementById('btnCancel') != null) {
124.                        opener.document.getElementById('btnCancel').click();
125.                    }
126.                    else {
127.                        opener.location.reload();
128.                        if (commandName.toLowerCase() != "saveonly") {
129.                            window.close();
130.                        }
131.                    }
132.                }
133.                else {
134.                    if (commandName.toLowerCase() != "saveonly") {
135.                        window.close();
136.                    }
137.                    //window.location.reload();
138.                }
139. 
140. 
141. 
142.            }
143.        </script>
144.        </telerik:RadCodeBlock>
145.    <br />
146.    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
147.        OnAjaxRequest="RadAjaxManager2_AjaxRequest">
148.        <AjaxSettings>
149.            <telerik:AjaxSetting AjaxControlID="RadAjaxManager2">
150.                <UpdatedControls>
151.                    <telerik:AjaxUpdatedControl ControlID="tbRiskIdOk" UpdatePanelRenderMode="Inline" />
152.                </UpdatedControls>
153.            </telerik:AjaxSetting>
154.        </AjaxSettings>
155.    </telerik:RadAjaxManager>
156.        <telerik:RadNotification ID="RadNotification1" runat="server" Animation="None" EnableRoundedCorners="True"
157.        EnableShadow="True" Font-Names="verdana" Font-Size="9pt" OnClientHidden="OnClientHidden"
158.        Height="141px" LoadContentOn="FirstShow" Overlay="True" Position="Center" Skin="Web20"
159.        Title="HES OPC Risk Registers" Visible="False" Width="390px" ContentIcon="Images/accept.png">
160.        <NotificationMenu ID="TitleMenu">
161.        </NotificationMenu>
162.    </telerik:RadNotification>
163.    <div id="topButtons" style="width: 95%; padding-left: 10px">
164.            <telerik:RadButton ID="btnSaveExitTop" runat="server" Font-Names="Verdana" ValidationGroup="SubmitGroup"
165.               Font-Size="8pt" Skin="Windows7" Text="Save Exit" CommandArgument="SaveExit" OnClick="btnSave_Click" OnClientClicked="btnClickedTop" >
166.           </telerik:RadButton>
167.               
168.        <telerik:RadButton ID="btnSaveTop" runat="server" Font-Names="Verdana" ValidationGroup="SubmitGroup"
169.            Font-Size="8pt" Skin="Office2010Blue" Text="Save" CommandArgument="SaveOnly" OnClick="btnSave_Click" OnClientClicked="btnClickedTop" >
170.        </telerik:RadButton>
171.            
172.        <telerik:RadButton ID="btnCancelTop" runat="server" AutoPostBack="False" CausesValidation="False"
173.            Font-Names="Verdana" Font-Size="8pt" OnClientClicked="CloseWindow" Skin="Office2010Blue"
174.            Text="Cancel">
175.        </telerik:RadButton>
176.                 
177.     <asp:LinkButton Font-Names="Verdana" Font-Size="8pt" ID="lnkbtnPrint" runat="server" onclick="lnkbtnPrint_Click">Print</asp:LinkButton>
178.    <asp:ImageButton ID="imgbtnPrint" runat="server" AlternateText="Print Risk Register"
179.        CausesValidation="False" ImageAlign="AbsMiddle" ImageUrl="~/Images/printer.png"
180.        ToolTip="Click to print the Risk Register" />        
181.             
182.        <asp:LinkButton Font-Names="Verdana" Font-Size="8pt" ID="lnkbtnViewWFHistory" runat="server">History</asp:LinkButton>
183.        <asp:ImageButton ID="imgbtnViewWFHistory" runat="server" AlternateText="View Workflow History"
184.            CausesValidation="False" ImageAlign="AbsMiddle" ImageUrl="~/Images/date_magnify.png"
185.            ToolTip="Click to view the workflow history" />
186.    </div>
187. 
188.    <asp:ValidationSummary ID="valSummarySubmit" ValidationGroup="SubmitGroup" runat="server"
189.        ShowSummary="true" HeaderText="Validation Errors" ForeColor="DarkRed" Width="95%"
190.        BorderStyle="Solid" BorderWidth="0" />
191.    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
192.        <telerik:RadPageView ID="pvStart" runat="server" Selected="true">
193.            <div>
194.                <fieldset  style="width: 95%; position: relative; padding-top: 5px;
195.                    padding-bottom: 5px;">
196.                    <legend><b>General Info</b></legend>
197.                    <table>
198.                        <tr>
199.                            <td class="FieldLabelOCC">
200.                                Risk ID
201.                            </td>
202.                            <td class="FieldValue">
203.                                <telerik:RadTextBox ID="tbRiskId" runat="server" Width="350px" TabIndex="9" AutoPostBack="true">
204.                                    <ClientEvents OnValueChanged="ValueChanged"></ClientEvents>
205.                                </telerik:RadTextBox>  <asp:TextBox ID="tbRiskIdOk" BackColor="Transparent"
206.                                    BorderWidth="0px" Width="280" ReadOnly="true" runat="server"></asp:TextBox>
207.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" ControlToValidate="tbRiskId"
208.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Risk ID"
209.                                    runat="server">
210.                                    <img id="Img29" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
211.                                   <asp:TextBox ID="lblRegisterId" runat="server" Width="350px" Style="display: none"></asp:TextBox>
212.                                <br />
213.                                <asp:CompareValidator ID="CompareValidator1" runat="server" ValidationGroup="SubmitGroup"
214.                                    Display="Dynamic" ErrorMessage="Duplicate Risk ID" ControlToValidate="tbRiskIdOk"
215.                                    ValueToCompare="OK">
216.                                    <img id="Img39" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:CompareValidator>
217.                            </td>
218.                            <td class="TableSpacer">
219.                                  
220.                            </td>
221.                            <td > 
222.                            </td>
223.                              <td class="FieldValue" style="width:495px"> </td>
224.                        </tr>
225.       <tr>
226.                            <td class="FieldLabelOCC">
227.                                Status
228.                            </td>
229.                            <td class="FieldValueOCC">
230.                                    <telerik:RadComboBox ID="rcbStatus" runat="server" MarkFirstMatch="True" AllowCustomText="false"
231.                                     Font-Names="verdana"
232.                                    Font-Size="8pt" Skin="Windows7" Width="355px" EmptyMessage="-select one-" NoWrap="True"
233.                                    TabIndex="1">
234.                                    <Items>
235.                                    <telerik:RadComboBoxItem Text = "Open" Value="Open" Selected="true" />
236.                                    <telerik:RadComboBoxItem Text = "Closed" Value="Closed"/>
237.                                    <telerik:RadComboBoxItem Text = "Deleted" Value="Deleted" />
238.                                    </Items>
239.                                </telerik:RadComboBox>
240.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="rcbStatus"
241.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Status"
242.                                    runat="server">
243.                                    <img id="Img4" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
244.                            </td>
245.                            <td class="TableSpacer">
246.                            </td>
247.                            <td class="FieldLabelOCC">
248.                                Original Entry Date
249.                            </td>
250.                            <td class="FieldValueOCC">
251.                                <telerik:RadDatePicker ID="rdpDateSubmitted" runat="server" Skin="Windows7" Enabled="false" >
252.                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
253.                                        Skin="Windows7">
254.                                    </Calendar>
255.                                    <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%" TabIndex="3">
256.                                    </DateInput>
257.                                    <DatePopupButton ImageUrl="" HoverImageUrl="" TabIndex="3"></DatePopupButton>
258.                                </telerik:RadDatePicker>
259.                                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator16" ControlToValidate="rdpDateSubmitted"
260.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Date Submitted"
261.                                    runat="server">
262.                                    <img id="Img17" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
263.                            </td>
264.                        </tr>
265.                        <tr>
266.                            <td class="FieldLabelOCC">
267.                                Revision
268.                            </td>
269.                            <td class="FieldValue">
270.                                <asp:TextBox ID="tbRevision" runat="server" Width="350px" TabIndex="2"></asp:TextBox>
271.                              <asp:RequiredFieldValidator ID="valRevisionSubmit" ControlToValidate="tbRevision"
272.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Revision"
273.                                    runat="server">
274.                                    <img id="Img1" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
275.                            </td>
276.                            <td class="TableSpacer"
277.                            </td>
278.                            <td class="FieldLabelOCC">
279.                            Date Revised
280.                            </td>
281.                            <td >
282.                                <telerik:RadDatePicker ID="rdpStatusDate" runat="server" Skin="Windows7" Enabled="false">
283.                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
284.                                        Skin="Windows7">
285.                                    </Calendar>
286.                                    <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%">
287.                                    </DateInput>
288.                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
289.                                </telerik:RadDatePicker>
290.                                <%--                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="rdpDateSubmitted"
291.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Date Submitted"
292.                                    runat="server">
293.                                    <img id="Img2" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
294.                            </td>
295.                        </tr>
296.                        <tr>
297.                            <td class="FieldLabelOCC">
298.                                Submitted By
299.                            </td>
300.                            <td class="FieldValue">
301.                                <asp:TextBox ID="tbSubmittedBy" runat="server" Width="350px" TabIndex="4"></asp:TextBox>
302.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="tbSubmittedBy"
303.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Submitted By"
304.                                    runat="server">
305.                                    <img id="Img3" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
306.                            </td>
307.                            <td class="TableSpacer"
308.                            </td>
309.                            <td>
310.                              
311.                            </td>
312.                            <td > 
313.                                <%--<asp:TextBox ID="tbValidatedBy" runat="server" Width="300px" TabIndex="4"></asp:TextBox>
314.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="tbValidatedBy"
315.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Validated By"
316.                                    runat="server">
317.                                    <img id="Img4" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
318.                            </td>
319.                        </tr>
320.                    </table>
321.                </fieldset>
322.                <fieldset title="Location Details" style="width: 95%; position: relative; padding-top: 5px;
323.                    padding-bottom: 5px;">
324.                    <legend>Location Details</legend>
325.                    <table>
326.                        <tr>
327.                            <td class="FieldLabelOCC">
328.                                Company
329.                            </td>
330.                            <td class="FieldValue">
331.                                <telerik:RadComboBox ID="rcbCompany" runat="server" MarkFirstMatch="True" DataSourceID="dsCompanies"
332.                                    DataTextField="CompanyName" DataValueField="CompanyName" Font-Names="verdana"
333.                                    Font-Size="8pt" Skin="Windows7" Width="355px" EmptyMessage="-select one-" NoWrap="True"
334.                                    OnItemDataBound="rcbCompany_ItemDataBound" TabIndex="5">
335.                                </telerik:RadComboBox>
336.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="rcbCompany"
337.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Company"
338.                                    runat="server">
339.                                    <img id="Img5" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
340.                                <asp:SqlDataSource ID="dsCompanies" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
341.                                    SelectCommand="SELECT CompanyName FROM [Companies] UNION SELECT Company from [OPC_RiskRegister] ORDER BY 1"></asp:SqlDataSource>
342.                            </td>
343.                            <td class="TableSpacer">
344.                                  
345.                            </td>
346.                            <td class="FieldLabelOCC">
347.                                Business Unit
348.                            </td>
349.                            <td class="FieldValue">
350.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbBusinessUnit"
351.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsBusinessUnits" DataTextField="BusinessUnitName"
352.                                    DataValueField="BusinessUnitName" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
353.                                    Width="355px" EmptyMessage="-select one-" TabIndex="6">
354.                                </telerik:RadComboBox>
355.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="rcbBusinessUnit"
356.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Business Unit"
357.                                    runat="server">
358.                                    <img id="Img6" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
359.                                <asp:SqlDataSource ID="dsBusinessUnits" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
360.                                    SelectCommand="SELECT BusinessUnitName FROM [BusinessUnits] WHERE BU_COMPANY='OPC' UNION SELECT BusinessUnit from [OPC_RiskRegister]  ORDER BY [BusinessUnitName]"></asp:SqlDataSource>
361.                            </td>
362.                        </tr>
363.                        <tr>
364.                            <td class="FieldLabelOCC">
365.                                Facility
366.                            </td>
367.                            <td class="FieldValue">
368.                                <asp:TextBox ID="tbFacility" runat="server" Width="350px" TabIndex="7"></asp:TextBox>
369.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="tbFacility"
370.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Facility"
371.                                    runat="server">
372.                                    <img id="Img7" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
373.                            </td>
374.                            <td class="TableSpacer">
375.                                  
376.                            </td>
377.                            <td class="FieldLabelOCC">
378.                                Discrete Area of Facility
379.                            </td>
380.                            <td class="FieldValue">
381.                                <asp:TextBox ID="tbDiscreteFacilityArea" runat="server" Width="350px" TabIndex="8"></asp:TextBox>
382.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" ControlToValidate="tbDiscreteFacilityArea"
383.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Discrete Area of Facility"
384.                                    runat="server">
385.                                    <img id="Img8" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
386.                            </td>
387.                        </tr>
388.                        <tr>
389.                            <td class="FieldLabelOCC">
390.                                PEC Code
391.                            </td>
392.                            <td class="FieldValue">
393.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPECCode"
394.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsPECCode" DataTextField="KeywordValue"
395.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
396.                                    Width="355px" EmptyMessage="-select one-">
397.                                </telerik:RadComboBox>
398.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="rcbPECCode"
399.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: PEC Code"
400.                                    runat="server">
401.                                    <img id="Img2" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
402.                                <asp:SqlDataSource ID="dsPECCode" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
403.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'PECCode' ORDER BY [KeywordValue]">
404.                                </asp:SqlDataSource>
405.                            </td>
406.                            <td class="TableSpacer">
407.                                  
408.                            </td>
409.                            <td class="FieldLabelOCC">
410.                                RMP Code
411.                            </td>
412.                            <td class="FieldValue">
413.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbRMPCode"
414.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRMPCodes" DataTextField="KeywordValue"
415.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
416.                                    Width="355px" EmptyMessage="-select one-" TabIndex="10">
417.                                </telerik:RadComboBox>
418.                               <asp:RequiredFieldValidator ID="RequiredFieldValidator9" ControlToValidate="rcbRMPCode"
419.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: RMP Code"
420.                                    runat="server">
421.                                    <img id="Img10" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
422.                                <asp:SqlDataSource ID="dsRMPCodes" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
423.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'RMPCode' ORDER BY [KeywordValue]">
424.                                </asp:SqlDataSource>
425.                            </td>
426.                        </tr>
427.                    </table>
428.                </fieldset>
429.                <fieldset title="Risk Details" style="width: 95%; position: relative; padding-top: 10px;
430.                    padding-bottom: 5px;">
431.                    <legend>Risk Details</legend>
432.                    <table>
433.                        <tr>
434.                            <td class="FieldLabelOCC">
435.                                Type of Register
436.                            </td>
437.                            <td colspan="4" class="FieldValue" width="1175px">
438.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbRRType"
439.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRRType" DataTextField="KeywordValue"
440.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
441.                                    Width="355px" EmptyMessage="-select one-" TabIndex="11">
442.                                </telerik:RadComboBox>
443.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" ControlToValidate="rcbRRType"
444.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Risk Register Type"
445.                                    runat="server">
446.                                    <img id="Img11" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
447.                                <asp:SqlDataSource ID="dsRRType" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
448.                                    SelectCommand="SELECT KeywordValue FROM [KeywordLookup] WHERE KeywordName = 'OPCRegisterType' UNION SELECT RiskType from OPC_RiskRegister ORDER BY 1">
449.                                </asp:SqlDataSource>
450.                            </td>
451.                        </tr>
452.                        <tr>
453.                            <td class="FieldLabelOCC">
454.                                Reason Added
455.                            </td>
456.                            <td class="FieldValue">
457.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbReasonAdded"
458.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsReasonAdded" DataTextField="KeywordValue"
459.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
460.                                    Width="355px" EmptyMessage="-select one-" TabIndex="14">
461.                                </telerik:RadComboBox>
462.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" ControlToValidate="rcbReasonAdded"
463.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Reason Added"
464.                                    runat="server">
465.                                    <img id="Img14" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
466.                                <asp:SqlDataSource ID="dsReasonAdded" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
467.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'ReasonAdded' ORDER BY [KeywordValue]">
468.                                </asp:SqlDataSource>
469.                            </td>
470.                            <td class="TableSpacer">
471.                                  
472.                            </td>
473.                            <td class="FieldLabelOCC">
474.                                Date Risk Added
475.                            </td>
476.                            <td class="FieldValue">
477.                                <telerik:RadDatePicker ID="rdpDateRiskIdentified" runat="server" Skin="Windows7"
478.                                    TabIndex="15">
479.                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
480.                                        Skin="Windows7">
481.                                    </Calendar>
482.                                    <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%">
483.                                    </DateInput>
484.                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
485.                                </telerik:RadDatePicker>
486.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" ControlToValidate="rdpDateRiskIdentified"
487.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Date Risk Identified"
488.                                    runat="server">
489.                                    <img id="Img15" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
490.                            </td>
491.                        </tr>
492.                        <tr>
493.                            <td class="FieldLabelOCC">
494.                                Risk Removed
495.                            </td>
496.                            <td class="FieldValue">
497.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbRiskRemoved"
498.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRiskRemoved" DataTextField="KeywordValue"
499.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
500.                                    Width="355px" EmptyMessage="-select one-" TabIndex="16">
501.                                </telerik:RadComboBox>
502.                              <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator15" ControlToValidate="rcbRiskRemoved"
503.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Risk Removed"
504.                                    runat="server">
505.                                    <img id="Img16" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
506.                                <asp:SqlDataSource ID="dsRiskRemoved" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
507.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'RiskRemoved' ORDER BY [KeywordValue]">
508.                                </asp:SqlDataSource>
509.                            </td>
510.                            <td class="TableSpacer">
511.                            </td>
512.                            <td class="FieldLabelOCC">
513.                                Date Closed
514.                            </td>
515.                            <td class="FieldValue">
516.                                <telerik:RadDatePicker ID="rdpDateClosed" runat="server" Skin="Windows7" TabIndex="17">
517.                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
518.                                        Skin="Windows7">
519.                                    </Calendar>
520.                                    <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%">
521.                                    </DateInput>
522.                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
523.                                </telerik:RadDatePicker>
524.                                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator16" ControlToValidate="rdpDateClosed"
525.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Date Closed"
526.                                    runat="server">
527.                                    <img id="Img17" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
528.                            </td>
529.                        </tr>
530.                        <tr>
531.                            <td class="FieldLabelOCC">
532.                                Risk Category*
533.                            </td>
534.                            <td colspan="4" class="FieldValue" width="1175px">
535.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbRiskCategory"
536.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRiskCategory" DataTextField="KeywordValue"
537.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
538.                                    Width="355px" EmptyMessage="-select one-">
539.                                </telerik:RadComboBox>
540.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" ControlToValidate="rcbRiskCategory"
541.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Risk Category"
542.                                    runat="server">
543.                                    <img id="Img12" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
544.                                <asp:SqlDataSource ID="dsRiskCategory" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
545.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'RiskCategory' ORDER BY [KeywordValue]">
546.                                </asp:SqlDataSource>
547.                            </td>
548.                        </tr>
549.                        <tr>
550.                            <td class="FieldLabelOCC">
551.                                If "Other", please describe:
552.                            </td>
553.                            <td colspan="4" class="FieldValue">
554.                                <asp:TextBox ID="tbOtherRiskCategory" runat="server" Width="350px"></asp:TextBox>
555.                            </td>
556.                        </tr>
557.                        <tr>
558.                            <td class="FieldLabelOCC">
559.                                Risk Scenario Description
560.                            </td>
561.                            <td colspan="4" class="FieldValue">
562.                                <asp:TextBox ID="tbEventScenario" runat="server" Width="350px"></asp:TextBox>
563.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" ControlToValidate="tbEventScenario"
564.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Risk Scenario Description"
565.                                    runat="server">
566.                                    <img id="Img13" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
567.                            </td>
568.                        </tr>
569.                        <tr>
570.                            <td class="FieldLabelOCC">
571.                                Primary Consequence Type
572.                            </td>
573.                            <td class="FieldValue">
574.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPrimaryConsequenceType"
575.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsPrimaryType" DataTextField="KeywordValue"
576.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
577.                                    Width="355px" EmptyMessage="-select one-">
578.                                </telerik:RadComboBox>
579.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" ControlToValidate="rcbPrimaryConsequenceType"
580.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Primary Consequence Type"
581.                                    runat="server">
582.                                    <img id="Img16" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
583.                                <asp:SqlDataSource ID="dsPrimaryType" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
584.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'PrimaryConsequenceType' ORDER BY [KeywordValue]">
585.                                </asp:SqlDataSource>
586.                            </td>
587.                            <td class="TableSpacer">
588.                            </td>
589.                            <td class="FieldLabelOCC">
590.                                Primary Event Type
591.                            </td>
592.                            <td class="FieldValue">
593.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPrimaryEventType"
594.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsPrimaryEventType" DataTextField="KeywordValue"
595.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
596.                                    Width="355px" EmptyMessage="-select one-">
597.                                </telerik:RadComboBox>
598.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" ControlToValidate="rcbPrimaryEventType"
599.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Primary Event Type"
600.                                    runat="server">
601.                                    <img id="Img17" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
602.                                <asp:SqlDataSource ID="dsPrimaryEventType" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
603.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'EventType' and KeywordValue != 'Fire and Explosion'  ORDER BY [KeywordValue]">
604.                                </asp:SqlDataSource>
605.                            </td>
606.                        </tr>
607.                        <tr>
608.                            <td class="FieldLabelOCC">
609.                                Specific Driver
610.                            </td>
611.                            <td class="FieldValue">
612.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbSpecificDriver"
613.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsSpecificDriver" DataTextField="KeywordValue"
614.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
615.                                    Width="355px" EmptyMessage="-select one-">
616.                                </telerik:RadComboBox>
617.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator17" ControlToValidate="rcbSpecificDriver"
618.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Specific Driver"
619.                                    runat="server">
620.                                    <img id="Img18" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
621.                                <asp:SqlDataSource ID="dsSpecificDriver" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
622.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'SpecificDriver' ORDER BY [KeywordValue]">
623.                                </asp:SqlDataSource>
624.                            </td>
625.                            <td class="TableSpacer">
626.                            </td>
627.                            <td class="FieldLabelOCC">
628.                                Origin*
629.                            </td>
630.                            <td class="FieldValue">
631.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbOrigin"
632.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsOrigin" DataTextField="KeywordValue"
633.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
634.                                    Width="355px" EmptyMessage="-select one-">
635.                                </telerik:RadComboBox>
636.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator18" ControlToValidate="rcbOrigin"
637.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Origin"
638.                                    runat="server">
639.                                    <img id="Img19" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
640.                                <asp:SqlDataSource ID="dsOrigin" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
641.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'Origin' ORDER BY [KeywordValue]">
642.                                </asp:SqlDataSource>
643.                            </td>
644.                        </tr>
645.                        <tr>
646.                            <td class="FieldLabelOCC">
647.                                Comments
648.                            </td>
649.                            <td class="FieldValue">
650.                                <asp:TextBox ID="tbComments" TextMode="MultiLine" Rows="3" runat="server" Width="350px"></asp:TextBox>
651.                                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator19" ControlToValidate="tbComments"
652.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Comments"
653.                                    runat="server">
654.                                    <img id="Img20" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>--%>
655.                            </td>
656.                            <td class="TableSpacer">
657.                            </td>
658.                            <td class="FieldLabelOCC">
659.                                Company Acquired From
660.                            </td>
661.                            <td class="FieldValue">
662.                                <asp:TextBox ID="tbCompanyAcquiredFrom" runat="server" Width="350px"></asp:TextBox>
663.                            </td>
664.                        </tr>
665.                    </table>
666.                </fieldset>
667.                <fieldset title="Risk Summary" style="width: 95%; position: relative; padding-top: 10px;
668.                    padding-bottom: 5px;">
669.                    <legend>Risk Summary</legend>
670.                    <table>
671.                        <tr>
672.                            <td class="FieldLabelOCC">
673.                                Mitigation Strategy
674.                            </td>
675.                            <td colspan="4" width="1175px">
676.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbMitigationStrategy"
677.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsMitigationStrategy" DataTextField="KeywordValue"
678.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
679.                                    Width="355px" EmptyMessage="-select one-">
680.                                </telerik:RadComboBox>
681.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator20" ControlToValidate="rcbMitigationStrategy"
682.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Mitigation Strategy"
683.                                    runat="server">
684.                                    <img id="Img21" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
685.                                <asp:SqlDataSource ID="dsMitigationStrategy" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
686.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'MitigationStrategy' ORDER BY [KeywordValue]">
687.                                </asp:SqlDataSource>
688.                            </td>
689.                        </tr>
690.                        <tr>
691.                            <td class="FieldLabelOCC">
692.                                Existing Risk Level
693.                            </td>
694.                            <td class="FieldValue">
695.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbExistingRiskLevel"
696.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRiskLevel" DataTextField="KeywordValue"
697.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
698.                                    Width="355px" EmptyMessage="-select one-">
699.                                </telerik:RadComboBox>
700.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator19" ControlToValidate="rcbExistingRiskLevel"
701.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Existing Risk Level"
702.                                    runat="server">
703.                                    <img id="Img20" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
704.                                <asp:SqlDataSource ID="dsRiskLevel" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
705.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'RiskLevel' ORDER BY [KeywordValue]">
706.                                </asp:SqlDataSource>
707.                            </td>
708.                            <td class="TableSpacer">
709.                            </td>
710.                            <td class="FieldLabelOCC">
711.                                Planned Risk Level
712.                            </td>
713.                            <td class="FieldValue">
714.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPlannedRiskLevel"
715.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsRiskLevel" DataTextField="KeywordValue"
716.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
717.                                    Width="355px" EmptyMessage="-select one-">
718.                                </telerik:RadComboBox>
719.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator21" ControlToValidate="rcbPlannedRiskLevel"
720.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Planned Risk Level"
721.                                    runat="server">
722.                                    <img id="Img22" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
723.                            </td>
724.                        </tr>
725.                        <tr>
726.                            <td class="FieldLabelOCC">
727.                                Existing Consequence Level
728.                            </td>
729.                            <td class="FieldValue">
730.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbExistingConsequenceLevel"
731.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsNumberLevel" DataTextField="KeywordValue"
732.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
733.                                    Width="355px" EmptyMessage="-select one-">
734.                                </telerik:RadComboBox>
735.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator22" ControlToValidate="rcbExistingConsequenceLevel"
736.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Existing Consequence Level"
737.                                    runat="server">
738.                                    <img id="Img23" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
739.                                <asp:SqlDataSource ID="dsNumberLevel" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
740.                                    SelectCommand="SELECT * FROM [KeywordLookup] WHERE KeywordName = 'NumberLevel' ORDER BY [KeywordValue]">
741.                                </asp:SqlDataSource>
742.                            </td>
743.                            <td class="TableSpacer">
744.                            </td>
745.                            <td class="FieldLabelOCC">
746.                                Planned Consequence Level
747.                            </td>
748.                            <td class="FieldValue">
749.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPlannedConsequenceLevel"
750.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsNumberLevel" DataTextField="KeywordValue"
751.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
752.                                    Width="355px" EmptyMessage="-select one-">
753.                                </telerik:RadComboBox>
754.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator23" ControlToValidate="rcbPlannedConsequenceLevel"
755.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Planned Consequence Level"
756.                                    runat="server">
757.                                    <img id="Img24" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
758.                            </td>
759.                        </tr>
760.                        <tr>
761.                            <td class="FieldLabelOCC">
762.                                Existing Probability Level
763.                            </td>
764.                            <td class="FieldValue">
765.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbExistingProbabilityLevel"
766.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsNumberLevel" DataTextField="KeywordValue"
767.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
768.                                    Width="355px" EmptyMessage="-select one-">
769.                                </telerik:RadComboBox>
770.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator24" ControlToValidate="rcbExistingProbabilityLevel"
771.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Existing Probability Level"
772.                                    runat="server">
773.                                    <img id="Img25" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
774.                            </td>
775.                            <td class="TableSpacer">
776.                            </td>
777.                            <td class="FieldLabelOCC">
778.                                Planned Probability Level
779.                            </td>
780.                            <td class="FieldValue">
781.                                <telerik:RadComboBox AppendDataBoundItems="true" AllowCustomText="false" ID="rcbPlannedProbabilityLevel"
782.                                    runat="server" MarkFirstMatch="True" DataSourceID="dsNumberLevel" DataTextField="KeywordValue"
783.                                    DataValueField="KeywordValue" Font-Names="verdana" Font-Size="8pt" Skin="Windows7"
784.                                    Width="355px" EmptyMessage="-select one-">
785.                                </telerik:RadComboBox>
786.                                <asp:RequiredFieldValidator ID="RequiredFieldValidator25" ControlToValidate="rcbPlannedProbabilityLevel"
787.                                    SetFocusOnError="true" ValidationGroup="SubmitGroup" Display="Dynamic" ErrorMessage="Missing: Planned Probability Level"
788.                                    runat="server">
789.                                    <img id="Img26" src="~/images/flag_red.png" runat="server" alt="Missing data" /></asp:RequiredFieldValidator>
790.                            </td>
791.                        </tr>
792.                    </table>
793.                </fieldset>
794.                <telerik:RadToolTip ID="rttPEC" runat="server" Font-Names="Verdana" Position="Center"
795.                    RelativeTo="Element" ShowEvent="OnClick" Font-Size="8pt" ManualClose="True" Skin="Office2010Blue"
796.                    Width="450px" TargetControlID="imgHelpPEC" IsClientID="true" OffsetX="100" OffsetY="180">
797.                    <table>
798.                        <tr>
799.                            <td colspan="3">
800.                                PEC Definitions
801.                            </td>
802.                        </tr>
803.                        <tr>
804.                            <td>
805.                                PEC1
806.                            </td>
807.                            <td width="30">
808.                                  
809.                            </td>
810.                            <td style="text-indent: 0px">
811.                                <p style="text-align: left">
812.                                    At this event scenario's assigned probability, the potential consequence exceeds
813.                                    14 permanent incapacitating injuries.</p>
814.                            </td>
815.                        </tr>
816.                        <tr>
817.                            <td>
818.                                PEC2
819.                            </td>
820.                            <td width="30">
821.                                  
822.                            </td>
823.                            <td style="text-indent: 0px">
824.                                <p>
825.                                    At this event scenario's assigned probability, the potential consequence exceeds
826.                                    $1 billion in combined PD/LOR.</p>
827.                            </td>
828.                        </tr>
829.                        <tr>
830.                            <td>
831.                                PECNA
832.                            </td>
833.                            <td width="30">
834.                                  
835.                            </td>
836.                            <td style="text-indent: 0px">
837.                                <p>
838.                                    PEC does not apply to this event scenario.</p>
839.                            </td>
840.                        </tr>
841.                    </table>
842.                </telerik:RadToolTip>
843.            </div>
844.        </telerik:RadPageView>
845.        <asp:SqlDataSource ID="dsRMM" runat="server" ConnectionString="<%$ ConnectionStrings:RR %>"
846.            SelectCommand="SELECT KeywordValue FROM [KeywordLookup] WHERE KeywordName = 'RMM' ORDER BY [KeywordValue]">
847.        </asp:SqlDataSource>
848.    </telerik:RadMultiPage>
849.    <div id="bottomButtons" style="width: 95%; padding-left: 10px">
850.            <telerik:RadButton ID="btnSaveExitBottom" runat="server" Font-Names="Verdana" ValidationGroup="SubmitGroup"
851.               Font-Size="8pt" Skin="Windows7" Text="Save Exit" CommandArgument="SaveExit" OnClick="btnSave_Click" >
852.           </telerik:RadButton>
853.               
854.        <telerik:RadButton ID="btnSave" runat="server" Font-Names="Verdana" ValidationGroup="SubmitGroup"
855.            Font-Size="8pt" Skin="Office2010Blue" Text="Save" CommandArgument="SaveOnly" OnClick="btnSave_Click">
856.        </telerik:RadButton>
857.            
858.        <telerik:RadButton ID="btnCancel" runat="server" AutoPostBack="False" CausesValidation="False"
859.            Font-Names="Verdana" Font-Size="8pt" OnClientClicked="CloseWindow" Skin="Office2010Blue"
860.            Text="Cancel">
861.        </telerik:RadButton>
862.    </div>
863.    <br />
864.    <br />
865.    <asp:TextBox ID="tbCreatedBy" runat="server" Style="display: none"></asp:TextBox>
866.    <asp:TextBox ID="tbDateCreated" runat="server" Style="display: none"></asp:TextBox>
867.    <asp:TextBox ID="tbLastModifiedBy" runat="server" Style="display: none"></asp:TextBox>
868.    <asp:TextBox ID="tbDateLastModified" runat="server" Style="display: none"></asp:TextBox>
869.    </form>
870.</body>
871.</html>

 


 
Peter Milchev
Telerik team
 answered on 02 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?