Telerik Forums
UI for WPF Forum
1 answer
147 views
Hi,

I am trying to implement dragging & dropping  HTML table to Microsoft word document.

It is a WPF application where I am dragging a RadListBox item to word and if I am setting data objects type to "Text" then plain text is getting dropped in MS word document.  
var payload = DragDropPayloadManager.GeneratePayload(null);
payload.SetData("Text", "I am a plain text");

But my requirement is to drag and drop formatted text (with background, border, different font color).
Also, I don't want to drag and drop image as it is not going to work in my case.

Please advise.
Kalin
Telerik team
 answered on 19 Jun 2014
5 answers
277 views
Hi.  I'm loving these new controls, but I have a question.  Is there a way to make the background of the RadDiagram Zoom and Pan along with the shapes?  Right now, the content of the diagram is working just fine, however my background remains at the same zoom level.  I'm assuming that is default behavior, but I would like to have the background image zoom as well.  Is that possible?
Maite
Top achievements
Rank 1
 answered on 19 Jun 2014
7 answers
200 views
Hi everyone,
I use GridView data binding with 30 million records,
I use "load on demand", but it only works if I load 15 million records, but 30 million records, appeared timed out errors,How to solve this error.
Sorry my english,
below is my code:

var context = new NorthwindEntities();
var query = context.Order_Details.OrderBy(o => o.OrderID);
var view = new VirtualQueryableCollectionView(query) { LoadSize = 10 };
DataContext = view;
Juzailie
Top achievements
Rank 2
 answered on 19 Jun 2014
2 answers
101 views
Trying to make my first DragDrop among RadListBox working but not sure what I am missing - but I am sure that I am missing something. I just have two list boxes - one bound to available friends (from where the drag is initiated) and the other one bound to selected friends where the friends are dropped. But at this point, it just shows up as being dragged from the originating Radlistbox - but nothing comes in the other radlistbox. Pls help.
Here is my XAML and ViewModel. How does this work? Whenever I drop a friend - then ViewModel setter is also not called. So - how actually the OtherRadListBox gets bound to the dropped values.
   
<Window.DataContext>
    <local:MainViewModel />
</Window.DataContext>
<Window.Resources>
    <Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem">
        <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    </Style>
</Window.Resources>
    <Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <telerik:RadListBox ItemContainerStyle="{StaticResource DraggableListBoxItem}"
                        AllowDrop="True"
                        Grid.Column="0" ItemsSource="{Binding AvailableDropZones}" DisplayMemberPath="Name">
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior />
        </telerik:RadListBox.DragDropBehavior>
    </telerik:RadListBox>
    <telerik:RadListBox ItemsSource="{Binding SelectedDropZones}" Grid.Column="1" AllowDrop="True" DisplayMemberPath="Id">
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior />
        </telerik:RadListBox.DragDropBehavior>
    </telerik:RadListBox>
</Grid>

public class MainViewModel :ViewModelBase
{
public MainViewModel()
{
ObservableCollection<Friend> list = new ObservableCollection<Friend>();
list.Add(new Friend() { Id = 1, Name = "Andy" });
list.Add(new Friend() { Id = 2, Name = "Josh" });
list.Add(new Friend() { Id = 3, Name = "Smith" });
list.Add(new Friend() { Id = 4, Name = "Andrew" });
AvailableDropZones = list;
}

ObservableCollection<Friend> availeble;
public ObservableCollection<Friend> AvailableDropZones
{
get
{
return availeble;
}
set
{
if (availeble != value)
{
availeble = value;
OnPropertyChanged("AvailableDropZones");
}
}
}

ObservableCollection<Friend> selected;
public ObservableCollection<Friend> SelectedDropZones
{
get
{
return selected;
}
set
{
if (selected != value)
{
selected = value;
OnPropertyChanged("SelectedDropZones");
}
}
}

}

public class Friend
{
public int Id { get; set; }
public string Name { get; set; }
}
Kalin
Telerik team
 answered on 19 Jun 2014
1 answer
105 views
Hi,

I am using this funcionality, the row details are visible when selected. However, when I selected the row one time, the row detail is visible. But is visible forever. I want that I selected again the row detail is hidden.

