Is QueryParameter only support for primitive data type?

4 posts, 0 answers
  1. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 17 Nov 2011 Link to this post

    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
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 17 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 17 Nov 2011 Link to this post

    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
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 18 Nov 2011 Link to this post

    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 >>

Back to Top