Server-side Programming
The RadSocialShare is primarily a user interaction control and
does not offer any specific server-side functionality. You can, however, programmatically
create the
Button Collections depending on some logic. In this example checkboxes are
used, yet you can store a user's preferences in a file and read the information
from it. For example, when a user registers on the site he/she can provide a list
of networks that he/she wishes to connect to and the RadSocialShare
can be configured to acknowledge these preferences.
Note that controls should be created early in the page lifecycle
in order to be persisted across postbacks. This is why they are created in the Page
Load event in this demo and not in the button click event, as Page Load is the earliest
point in which you can check the state of a checkbox. Ultimately control creation
should be done in the Page Init event or re-done by the developer after each postback
if done in the button click event.