This question is locked. New answers and comments are not allowed.
Using a plain RIA DomainDataSource, defined as:
<
riaControls:DomainDataSource
AutoLoad
=
"True"
Name
=
"ddsMain"
QueryName
=
"GetOffenderAliases"
LoadingData
=
"ddsMain_LoadingData"
LoadedData
=
"ddsMain_LoadedData"
SubmittingChanges
=
"ddsMain_SubmittingChanges"
SubmittedChanges
=
"ddsMain_SubmittedChanges"
>
<
riaControls:DomainDataSource.DomainContext
>
<
my:OASISDomainContext
/>
</
riaControls:DomainDataSource.DomainContext
>
<
riaControls:DomainDataSource.FilterDescriptors
>
<
riaControls:FilterDescriptor
x:Name
=
"fdOffenderID"
PropertyPath
=
"OffenderID"
Operator
=
"IsEqualTo"
Value
=
"0"
/>
</
riaControls:DomainDataSource.FilterDescriptors
>
</
riaControls:DomainDataSource
>
I can, in the code behind, successfully do something like the below to set the Value of the fdOffenderID filter descriptor.
Private
_OffenderID
As
Integer
Public
Property
OffenderID()
As
Integer
Get
Return
_OffenderID
End
Get
Set
(
ByVal
value
As
Integer
)
_OffenderID = value
End
Set
End
Property
Public
Sub
LoadForOffenderID(
ByVal
OffenderIDNumber
As
Integer
)
OffenderID = OffenderIDNumber
LoadData()
End
Sub
Public
Sub
LoadData()
Try
fdOffenderID.Value = OffenderID
Catch
ex
As
Exception
MessageBox.Show(ex.Message)
End
Try
End
Sub
However, replacing that with an "identical" RadDomainDataSource, defined as:
<
telerik:RadDomainDataSource
AutoLoad
=
"True"
Name
=
"ddsMain"
QueryName
=
"GetOffenderAliases"
LoadingData
=
"ddsMain_LoadingData"
LoadedData
=
"ddsMain_LoadedData"
SubmittingChanges
=
"ddsMain_SubmittingChanges"
SubmittedChanges
=
"ddsMain_SubmittedChanges"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
my:OASISDomainContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
<
telerik:RadDomainDataSource.FilterDescriptors
>
<
telerik:FilterDescriptor
x:Name
=
"fdOffenderID"
Member
=
"OffenderID"
Operator
=
"IsEqualTo"
Value
=
"0"
/>
</
telerik:RadDomainDataSource.FilterDescriptors
>
</
telerik:RadDomainDataSource
>
the set of fdOffenderID.Value at run-time throws a null reference on fdOffenderID. I have read that you have tried to maintain full code compatability with the RIA DomainDataSource, so surely this is a bug or an oversight?
Any assistance would be greatly appreciated.
Thank you,
Robert Burger