or
function
sortByStatus() {
// var item = eventArgs.get_item();
// var strSort = item.get_value();
var
combo = $find(
"<%= rcbStatus.ClientID %>"
);
var
comboItem = combo.get_selectedItem();
var
strSort = comboItem.get_value();
alert(
'Selected '
+ comboItem.get_value());
if
(strSort !=
'Active'
) {
window.location =
'meet-the-panel.aspx?paneltype='
+ strSort;
}
else
{
window.location =
'meet-the-panel.aspx'
;
}
}
<
telerik:RadComboBox
ID
=
"rcbStatus"
runat
=
"server"
Skin
=
"Black"
EnableEmbeddedSkins
=
"false"
Width
=
"220px"
>
<
Items
>
<
telerik:RadComboBoxItem
Value
=
"Active"
Text
=
"Current Panelists"
/>
<
telerik:RadComboBoxItem
Value
=
"alumni"
Text
=
"Past Panelists"
/>
</
Items
>
</
telerik:RadComboBox
>
Protected Sub ChangeBackColorIfImplied()
Dim SelectedNum As Integer = -1
Dim SelectedString As String = ""
Dim StringofUps As String = ""
lblUpInfo.Text = ""
Dim i As Integer
For i = 1 To lbUp.Items.Count - 1
If lbUp.Items(i).Selected Then
StringofUps = StringofUps & lbUp.Items(i).Value
lbUp.Items(i).Attributes.Add("style", "background-color#FFFFFF")
End If
Next i
Dim Flag As Boolean = False
Dim mylistitem As ListItem
For Each mylistitem In lbUp.Items
Dim ListItemString As String = mylistitem.Value
If InStr(StringofUps, ListItemString) > 0 Then
If StringofUps <> ListItemString Then
mylistitem.Attributes.Add("style", "background-color:#99FFFF")
lblUpInfo.Text = "All entities and people highlighted in light blue will also receive this communication"
End If
Else
mylistitem.Attributes.Add("style", "background-color:#FFFFFF")
End If
Next
End Sub
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Attach_Type_ID"
HeaderText
=
"Attach_Type_ID"
visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Name"
MaxLength
=
"50"
FilterControlAltText
=
"Filter Name column"
HeaderText
=
"Attachment Type"
UniqueName
=
"Name"
>
<
HeaderStyle
Width
=
"72px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
/>
</
Columns
>
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Login.Master" CodeBehind="AdminAttachmentType.aspx.vb" Inherits="ConEdison.PTAR.AdminAttachmentType" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
runat
=
"server"
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock2"
runat
=
"server"
>
<
style
type
=
"text/css"
>
.orderText
{
font: normal 12px Arial,Verdana;
margin-top: 6px;
}
</
style
>
</
telerik:RadCodeBlock
>
</
asp:Content
>
<
asp:Content
ID
=
"Content3"
ContentPlaceHolderID
=
"ContentHeader"
runat
=
"server"
>
<
b
>
Attachment Type Administration
</
b
>
</
asp:Content
>
<
asp:Content
ID
=
"Content4"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
></
asp:ScriptManager
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
src
=
"scripts/admin.js"
type
=
"text/javascript"
></
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadAjaxManager
ID
=
"Attach_TypeAjaxManager"
runat
=
"server"
OnAjaxRequest
=
"Attach_TypeAjaxManager_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"Attach_TypeAjaxManager"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Attach_TypeRadGrid"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"Attach_TypeRadGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Attach_TypeRadGrid"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadWindowManager1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadInputManager1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
OnItemCreated
=
"Attach_TypeRadGrid_ItemCreated"
ID
=
"Attach_TypeRadGrid"
runat
=
"server"
AllowPaging
=
"False"
AllowAutomaticDeletes
=
"True"
CellSpacing
=
"0"
ShowGroupPanel
=
"False"
PageSize
=
"50"
Skin
=
"Web20"
>
<
FilterMenu
EnableImageSprites
=
"False"
></
FilterMenu
>
<
ClientSettings
AllowColumnsReorder
=
"True"
AllowDragToGroup
=
"False"
ReorderColumnsOnClient
=
"True"
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Scrolling
AllowScroll
=
"False"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"Name"
ClientDataKeyNames
=
"Name"
Width
=
"100%"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
ShowRefreshButton
=
"True"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
SortedBackColor
=
"lightblue"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Attach_Type_ID"
HeaderText
=
"Attach_Type_ID"
visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Name"
MaxLength
=
"50"
FilterControlAltText
=
"Filter Name column"
HeaderText
=
"Attachment Type"
UniqueName
=
"Name"
>
<
HeaderStyle
Width
=
"72px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
/>
<
telerik:RadInputManager
runat
=
"server"
ID
=
"RadInputManager1"
Enabled
=
"true"
>
<
telerik:TextBoxSetting
BehaviorID
=
"TextBoxSetting1"
> </
telerik:TextBoxSetting
>
</
telerik:RadInputManager
>
</
asp:Content
>
<
asp:Content
ID
=
"Content5"
ContentPlaceHolderID
=
"ContentScriptHolder"
runat
=
"server"
>
</
asp:Content
>
Sys.Application.add_init(
function
() {
$create(Telerik.Web.UI.RadNumericTextBox, {
"_displayText"
:
""
,
"_focused"
:
false
,
"_initialValueAsText"
:
""
,
"_postBackEventReferenceScript"
:
"setTimeout(\"__doPostBack(\\\u0027entry20121022$rgSalesEntry$ctl00$ctl25$rwinNewSupplemental$C$rgSupplemental$ctl00$ctl36$txtSupplementalValue\\\u0027,\\\u0027\\\u0027)\", 0)"
,
"_skin"
:
"Default"
,
"_validationText"
:
""
,
"clientStateFieldID"
:
"entry20121022_rgSalesEntry_ctl00_ctl25_rwinNewSupplemental_C_rgSupplemental_ctl00_ctl36_txtSupplementalValue_ClientState"
,
"enabled"
:
true
,
"incrementSettings"
:{InterceptArrowKeys:
true
,InterceptMouseWheel:
true
,Step:1},
"numberFormat"
:{
"DecimalDigits"
:2,
"DecimalSeparator"
:
"."
,
"CultureNativeDecimalSeparator"
:
"."
,
"GroupSeparator"
:
","
,
"GroupSizes"
:3,
"NegativePattern"
:
"-n"
,
"NegativeSign"
:
"-"
,
"PositivePattern"
:
"n"
,
"AllowRounding"
:
true
,
"KeepNotRoundedValue"
:
false
,
"KeepTrailingZerosOnFocus"
:
true
,
"NumericPlaceHolder"
:
"n"
},
"styles"
:{HoveredStyle: [
"width:70px;text-align:right;"
,
"riTextBox riHover"
],InvalidStyle: [
"width:70px;text-align:right;"
,
"riTextBox riError"
],DisabledStyle: [
"width:70px;text-align:right;"
,
"riTextBox riDisabled"
],FocusedStyle: [
"width:70px;text-align:right;"
,
"riTextBox riFocused"
],EmptyMessageStyle: [
"width:70px;text-align:right;"
,
"riTextBox riEmpty"
],ReadOnlyStyle: [
"width:70px;text-align:right;"
,
"riTextBox riRead"
],EnabledStyle: [
"width:70px;text-align:right;"
,
"riTextBox riEnabled"
],NegativeStyle: [
"width:70px;text-align:right;"
,
"riTextBox riNegative"
]}}, {
"valueChanged"
:txtValue_ValueChangedentry20121022},
null
, $get(
"entry20121022_rgSalesEntry_ctl00_ctl25_rwinNewSupplemental_C_rgSupplemental_ctl00_ctl36_txtSupplementalValue"
));
});