Hi there,
I have created a new report in the report designer and added report parameters. See attached file '1-report_parameters.png' to see how I setup report parameters.
I have the report embedded in an MVC4 project using the report viewer.
What I am trying to do is get a handle of the ValueMember (ie. Field.fldBranchID) from client-side, but when I look at the html source, I see the following:
I have created a new report in the report designer and added report parameters. See attached file '1-report_parameters.png' to see how I setup report parameters.
I have the report embedded in an MVC4 project using the report viewer.
What I am trying to do is get a handle of the ValueMember (ie. Field.fldBranchID) from client-side, but when I look at the html source, I see the following:
<
td
id
=
"parameterEditorBranchID_ECell1"
style
=
"height: 1px;"
unselectable
=
"on"
><
div
id
=
"parameterEditorBranchID_valueEditorBranchID"
>
<
select
name
=
"parameterEditorBranchID$valueEditorBranchID$ddl1"
class
=
"ParameterEditor"
id
=
"parameterEditorBranchID_valueEditorBranchID_ddl1"
>
<
option
selected
=
"selected"
value
=
"TelerikReportingSelectAValueItemValue"
><
select
a value></
option
>
<
option
value
=
"Croydon"
>Croydon</
option
>
<
option
value
=
"Dandenong"
>Dandenong</
option
>
<
option
value
=
"Epping"
>Epping</
option
>
<
option
value
=
"Geelong"
>Geelong</
option
>
<
option
value
=
"Hallam"
>Hallam</
option
>
<
option
value
=
"Hastings"
>Hastings</
option
>
<
option
value
=
"Laverton"
>Laverton</
option
>
<
option
value
=
"Mt Evelyn"
>Mt Evelyn</
option
>
<
option
value
=
"North Melbourne"
>North Melbourne</
option
>
<
option
value
=
"Oakleigh"
>Oakleigh</
option
>
<
option
value
=
"Phillip Island"
>Phillip Island</
option
>
<
option
value
=
"Rowville"
>Rowville</
option
>
<
option
value
=
"Taylors Lakes"
>Taylors Lakes</
option
>
</
select
>
</
div
><
script
type
=
"text/javascript"
>
var parameterEditorBranchID_valueEditorBranchID = new SingleAvailableValuesEditor('parameterEditorBranchID_valueEditorBranchID_ddl1');
</
script
></
td
>
As you can see, the DisplayMember is listed for both the text and the value. I would have expected to see the fldBranchID in the option value.
Can you tell me if this is by design and how I can go about getting the fldBranchID from the client-side if not through this method?
Regards,
CH