Download I will show you how easy is to integrate OpenAccess with RadGridView for Silverlight. I get the example from my colleague Dimitur and make it work with our RadGridView. If you are interested how to make OpenAccess to work with ADO.NET Data Services please read his blog series. To allow inserting new rows in RadGridView we should attach to AddingNewDataItem event. <telerik:RadGridView x:Name="gridView" Grid.Row="1" AddingNewDataItem="GridViewAddingNewDataItem" /> And provide the newly created object in it. private void GridViewAddingNewDataItem(object sender, GridViewAddingNewEventArgs e)
{
e.NewObject = new Supplier();
} Now we can insert new objects. Next steps is to save changes to the database. We should attach to GridViewRow.EditEndedEvent. this.gridView.AddHandler(GridViewRow.EditEndedEvent, new...
Presenting data in a grid is common in many applications, but it doesn't have to look like a bunch or columns and rows. With WPF you have freedom to make the data look totally different. In this post, I am going to demonstrate using a custom row layout with the RadGridView for WPF. To get started, I have setup a new window with a RadGridView. I will be using the Northwind database Employees table for this example. I would like to point out that if you are going to recreate this example, you will need to add the Window.Resources section...
Hello to all! My name is Deyan and I am a new member of the Telerik WinForms Team. In my first blog post I will talk about the RadGridView’s Serialization API and will shortly explain some fundamentals that would help you understand how to utilize it. In case of further interest on this topic, I have prepared a KB article and a demo application to demonstrate different serialization scenarios using the API. The default serialization settings imply that all visible properties are stored in the XML output. In cases when you want to only store some simple layout settings without paying attention to...
I’m pleased to announce that with Q1 2009 release of RadControls for WPF / Silverlight you will be able to manipulate the controls very easily with two powerful extension methods: ParentOfType<> and ChildrenOfType<>. Here are several small demos for RadGridView: 1) Get all grid rows: var rows = RadGridView1.ChildrenOfType<GridViewRow>(); 2) Get all grid cells: var cells= RadGridView1.ChildrenOfType<GridViewCell>(); 3) Get all grid header cells: var headerCells = RadGridView1.ChildrenOfType<GridViewHeaderCell>(); 4) Get (and show) new row: var newRow = RadGridView1.ChildrenOfType<GridViewNewRow>().First(); ...
We'll be releasing a new product for Q1 and will be posting a ton of details about it in the coming weeks. Before that happens though, I thought I'd give everyone a chance to win a very special, limited-edition Telerik T-shirt. All you need to do is to provide a correct answer to the riddle below (which can give you some clues about the new product but you still need to be a bit creative): "I am a product of art Your capabilities I'll test And put all worries to rest In Visual Studio I run And using me is fun" Enjoy! p.s. Please use real names that I can identify in our database so...
We are happy to invite you to the second session of the free Telerik webinar series that will take place every Thursday at 11:00 am EST. This week’s session will be presented by Telerik Evangelist John Kellar, who will introduce you to the powerful RadGridView for WPF. Built from the ground-up to take advantage of the WPF platform and the .NET 3.5 framework, RadGridView for WPF represents the next generation in flexible data presentation controls you need to build powerful line of business applications. In this session, John will provide an overview of RadGridView and help you understand all of its capabilities....
As you read the title of this post you may ask yourself - Hmmm, raising an event... wasn't that achievable with 1-2 lines of code? How smaller could it get, 0 lines of code?
And you're almost right, to raise an event is not such a big deal. Supposing you have an event of type EventHandler. public event EventHandler Clicked; Typically you have a virtual protected method which raises the event: protected virtual void OnClicked(EventArgs e) { if (Clicked != null) Clicked(this, e); } Pretty simple unless you want to be thread safe (well... almost thread safe), then you should add one additional line: protected virtual void OnClicked(EventArgs e)...
Hi guys! I just decided to bring you up to speed with our Q3 SP2 release. On top of the improvements we introduced with the new rendering engine in the Q3 version, we have prepared a few small surprises for the Q3 SP2 as well: optimization of image/pdf/rtf rendering. As you know, Q3 2008 came with new paging logic that introduced a superior and more sophisticated algorithm for calculation and inspection of pages before they are rendered. Now we take a step further and make it possible to decrease the rendering time with almost 30% when PageCount is...
Once again, apologies to the 700+ people who've registered for the Telerik Reporting 101 webinar scheduled for last Thursday, January 29. Our presenter, Kevin Babcock, became suddenly ill and we had to cancel the webcast shortly before its scheduled start time. The good news is that Kevin feels much better and has rescheduled the webinar for Tuesday, February 3; 11:00am-12:00pm EST (4:00pm-5:00 GMT). Please note, you need to register again even if you had already signed up for the cancelled webinar! In case you can't make it tomorrow, there will be a recorded version available shortly after the webinar, and of course Kevin will...
I’ve made small demo how to create easily endless scrolling of almost 2 mil. records (exact count is 1770607) using RadGridView for WPF. When you reach the bottom of the vertical scrollbar, more data will be retrieved on-the-fly from the data-base server: For asynchronous data loading you can use BackgroundWorker: BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(worker_DoWork);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync(); … void worker_DoWork(object sender, DoWorkEventArgs e)
{ NorthwindDataContext context = new NorthwindDataContext();
queryable = from o in context.Orders from od in context.Order_Details
...