Telerik Forums
UI for WPF Forum
6 answers
218 views
Hi.

I have an application with a listview. Each listview item is templated showing additional information . Basically each listview items contains one image and several values like timestamps, string, ints.

The listview can be filtered using radDataFilter, and I want to be able to select an item in the listview, copy the item (I use my own clipboard format), go into the filter and then paste one of the copied values from my custom formattet content in the clipboard. I want to prompt the user with a dialog to choose with exact information to actually paste from the clipboard. And the content of clipboard should remain after the radDataFilter pasing.

My first approch to this has been to do it like this (simplified code):

private void filter_EditorCreated(object sender, Telerik.Windows.Controls.Data.DataFilter.EditorCreatedEventArgs e)
{
    DataObject.AddPastingHandler(e.Editor, new DataObjectPastingEventHandler(CheckPasteFormat));
}

public void CheckPasteFormat(object sender, DataObjectPastingEventArgs e)
{
 PasteWindow win = new PasteWindow();
 win.ShowDialog(); // Modal dialog
 string result = win.Value.ToString();
  
 DataObject d = new DataObject();
 d.SetData(DataFormats.Text, result);
 e.DataObject = d;
}

The problem with this solution is that showing a new window or as test just call MessageBox.Show gives an error:

Cannot perform this operation while dispatcher processing is suspended.

I have found a solution to this using Dispather.BeginInvoke but this has another problem with the folowing part updating the DataObject due to it is asynchroniously. There might be solutions to this also, but it gives me a feeling of a lot of hacks to make it work

So my next approach (and maybee more correct solution) would be to define a new "Paste special" command/functionality to handle my special pasting inside editor. Actually kind of the same way as Word, Excell etc does it, Im not very familiar with commands and stuff like that. Can you tell me if it is possible to add/append a "paste special" command with keyboard shortcut to the radDataFilter editors. It should also be available using the right-click menu in the radDataFilter editors.

Hopefully the "Speciel paste" will support undo etc, and clipboard content should not be changed using the "Speciel paste".

Hopefully you will be able to help me with this one.

Yavor Georgiev
Telerik team
 answered on 29 Nov 2010
9 answers
218 views
Isn't down arrow supposed to move the highlight to the next one when the drop down is open?
I have IsEditable="Yes" and CanAutocompleteSelectItems="False" I open the drop down, start typing. the highlight moves to the first match. Nothing is selected at this point. I press the down arrow and the first item in the list is selected. Isn't supposed to move the hight light and not select?
Konstantina
Telerik team
 answered on 29 Nov 2010
5 answers
291 views
Hi,

I have a grid view which is binded to a data source. The grid view is refreshing every 1 minute using a timer. I need suggestions for the following.
  1. How can i retain the selected row after refreshing the grid view?
  2. How can retain the selected row after sorting?
  3. How can i change the color of row based on a column value after refreshing?

Your help will be really appreciated.

Thanks,
Gayu

Vlad
Telerik team
 answered on 29 Nov 2010
6 answers
178 views
Hello Community,

 I am newbee for WPF,
How can I reduce size of legend Markers(circle or square) of charts?

Thanks in advance.

Kiran Ghanwat
Kiran Ghanwat
Top achievements
Rank 1
 answered on 29 Nov 2010
6 answers
143 views
Hi,

Is there documentation (chm) for the WPF controls? I could not see any in the downloads section, and there's nothing integrated into VS that I could see.

Do users need to peruse Telerik's online documentation for WPF?

Cheers
David
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
102 views
Hello Telerik Team,

I am using Marked Zones to display certain event timespans in a datetime based chart.

I need to give the user a way to find out what this event what, basically somehow showing a string to him, which can be accessed from any zoomlevel where the marked zone is visible.

Thus, I wanted to use the tooltip-property of a marked zone, but couldn't get it to show. The OnToolTipOpeing event is also not fired.

What is the best way to accomplish this task, to actually present the user a string together with a marked zone?

best regards

Ulrik
Ves
Telerik team
 answered on 26 Nov 2010
1 answer
85 views
Hi,

is it possible to expand an OutlookBarItem in dragmode while moving over it? I made some tests with DragDrop-Control, but i had no success. I want to drag an item from a TreeView in OutlookBarItem "A" to a TreeView in OutlookBarItem "B" which is collapsed.

Thanks

Andreas
Petar Mladenov
Telerik team
 answered on 26 Nov 2010
2 answers
174 views
Hi

when using BusyIndicator on fast running operations you get a flash effect: busyIndicator appears and disappears in a second flashing the user interface. As don't know in advance how long the operation will last, I'm trying to attenuate the effect setting the OverlayStyle completely transparent as follows:

RadBusyIndicator busyIndicator = new RadBusyIndicator();
// make it trasparent to avoid flashing on fast operations
Setter opacitySetter = new Setter(Rectangle.OpacityProperty, 0.0);
Style overlayStyle = new Style();
overlayStyle.Setters.Add(opacitySetter);
busyIndicator.OverlayStyle = overlayStyle;
// add to layoutRoot children
busyIndicator.SetValue(Grid.RowProperty, 0);
busyIndicator.SetValue(Grid.RowSpanProperty, 3);
layoutRoot.Children.Add(busyIndicator);

I seems that setting OverlayStyle in code has no effect. 
What's wrong in the code
A better solution could delaying the control appeareance with an animation effect; how can I do that?

Sincerely
Ivano
Ivano
Top achievements
Rank 1
 answered on 26 Nov 2010
1 answer
87 views
Hi,
I have a radchart which gets XML file as input, and a button. User can select XML data file using Button which opens a FileDialogue and draw line series graph.
when first time I select XML file it draw graph correctly and Zooming/Scrolling works fine.
now when I again click on button and select other XML file to show graph everything works fine only Zooming/Scrolling stops working.
please provide a solution. How to reset graph to original so that it accept new data source (XML)?

Thanks
shashank





 
Velin
Telerik team
 answered on 26 Nov 2010
1 answer
277 views
Hi,

I use radcombobox with itemSource and I want that the user would select items from the list only and  disabled from typing other
characters in it.
In addition, I want that the autocomplete option will be enabled.
I have those properties in my xaml:

<telerik:RadComboBox Grid.Column="3" Grid.Row="6" 
              IsReadOnly="True" IsEditable="True"/>

but then if the user start type some characterties, he can't delete them.
when I set the IsEditable property to false, it work well, but then it change the control style.

I saw that the first option is working  well in the newer telerik dll version, but I don't want to upgrade the all dll. can I upgrade only one control from the new version?
or, how can I change the style of the control that look like IsEditable is true? I use Windows7Theme.
Is ther more idea's or solutions?

Thanks.
George
Telerik team
 answered on 26 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?