Retrieving RadComboBox value Propery

1 Answer 40 Views
ComboBox
Wei
Top achievements
Rank 1
Iron
Wei asked on 06 Jan 2023, 09:17 AM

Language="VB"

<%@ Register Src="../App_API/PatientInfo.ascx" TagName="PatientInfo" TagPrefix="ucl" %>

<ucl:PatientInfo ID="PatientInfoUserControl" runat="server" />

In CodeBehind

Dim AssignedPathologist As RadComboBox = CType(PatientInfoUserControl.FindControl("AssignedPathologistRadComboBox"), RadComboBox)
Dim AssignedPathologistText As String = AssignedPathologist.text
Dim AssignedPathologistValue As String = AssignedPathologist.value

Getting : error BC30456: 'value' is not a member of 'Telerik.Web.UI.RadComboBox'.

1 Answer, 1 is accepted

Sort by
0
Wei
Top achievements
Rank 1
Iron
answered on 06 Jan 2023, 09:31 AM
OK never mind, SelectedValue is the RadComboBox property I was looking for not Value.
Tags
ComboBox
Asked by
Wei
Top achievements
Rank 1
Iron
Answers by
Wei
Top achievements
Rank 1
Iron
Share this question
or