Within my project I have a Radgrid to collect a customers address. On Insert Mode a button appears by the postcode textbox which loads a RadWindow with a selection of addresses for the given postcode. I collect the value from the textbox with the following code:-
'LOAD RAD WINDOW
Obviously the above is fine for collecting the value entered. Ok now the problem.
Within the RadWindow I have a RadListBox which displays the list of available addresses. On selection a selectedIndexChanged Event fires and returns the selected row. How do I fill the template within the RadGrid with the selected values.
Any ideas?
Marcus
Protected
Sub
RadGrid1_ItemCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
RadGrid1.ItemCommand
Select
Case
e.CommandName
Case
"getValue"
Dim
rg_control
As
RadButton = TryCast(sender, RadButton)
rg_control =
DirectCast
(e.CommandSource, RadButton)
Dim
postcode
As
String
=
DirectCast
(rg_control.NamingContainer.FindControl(
"PostalCodeTextBox"
), TextBox).Text()
'LOAD RAD WINDOW
rw_findPostcode.VisibleOnPageLoad = True
End
Select
End
Sub
Obviously the above is fine for collecting the value entered. Ok now the problem.
Within the RadWindow I have a RadListBox which displays the list of available addresses. On selection a selectedIndexChanged Event fires and returns the selected row. How do I fill the template within the RadGrid with the selected values.
Any ideas?
Marcus