Client Binders Questers
**EDIT** Why the heck did I type "Questers" when I meant "Questions"? :)
...so I tried the GenericCollectionBinder to just show some data on the front end.
1) This is very cool functionality :) but...
2) 10 events are sending me 30k in data...when I really just need the title and url, is there a way to define the fields I need? I really just want the ID, Title, Description, Date...I seem to be able to get much faster results with asmx and the radxmlhttppanel (although less convenient)
2) Why is it that I need to be logged in to use the binders...are they just for backend stuff? When I visited the page with the binder as anon it sent me over to the login page with a redirect url back there
Hi Steve,
The ClientBinder has a property DataMembers - gets or sets the data members. DataMembers are the names of the properties which are used in the binder (to be displayed, edited or inserted). Use comma to separate keys, if data item has more than one data member.
sample
<sitefinity:RadListBoxBinder id=
"libraryBinder"
runat=
"server"
ServiceUrl=
"~/Sitefinity/Services/Content/ContentService.svc/"
TargetId=
"libraryListBox"
BindOnLoad=
"false"
DataKeyNames=
"Id"
DataMembers=
"Id, Title"
>
<Containers>
<sitefinity:BinderContainer ID=
"BinderContainer2"
runat=
"server"
RenderContainer=
"true"
>
<span>Title</span>
</sitefinity:BinderContainer>
</Containers>
</sitefinity:RadListBoxBinder>
Yeah you know I saw the datamembers in the documentation and I set those, but the entire object seems to be coming down for each news item still (newtonsoft JSON packaging it?)
It's really convenient and slick, but a little bloated to practically use if you just need to display 1k of data (less than that actually).