Good day, I'm merely trying to set the ListView in EditMode via the use of a radButton_click but nothing I've tried so far has worked.
<
telerik:RadListView
ID
=
"CommitmentsListView"
runat
=
"server"
DataKeyNames
=
"AgreementID"
ItemPlaceholderID
=
"CommitmentsContainer"
EnableViewState
=
"true"
InsertItemPosition
=
"FirstItem"
>
<
LayoutTemplate
>
<
div
style
=
"min-height: 100px"
>
<
asp:PlaceHolder
runat
=
"server"
ID
=
"CommitmentsContainer"
/>
</
div
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
div
style
=
"text-align:right;padding-right:2px;"
>
<
asp:Label
ID
=
"lblCommitmentNumber"
runat
=
"server"
Text
=
"Commitment Number:"
Font-Bold
=
"true"
Style
=
"margin-top:5px;font-size:0.75em;"
></
asp:Label
>
<
br
/>
<
asp:Label
ID
=
"lblPurchaseOrder"
runat
=
"server"
Text
=
"Purchase Order:"
Font-Bold
=
"true"
Style
=
"margin-top:5px;font-size:0.75em;"
></
asp:Label
>
</
div
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
div
style
=
"text-align:right;padding-right:2px;"
>
<
asp:Label
ID
=
"lblCommitmentNumber"
runat
=
"server"
Text
=
"Commitment Number:"
Font-Bold
=
"true"
Style
=
"margin-top:5px;font-size:0.75em;"
></
asp:Label
>
<
br
/>
<
telerik:RadComboBox
ID
=
"PurchaseOrder"
runat
=
"server"
HighlightTemplatedItems
=
"true"
Style
=
"font-weight:Bold;"
DataTextField
=
"PurchaseOrder"
DataValueField
=
"PurchaseOrder"
Width
=
"80px"
AutoPostBack
=
"true"
>
</
telerik:RadComboBox
>
</
div
>
</
EditItemTemplate
>
</
telerik:RadListView
>
<
telerik:RadButton
ID
=
"EditButton"
runat
=
"server"
Text
=
'Edit'
CommandName
=
"Edit"
CausesValidation
=
"false"
>
<
Icon
PrimaryIconCssClass
=
"rbEdit"
PrimaryIconLeft
=
"4"
PrimaryIconTop
=
"4"
></
Icon
>
</
telerik:RadButton
>
Private
Sub
CommitmentsListView_NeedDataSource(sender
As
Object
, e
As
RadListViewNeedDataSourceEventArgs)
Handles
CommitmentsListView.NeedDataSource
Dim
myList
As
New
List(Of BudgetCommitment)
myList.Add(
New
BudgetCommitment(
"001AR1101-E"
, 2015))
CommitmentsListView.DataSource = myList.ToList
End
Sub
Private
Sub
EditButton_Click(sender
As
Object
, e
As
EventArgs)
Handles
EditButton.Click
End
Sub