This is a migrated thread and some comments may be shown as answers.

[Solved] RadGridView for Silverlight public CTP and RadControls for Silverlight SP1 now available for download

13 Answers 594 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 19 Nov 2008, 02:49 PM
To show our intention to work on major LOB controls, we are launching a CTP version of RadGridView control for SIlverlight. We wanted to share our efforts with the community and receive valuable feedback on the results we have accomplished. Therefore, we are launching the CTP edition of the Grid control to ask you evaluate the product and provide all your thoughts on the matter. Our Grid team is eager to include all the features that are heavily demanded by the community. The CTP build is currently available under the users' accounts as an additional download to the latest SP1 of the "RadControls for Silverlight" bundle. We decided to launch both releases as this will enable the users build versatile applications using all our controls along with the newly added grid component. The official release of the Grid control is scheduled for the Q1 release next year. 
The SP1 and RadGridView CTP are currently available under your accounts. The online demos can be seen at demos.telerik.com/silverlight

What does RadGridView for Silverlight include:
  • Grouping
  • Sorting
  • Editing
  • Programmatic Filtering
  • Auto-fit column
  • Column resize
  • Column reorder
  • Grouping aggregates

What is improved in the rest of the RadControls for Silverlight: 

RadContextMenu now inherits DataContext from the element, to which the ContextMenu is attached

RadWindow - fixes on control's appearance:

  • Fixed the resize 
  • Focus management fixes 
  • Fixed pin button default state

 

PageNavigation improvements
RadPanelBar - bigfixes:

  • You can now place panel items in panel items 
  • Improvements on the styling of the control under Expression Blend 
  • ScrollViewer of each control is now styled

 

13 Answers, 1 is accepted

Sort by
0
Mahima
Top achievements
Rank 1
answered on 15 Dec 2008, 07:28 AM
Can you please provide a sample application of how the "Grouping Aggregates" feature of the GridView control works.
The documentation provided by the latest CTP seems not to have the info regarding the GridView control. Please check with that too.
0
Milan
Telerik team
answered on 15 Dec 2008, 06:25 PM
Hi Mahima,

An example about aggregates will be included in our upcoming release but since I do not want to keep you waiting I am sending you a sample application that demonstrates how aggregates can be defined and used.

It is actually very simple - every group description (RadGroupDescription class) has a collection, exposed by the AggregateFunctions property, that contains all aggregate functions. In order to apply an aggregate to a group you should only add an aggregate function to the AggregateFunctions collection. In our Data assembly you can find several built-in aggregate functions like CountFunction, SumFunction, ect, but you can also build your own by inheriting from the AggregateFunction class.

The sample application that I've build for you demonstrates how you can create an aggregate that counts the number of records in each group.

Hope this helps.

All the best,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mahima
Top achievements
Rank 1
answered on 16 Dec 2008, 03:56 AM
Thanks much, it really helps a lot.
Also, can you please update me why the documentation of the latest CTP does not have the info regarding GridView?
Its kinda awful to refer to Object browser each time to develop anything in absence of documentation.
0
Mahima
Top achievements
Rank 1
answered on 16 Dec 2008, 08:33 AM
One more request, as mentioned under the feature listing of RadGridView control for Silverligt, the card style rows /tabulat layout can also be formed for the GridView control. i remember this was quite easy for the ASP.Net Grid control but seems like a lot of customization is required.
Can someone please post a sample here for the same?
0
Mahima
Top achievements
Rank 1
answered on 16 Dec 2008, 09:02 AM
One more request, as mentioned under the feature listing of RadGridView control for Silverligt, the card style rows /tabulat layout can also be formed for the GridView control. i remember this was quite easy for the ASP.Net Grid control but seems like a lot of customization is required.
Can someone please post a sample here for the same?
0
Rosi
Telerik team
answered on 16 Dec 2008, 05:44 PM
Hi Mahima,

Customization of GridViewRows is not possible task at this stage. The issue is with a Silverlight platform restriction "Style can be set only once!!!" For reference you can see this article. However we will do our best to implement customizing rows for future versions of the control.

Also we are sorry for the inconvenience that missing documentation causes to you. The documentation will be available when RadGridView for Silverlight becomes official. Meanwhile you can refer to documentation for RadGridView for WPF as both controls have common API.

If you have any questions related to our controls do not hesitate to ask.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
GEB
Top achievements
Rank 1
answered on 15 Jan 2009, 01:50 AM
I tried downloading the aggregate sample that you posted via the ZIP file.  When I build it, it indicated that the System.Windows.Controls.Data assembly is missing.  According to the documentation, this assembly is no longer available in the released version of the Silverlight 2.0 SDK.  How do I build this sample app?

