This is a migrated thread and some comments may be shown as answers.

Is QueryParameter only support for primitive data type?

3 Answers 89 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 17 Nov 2011, 11:52 AM
Dear Telerik,

I am doing some experiment on RadDomainDataSource control with the intention to replace my old DomainDataSource control.

Below is the scenario that I encountered:
1. Every time I passed a complex data object (such as List<T>) as value of QueryParameter, at the DomainService at serverlogic, i got NULL value on that parameter.
2. I have tried a workaround that I only pass the primitive data type into value of QueryParameter as well changed parameter in domain service method to primitive. As the result, the parameter has proper value.

May I know if QueryParameter is only support for primitive data type when it comes back to Domain Service method?

Thanks for your time to help in this matter.

Best regards,
Adrian

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 17 Nov 2011, 12:51 PM
Hello Adrian Pay,

This really is a WCF RIA Services related question. My suggestion is to ask this on the WCF RIA Services forum.

Best wishes,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Adrian Pay
Top achievements
Rank 1
answered on 18 Nov 2011, 02:47 AM
Hi Ross,

Thanks for your prompt response on my question.

Actually, the current DomainDataSource control in WCF RIA Services () that we are using works fine with Complex object in QueryParameter value type. That's the part that I wonder if QueryParameter in RadDomainDataSource control do support the same.

Thanks for your time.

Best regards,
Adrian
0
Rossen Hristov
Telerik team
answered on 18 Nov 2011, 09:55 AM
Hello Adrian Pay,

Here is what we are going to do.

I have created a sample project that contains both data source controls. On the server side, I have defined a query method that accepts a complex parameter of type List<int>. However I am not able to make either control work with that complex parameter. It complains that it cannot find a matching query on the client. Maybe I am doing something wrong.

That is why, I would like to ask you to please modify my sample project so that the stock DomainDataSource works with the complex parameter and Telerik's RadDomainDataSource does not work with it. Once I have such a project, I will be able to debug what is going on and try to find a solution for this problem if possible.

Thanks in advance.

Best wishes,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DomainDataSource
Asked by
Adrian Pay
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Adrian Pay
Top achievements
Rank 1
Share this question
or