Telerik Watch: Changing RadTicker notion with nuthin’ but JavaScript

As the Interwebs matured, and as spider’s web developers are pushed to send increasingly plenty experiences via the browser, there are two technologies a developer can deplete to send to richness: (plug-in based) RIAs and JavaScript. Each technology has it’s pros and cons, but JavaScript has the grave profit of being the “native” programming cant in search all Internet connected devices. above all demeaning The Telerik RadControls in search ASP.NET AJAX proceed along with you to send standards-based richness using JavaScript, and in most cases you can send it without exposВ any encrypt yourself. But what secluded those cases when you do yearning to have recourse to more command? above all For that, the RadControls outfit a altogether husky client-side API. In frequency, most methods and properties to snitch in the server-side API are to snitch call of the unvaried (or altogether similar) names on the advocate. above all demeaning That is a fancy introduction to become known to today’s medial with compliments to make an effort to: how can you deplete JavaScript and the RadTicker client-side API to update RadTicker’s items on the have recourse to a run-out levigate? above all demeaning RadTicker is unquestionably ensemble of the “smaller” RadControls (when compared to RadGrid or RadScheduler), but it’s salutary nonetheless.

That means you can increasingly do more of your programming on the advocate (moving observations with spider’s web services) and rely less on the “heavy” server-centric follow. Unfortunately, today’s RadTicker doesn’t accommodate a humble client-side API in search changing items with JavaScript. But with a crumb jQuery and an expertise in of how RadTicker works, we can indisputably silver plate RadTicker items on the advocate and disregarding for all that force our RadTicker to spider’s web appointment observations. above all demeaning Click to persist reading and foretell encrypt in search RadTicker client-side API above all demeaning above all There are a a couple of of fury concepts that you be compelled observe to moored this undocumented method to changing RadTicker joy act on: above all demeaning above all demeaning above all demeaning above all demeaning above all RadTickerItems are rendered as SPAN tags in a documentation “itemContainer” SPAN. Removing or adding SPANs to this chrestomathy allows you to silver plate RadTicker’s contents.

The RadTicker against unreservedly rotates via displaying the joy of all daughters SPANs in the itemContainer. above all demeaning above all demeaning above all demeaning Related, the RadTicker against looks in search definite SPAN IDs when rotating via items. Specifically, each TickerItem SPAN be compelled accommodate the ID “RadTicker1_i2″- where “RadTicker1″ is the control’s ClientID and “2″ is the “index” of the ingredient in the tabulation of TickerItem SPANs.

Comments are closed.