Also, how do I download a trial version of the RadGridView control?  I am already trialing your other controls.
0
Milan
Telerik team
answered on 19 Jan 2009, 03:58 PM
Hi GEB,

The aggregates sample is now included in our latest Futures release. Please refer to the example that is included in the Futures release since it demonstrates the aggregates feature a lot better than the one that I have posted here.

You can find the RadGridView Fetures release under Free Trials -> RadControls for Silverlight -> Futures (automatic installation): (msi, 67 MB) or Futures (manual installation): (zip, 67 MB).

In case you would like to complite the examples you will need the latest silverlight tools, which are available here

Best wishes,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
GEB
Top achievements
Rank 1
answered on 24 Jan 2009, 06:23 PM
I have the Microsoft Silverlight Toolkit downloaded, but my Aggregate example still does not build, and complains about System.Windows.Controls.Data missing.  Also, in the example project that you posted above, it has the same problem and does not build properly on my system.

My enviromnent includes Silverlight 2, RAD Controls Futures and Microsoft Silverlight Toolkit.  In your example posted above showing aggregates, I don't see any reference in your references to the Microsoft Silverlight Toolkit assemblies.
0
GEB
Top achievements
Rank 1
answered on 24 Jan 2009, 06:51 PM
More information on the "missing" System.Windows.Controls.Data assembly:

From what I can tell, this has now been deprecated.  However, in the "futures" release of RadControls, which contains RadGridView, Telerik.Windows.Data.RecordManger.Initialize is referencing System.Windows.Controls.Data.  I have never installed a previous version of SilverLight on my development system, so I only have a clean version of SilverLight 2 RTW.  I have replicated this with a very simple example of RadGridView:

<UserControl x:Class="TestRadGridView.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">  
      
    <Grid> 
        <controls:RadGridView x:Name="radGridView" Grid.Row="1" AutoGenerateColumns="True">  
        </controls:RadGridView> 
 
    </Grid> 
</UserControl> 
 

using System;  
using System.Collections.ObjectModel;  
using System.Windows.Controls;  
 
namespace TestRadGridView  
{  
    public partial class Page : UserControl  
    {  
        static public ItemCollection Items = new ItemCollection();  
 
        public Page()  
        {  
            InitializeComponent();  
 
            // Load the Cateogries into the Collection.  
            LoadItems();  
 
            this.radGridView.ItemsSource = Items;  
        }  
 
        private void LoadItems()  
        {  
            Items.Add(new Item("1", "Item 1"));  
            Items.Add(new Item("2", "Item 2"));  
            Items.Add(new Item("3", "Item 3"));  
        }  
 
    }  
 
    public class ItemCollection : ObservableCollection<Item> 
    {  
        public ItemCollection()  
        {  
        }  
    }  
 
    public class Item  
    {  
        private string _id;  
        public string Id  
        {  
            get { return _id; }   
            set { _id = value; }  
        }  
 
        private string _name;  
        public string Name  
        {  
            get { return _name; }  
            set { _name = value; }  
        }  
 
        public Item()  
        {  
        }  
 
        public Item(string id, string name)  
        {  
            _id = id;  
            _name = name;  
        }  
    }  
 
}  
 

In my project, I am including references to Telerik.Windows.Controls and Telerik.Windows.Controls.GridView.  The version of RadControls that I am using is RadControls_for_Silverlight_2008_3_1217_TRIAL_Futures, which I manually installed.
0
GEB
Top achievements
Rank 1
answered on 29 Jan 2009, 04:12 AM
With the latest binaries that were posted in this thread, I now can build the aggregate sample successfully.
0
Udi Dahan
Top achievements
Rank 1
answered on 19 Feb 2009, 07:01 AM
Hi

I cannot display 2 aggregates- what's wrong ?

<data:RadGroupDescription.AggregateFunctions>
                        <data:CountFunction Name="TotalItems" SourceField="Value" Caption="Total items in group:" />
                        <data:LastFunction Name="LastItems" SourceField="Value" Caption="Last Items in group:" />
                    </data:RadGroupDescription.AggregateFunctions>

Thanks
Fred
0
Milan
Telerik team
answered on 19 Feb 2009, 09:04 AM
Hello Nava Dviri,

As I can see from the ticket info you are using version 2008.3.1117 of RadGridView. There is a bug in that release, which cause the problem that you have described.
The bug has beed fixed in our latest release (2008.3 1217).

Regards,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
Mahima
Top achievements
Rank 1
Milan
Telerik team
Rosi
Telerik team
GEB
Top achievements
Rank 1
Udi Dahan
Top achievements
Rank 1
Share this question
or