RadComboBox Context

7 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 16 Sep 2009 Link to this post

    Hello,

    I have a WCF service.  On the client, I'm binding RadComboBox via web service.  I tap into ItemRequesting, and I do on the client:

    function rcb_ItemsRequesting(sender, e) {
        var context = e.get_context();

        context["A"] = 5;
        context["B"] = 4;
        context["RelativeDate"] = null;
    }

    I have this web service:

    [OperationContract]
    public RadComboBoxData Get(RadComboBoxContext context)
    {
        //context doesn't have anything
    }

    As my comment says, my context property has a zero count, the values aren't getting passed along.  I'm using 2008.3.1125.35.

    Thanks.
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Sep 2009 Link to this post

    Hi Brian Mains,

    In older releases the built-in RadComboBox context didn't work as we didn't pass the context as dictionary which WCF could parse. We fixed this problem in the later versions so I suggest that you try with the latest one.

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 17 Sep 2009 Link to this post

    So is there any other alternative, because unless you are giving me a free upgrade, that's not an option?  Any other way to bind, just have my own web service and set the data source in the client API??????  Would using web services be better to address this?????

    I really need to bind on the client, and any alternative will work, though ItemsRequested server-side event isn't an option, unless there is a way to refresh it on the client, because I need the list to change based on conditions on the data being loaded.

    Thanks.
  5. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 17 Sep 2009 Link to this post

    Or, can the other syntax:

    public RadComboBoxItemData[] GetData(object context)

    work with WCF, or work period?
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 18 Sep 2009 Link to this post

    Hi Brian Mains,

    Please check this code library for the older versions.
    It should work as expected.

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Mostafa
    Mostafa avatar
    4 posts
    Member since:
    Sep 2012

    Posted 26 Jul 2013 Link to this post

    Could you tell me if this works with my current edition or not, My version of Telerik.Web.UI.dll is: 2012.2.815.40.

    Please confirm.
  8. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 30 Jul 2013 Link to this post

    Hello Mostafa,

    I noticed that you had submitted another ticket on the same matter, which I had already replied. I would like to ask you to continue our conversation in the other thread, in order to avoid duplication.

    Thanks.

    Regards,
    Nencho
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017