Telerik Forums
UI for WPF Forum
2 answers
138 views
With GridViewHeaderMenu.IsEnabled="true" settings, I always get all the columns in the context-menu at right click of header for hide/show. But I would want, not to display a column that I am keeping visible=false always. How to do that. Your help would be greatly appreciated.
Yoan
Telerik team
 answered on 19 Jun 2014
1 answer
114 views
Hi,

I was wondering if it were possible to place MapLine controls into a different UserControl.
In other words, I want to separate the radMap control from the MapLine controls by using a UserControl.
So I would have a parent containing the map and a child containing the lines:

ParentUserControl
<InformationLayer>
<Views:
ChildUserControl/>
<InformationLayer/>


ChildUserControl
<MapLine Point="0,0" Point2="10,10"/>

Unfortunately, it doesn't seem to work at all... Any ideas what might be the best solution?

Thank you,
Alexis
Andrey
Telerik team
 answered on 19 Jun 2014
1 answer
165 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).

Please advise.
Kalin
Telerik team
 answered on 19 Jun 2014
1 answer
193 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
309 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
239 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
124 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
130 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
328 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
412 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
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?