How To: Custom scrolling with RadGridView for Silverlight and WCF RIA Services

by Vladimir Enchev | Comments 8

I’m pleased to announce that with our upcoming service pack (Q3 SP2 – middle of January 2010) you will be able to plug your own scrolling logic for RadGridView for Silverlight. I’ve made small demo on how to page DomainDataSource using the grid vertical scrollbar with minimal coding effort:

  image

<riaControls:DomainDataSource x:Name="DomainDataSource1" QueryName="GetOrder_Details">
<
riaControls:DomainDataSource.DomainContext>
<
web:NorthwindDomainContext />
</
riaControls:DomainDataSource.DomainContext>
</
riaControls:DomainDataSource>
<
telerikGridView:RadGridView telerik:Theming.Theme="Summer"
scrolling:CustomScrolling.DomainDataSource="{Binding ElementName=DomainDataSource1}"
ItemsSource="{Binding Data, ElementName=DomainDataSource1}"
IsBusy="{Binding IsLoadingData, ElementName=DomainDataSource1}" />
 


,
Senior Technical Architect

8 Comments

Ben Hayat
Thanks Vlad;

It would be awesome if Telerik could offer a list of spinners like the following:
http://silverlight.componentart.com/#SpinnerCoreFeatures

Thanks!
..Ben
Keith Richardson
I agree with Ben, is there any way to extract this spinner and use it elsewhere?  Thanks.

-Keith
Jason Munger
I am evaluating this control using the trial version.  It is important that we can load large amounts of data into the grid with a nice user experience.  I found this post promising however the GridView in my version does not support the scrolling:CustomScrolling.DomainDataSource property seen in this demonstration.  The assembly version that I have is 2010.2.714.1040.  Could you please help me determine what needs to be done so that I can evaluate this custom scrolling option?
Marco
Hi is this technique might be used with plain wcf services or it needs to be RIA services?
Marco
Hi is this technique might be used with plain wcf services or it needs to be RIA services?
Vlad
Hi Marco,

You can use the approach no matter of the service type. If you do not have WCF RIA services you can call your own service method to get total pages and move across pages.

Vlad
Jim
It works good, EXCEPT it doesn't work at all if you're using the up/down arrow keys. The domaindatasource's page doesn't change when you get to the top or bottom of the page using the arrow keys or the mouse's scrollwheel. Thoughts??
Dean
Jim, if those things do not work, then the approach is obviously incomplete. Instead of "it works good", I would have to say "it does not work right"!



Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by Vladimir Enchev - or - read latest articles in Developer Tools