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

WebService Binding Problem

1 Answer 62 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 17 Sep 2010, 08:52 PM
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)

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 22 Sep 2010, 03:13 PM
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
Tags
Rotator
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Fiko
Telerik team
Share this question
or