Hello,
I am using a RadRotator in Sitefinity. I have bound images to it on PageLoad. It works fine. Now I want to rebind the control on filtering by category. When I click the category the DataSource is new, but it doesn't do anything to the images. It still shows the original set.
This is how I bind:
VideosCarousel.DataSource = GetVideos("All");
VideosCarousel.DataBind();
And to rebind I do this:
VideosCarousel.DataSource = null;
VideosCarousel.DataBind();
VideosCarousel.DataSource = GetVideos("Business");
VideosCarousel.DataBind();
The categories are "a" links. Like this:
<li><a id="all" onclick="GetAllVideos(this)">All</a></li>
<li><a id="buss" onclick="GetFilteredVideos(this)">Business</a></li>
<li><a id="cnh" onclick="GetFilteredVideos(this)">Community&Health</a></li>
<li><a id="tech" onclick="GetFilteredVideos(this)">Technology</a></li>
I am using a RadRotator in Sitefinity. I have bound images to it on PageLoad. It works fine. Now I want to rebind the control on filtering by category. When I click the category the DataSource is new, but it doesn't do anything to the images. It still shows the original set.
This is how I bind:
VideosCarousel.DataSource = GetVideos("All");
VideosCarousel.DataBind();
And to rebind I do this:
VideosCarousel.DataSource = null;
VideosCarousel.DataBind();
VideosCarousel.DataSource = GetVideos("Business");
VideosCarousel.DataBind();
The categories are "a" links. Like this:
<li><a id="all" onclick="GetAllVideos(this)">All</a></li>
<li><a id="buss" onclick="GetFilteredVideos(this)">Business</a></li>
<li><a id="cnh" onclick="GetFilteredVideos(this)">Community&Health</a></li>
<li><a id="tech" onclick="GetFilteredVideos(this)">Technology</a></li>