I don't know do it.

Thanks,
Fernan
Top achievements
Rank 1
 answered on 19 Jun 2014
4 answers
295 views
Hi,

I'm using a TreeListView with many rows and columns. Expanding rows takes some time. That's why I want to change the mouse cursor to a wait cursor during the time the rendering of the rows takes place. 
I found a solution for this problem for the TreeView in standard WPF:

private void TreeNodeExpanded(object sender, RoutedEventArgs e)
{
    TreeViewItem tvi = e.OriginalSource as TreeViewItem;
    if (tvi != null)
    {
        if (tvi.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated)
        {
            EventHandler itemsGenerated = null;
            itemsGenerated = delegate(object s, EventArgs args)
            {
                if ((s as ItemContainerGenerator).Status == GeneratorStatus.ContainersGenerated)
                {
                    (s as ItemContainerGenerator).StatusChanged -= itemsGenerated;
                    tvi.Dispatcher.BeginInvoke(DispatcherPriority.DataBind,
 
                        (ThreadStart)delegate
                        {
                            Mouse.OverrideCursor = null;
                        });
                }
            };
            tvi.ItemContainerGenerator.StatusChanged += itemsGenerated;
            Mouse.OverrideCursor = Cursors.Wait;
        }
    }
}

I tried to rewrite the example for the TreeListView. Unfortunately, the ItemContainerGenerator of the TreeListView does not (unlike other older examples I found in this forum) contain a "Status" property or a "StatusChanged" event.

Is there another way for changing the mouse cursor during rendering time? All I need is an event that is raised when the rendering is finished.

Thanks a lot and best regards,
Frank
Frank
Top achievements
Rank 1
 answered on 18 Jun 2014
5 answers
365 views
Hi,

In my application, I implemented and Interactive ToolTip which consist to have a tooltip always open with a usercontrol inside of it which contain buttons. When the user click on the buttons, action is taken and the popup is close.

I use it like this :

                    <Button Margin="20" Content="ToolTip" Width="80" HorizontalAlignment="Left">
                        <i:Interaction.Behaviors>
                            <ctrlToolTip:ToolTipCustomBehavior>
                                <local:UCToolTip />
                            </ctrlToolTip:ToolTipCustomBehavior>
                        </i:Interaction.Behaviors>
                    </Button>

What I would like to do is to use my interactive tooltip with each appointments. I mean I would like to do something like the custom tooltip demo for the ScheduleView but with my interactive tooltip, how I can do it?

Thank's
Alain
Kalin
Telerik team
 answered on 18 Jun 2014
3 answers
691 views
When I put in a scrollViewer Theme like
<Style TargetType="ScrollViewer">
        <Setter Property="t:StyleManager.Theme" Value="{StaticResource Theme}" />
</Style>

Then I put in a simple AvalonEdit Control into the Grid, I have to place the cursor in the very first character of the first line to be able to select the text box. How can I get around this? I would like to be able to use the Nice looking scroll viewer with the Editor. Ideally it would be nice if Telerik had a radtextbox with Line numbers and Syntax Highlighting.

<Grid>
<avalonEdit:TextEditor Margin="5" Grid.Row="2" Width="Auto" FontFamily="Segoe UI" FontSize="10pt" SyntaxHighlighting="C#" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" ShowLineNumbers="True">
</avalonEdit:TextEditor>
</Grid>


Thanks
Dimitrina
Telerik team
 answered on 18 Jun 2014
1 answer
97 views
how to display timeline in quarterly fashion (WPF)? 
Vladi
Telerik team
 answered on 18 Jun 2014
3 answers
358 views
I want each step can have customized label value and have one axis to show two different unit of values like in attachement
Currently i put the two axis together to make it looks like one to display in different unit, is there anyother way? and I am not able to show customized label. is it possible and how? I am new to this control 

​            <telerik:VerticalLinearScale  FlowDirection="RightToLeft" telerik:StyleManager.Theme="">
            </telerik:VerticalLinearScale>
            <telerik:VerticalLinearScale  FlowDirection="LeftToRight" telerik:StyleManager.Theme="">
            </telerik:VerticalLinearScale>
Andrey
Telerik team
 answered on 18 Jun 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?