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

[Solved] Re: Excel objects in silverlight 4.0

3 Answers 95 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.
Rishi
Top achievements
Rank 1
Rishi asked on 18 Oct 2010, 03:45 PM

Hi

I have a requirement to build or Embed an excel object on a  Silverlight Page.. that would actually allow the users to perform all the excel features especially the copy values by dragging.

I didn't find anything similar to that... but thought I can use the Grid to replicate some of the features as required, is there a property of a way-how to copy a single cell value over to a list of  cells similar to the excel drag for copying.. ?

Thanks

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 18 Oct 2010, 03:55 PM
Hello Rishi,

 You can use the built-in copy/paste functionality in RadGridView. All you need to do is to set the ClipboardPasteMode property like so:
<telerik:RadGridView ... ClipboardPasteMode="Default, AllSelectedCells" />
or:
myGrid.ClipboardPasteMode = GridViewClipboardPasteMode.Default | GridViewClipboardPasteMode.AllSelectedCells;

This way when you paste a single cell, but have selected multiple cells, their values will be replaced with the value of the pasted cell. You can read more about RadGridView's copy/paste functionality here.

All the best,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rishi
Top achievements
Rank 1
answered on 20 Oct 2010, 04:33 PM
Hi Yavor

Thanks for your quick response,Telerik RadGrid has very good features in fact, I tried a couple of them and am quite impressed, I actually wanted to achieve something similar to an excel interface with the grid, my users wanted to have a drag to copy feature of excel, please let me know if you already have such a feature available? I was thinking of a work around by making use of the mouse enter events to get a similar effect but I can't get the exact thing not even close actually :) ..
One quick question is it possible to embed an excel object similar to that of the  excel in Google docs and allow users to use the piece as required and then save it back... but the number of columns would always be fixed with locked headers etc?

Any thoughts are greatly appreciated.

Thanks

0
Yavor Georgiev
Telerik team
answered on 20 Oct 2010, 04:45 PM
Hello Rishi,

 It seems that your scenario relies on closer integration with Excel. This article explains how to use COM Interop to communicate with Excel from within Silverlight. Unfortunately we do not currently support 'drag to copy', but will investigate this feature and determine whether to include it in a future release.

Greetings,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Rishi
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Rishi
Top achievements
Rank 1
Share this question
or