or
function
OnClientSelectedIndexChanged(sender, eventArgs) {
var
item = eventArgs.get_item();
if
(item.get_text() ==
"Rejected"
) {
var
WorkItemId = [...]
OpenReasonWindow(workItemId);
}
}
<
tr
id
=
"ctl00_PageContent_rtlRshItems_ctl04__2"
class
=
"rtlR rtlRL"
style
=
"background-color:Lavender;"
>
<
td
align
=
"left"
valign
=
"middle"
style
=
"width:90px;"
>
<
div
id
=
"ctl00_PageContent_rtlRshItems_ctl04_rcbStatus"
class
=
"RadComboBox RadComboBox_Windows7"
>
<
table
class
=
"rcbFocused"
style
=
"border-width: 0pt; border-collapse: collapse;"
summary
=
"combobox"
>
<
tbody
>
<
tr
class
=
"rcbReadOnly"
>
<
td
class
=
"rcbInputCell rcbInputCellLeft"
style
=
"width:100%;"
>
<
input
id
=
"ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_Input"
class
=
"rcbInput"
type
=
"text"
readonly
=
"readonly"
value
=
"Submitted"
name
=
"ctl00$PageContent$rtlRshItems$ctl04$rcbStatus"
autocomplete
=
"off"
>
</
td
>
<
td
class
=
"rcbArrowCell rcbArrowCellRight"
>
<
a
id
=
"ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_Arrow"
style
=
"overflow: hidden;display: block;position: relative;outline: none;"
>select</
a
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
input
id
=
"ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_ClientState"
type
=
"hidden"
name
=
"ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_ClientState"
autocomplete
=
"off"
>
</
div
>
</
td
>
<
td
class
=
" rtlCL"
style
=
"width:0px;"
>
<
asp:label
id
=
"lblWorkItemId"
text
=
"199"
visible
=
"false"
> </
asp:label
>
</
td
>
lblWorkItemId
, how can I do this?
if
(e.CommandName ==
"Edit"
) {
GridEditFormItem item = (GridEditFormItem)(e.Item
as
GridDataItem).EditFormItem;
ListBox lb = (ListBox)item.FindControl(
"lstMembers"
);
Protected Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim ein = item.GetDataKeyValue("EIN").ToString()
Dim distributor = DbContext.Distributors.Where(Function(n) n.EIN = ein).FirstOrDefault()
item.UpdateValues(distributor)
Dim channel = DbContext.Channels.Where(Function(n) n.ChannelId = distributor.ChannelId).FirstOrDefault()
If channel Is Nothing Then
displayError("Distributor was not updated. Please enter a valid channelId.")
Else()
Try
DbContext.SubmitChanges()
Catch ex As Exception
displayError("Record cannot be updated")
End Try
End If
End Sub
How to set the backcolor ... it comes out white no matter what I try...
<
telerik:RadNotification
ID
=
"NotifyNotClockedIn"
runat
=
"server"
AutoCloseDelay
=
"10000"
VisibleTitlebar
=
"false"
Width
=
"95%"
Animation
=
"Slide"
EnableRoundedCorners
=
"true"
BackColor
=
"Black"
OnCallbackUpdate
=
"NotifyNotClockedIn_Update"
OnClientUpdated
=
"OnClientUpdated"
Height
=
"225px"
Position
=
"TopCenter"
EnableShadow
=
"true"
Title
=
"Not Clocked In"
AnimationDuration
=
"5000"
>
<
telerik:RadGrid
ID
=
"radGrid1"
runat
=
"server"
AllowPaging
=
"True"
AllowSorting
=
"True"
CellSpacing
=
"0"
GridLines
=
"None"
AllowCustomPaging
=
"True"
PageSize
=
"50"
Width
=
"100%"
Skin
=
"Outlook"
onneeddatasource
=
"radGrid1_NeedDataSource"
AutoGenerateColumns
=
"False"
OnItemCommand
=
"radGrid1_ItemCommand"
OnPreRender
=
"radGrid1_PreRender"
>
<
ExportSettings
HideStructureColumns
=
"true"
/>
<
ClientSettings
>
<
Selecting
CellSelectionMode
=
"None"
EnableDragToSelectRows
=
"True"
></
Selecting
>
<
Scrolling
SaveScrollPosition
=
"false"
AllowScroll
=
"True"
UseStaticHeaders
=
"true"
ScrollHeight
=
"300px"
/>
</
ClientSettings
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridBoundColumn
Visible
=
"false"
UniqueName
=
"id"
HeaderText
=
"id"
DataField
=
"id"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"name"
SortExpression
=
"name"
HeaderText
=
"Name"
DataField
=
"name"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Dob"
SortExpression
=
"Dob"
HeaderText
=
"DOB"
DataField
=
"Dob"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Creation_date"
SortExpression
=
"Creation_date"
HeaderText
=
"Request Date"
DataField
=
"Creation_date"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"Status"
SortExpression
=
"Status"
HeaderText
=
"Test Status"
DataField
=
"Status"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnablePostBackOnRowClick
=
"true"
Selecting-AllowRowSelect
=
"true"
AllowKeyboardNavigation
=
"true"
/>
</
telerik:RadGrid
>