WebService Binding Problem

2 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 17 Sep 2010 Link to this post

    I'm assigning the Css Class in the WebService, but it's not coming down clientside...

    item.CssClass = "rrItem";
    item.Html = html.ToString();

    The only thing the Item has is the inline height style

    Also is there a way to not have it re-call the service once it has its initial set of items?  I just want to populate it OnLoad then have it rotate through those items. **Edit** I dont want to do it on Page_Load serverside becasue it's calling a slow external service :)


    **Edit #2 **

    Since it's not returning the class I'm just wrapping the items in my own div with a classname (well it is coming down, I see it in the JSON, just not getting assigned to the nodes)
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 22 Sep 2010 Link to this post

    Hello Steve,

    In reference to your questions:
    • "I'm assigning the Css Class in the WebService, but it's not coming down clientside..."
      Indeed, the solution is to wrap the content of the item in a DIV element and apply the CSS class to that element
    • "Also is there a way to not have it re-call the service once it has its initial set of items?"
      The WebService is called until the WebService method returns NULL (Nothing in VB.NET), so you need to make sure that the second call to the web service method will return NULL. In this case the WebService will be called 2 times only.

    Kind regards,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top