Telerik Forums
UI for WPF Forum
6 answers
445 views
Hi,

I am trying to make user control in wpf where I have to drag and drop a item from RadPanelBar to RadTileView and vise versa. 
I am using telerik RadDragandDropManager class for drag and drop
i have set allowDrag and allowDrop property radpanelbar ,radpanelaritem, radtileview,radtileviewitem.

I am able to drag an item from tileview to panelbar It is working fine.

But when I drag an item for panelbar to tile view I get a null reference exception. This exception comes from radtileview control code file.

Now form my analysis I came to know that radtileview does not allow  to drag any item on it through RadDragandDropManager.

If you can provide me any example for this
Aleksey
Top achievements
Rank 1
 answered on 22 Apr 2014
3 answers
326 views
I'm using a VisualizationLayer along with MapShapeData to display road routes data on a RadMap.  Since the road routes have many waypoints, I used PolylineData to represent the data, and set up the layer with a collection of these items.

My problem is that at *detailed* zoom levels, the performance of the map suffers greatly.  If I zoom in to a single polyline at the most detailed level, I see the polyline rendering as a series of dozens of individual blurred strokes rather than as a connected line.  

My shot-in-the-dark guess would be that the calculation and rendering of all of these individual items is what causes the map to slow down, and that the rendering switches from a standard polyline to this new schema at a certain zoom level.  Do you know why this is happening and how I might fix it or work around it?
Andrey
Telerik team
 answered on 22 Apr 2014
2 answers
190 views
Working with version 2014.1.224.45 timeline. We are using groups to breakout timeline events into classifications.  My client asked if we can nest the groups (child groups).

For example, the high level group might be "Communications" and then we would have three expanders/groups under that which might have 3 different employee name groups. then under each employee name we would display via timeline events the communications.

Are nested groups possible?  If so, how?
Robert
Top achievements
Rank 1
 answered on 22 Apr 2014
3 answers
105 views
I have an application where I use several RadDocumentPanes in the DocumentHost to keep various content. The users are (obviously) able to move panes around as they like. When the application closes the current layout is saved and restored automatically when the application is started again.

When I initially open the application and no saved layout exist the panes in the DocumentHost are showed in the default order. When I save that layout the display order is preserved perfectly in the saved XML output. All is good. If I however start to move panes around within the DocumentHost or move a pane out of the DocumentHost  and back again then the saved layout will not reflect the order in which the panes are displayed. And on load they will obviously be restored in a different order.

This can actually be reproduced easily using the Telerik WPF demo application. Perform the following operations using the "Save/Load Layout" example:

1. Open the example, press the "Save Layout" button and inspect the saved XML in the "Layout XML" pane. Note that the order in the XML of the DocumentHost part reflects the order which the two panes ("Layout XML" and "Document 1") are shown. All is good.
2. Move the "Panel Top 1" inside the DocumentHost and dock it at the end. Save the layout again and check the order of the XML. All is still good.
3. Move the "Panel Right 1" inside the DocumentHost and dock it somewhere in the middle. Save the layout again. Note that the saved order no longer reflects the displayed order.
4. Press the "Load Layout" button and note that the order in the DocumentHost is now switched around.

This problem does as far as I have been able to detect only affect the DocumentHost and not the other pane groups.

The problem is obviously highly annoying and I would like some pointers as to how I can either solve or work around it.
Kalin
Telerik team
 answered on 22 Apr 2014
3 answers
223 views
Hi,

is there an easy way to add a drop shadow effect to the docking toolwindow?

Marcel
Kalin
Telerik team
 answered on 22 Apr 2014
3 answers
201 views
I need lazyloading filterable, groupable, sortable grid. Feature is that set of data constantly grows. Another feature is that datasource is wcf service. Can virtualqueryablecollectionview with gridview help in this scenario?
I will be grateful if you put a simple example
Dimitrina
Telerik team
 answered on 22 Apr 2014
5 answers
352 views
the regular - next to 0 works on my RadMaskedTextInput, but the one on the number pad doesn't.  Here is my style I'm using:
    <Style x:Key="UpperCodes6Mask" TargetType="telerik:RadMaskedTextInput">
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Margin" Value="0 0 0 0" />
        <Setter Property="Width" Value="60" />
        <Setter Property="Height" Value="20" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="Placeholder" Value=" " />
        <Setter Property="IsClearButtonVisible" Value="False" />
        <Setter Property="TextMode" Value="PlainText" />
        <Setter Property="SectionsNavigationMode" Value="None" />
        <Setter Property="IsLastPositionEditable" Value="False" />
        <Setter Property="SelectionOnFocus" Value="SelectAll" />
        <Setter Property="Mask" Value=">a6" />
    </Style>
Pavel R. Pavlov
Telerik team
 answered on 22 Apr 2014
9 answers
445 views
First thank you so much for this control.  It is very useful.

I want to set a value in the search box, but I get a null error when I try

myAutoCompleteBox.SearchText = "TEST1";

How can I set what's in the textbox?  Value or Text isn't.  I suppose I could write a linq query and do selecteditem, but what if I just want to put text into that textbox that doesn't match anything in the list.

Also, I'm guessing there is nothing built in to highlight the matched text.  I can probably do this with templates though.

I'm also guessing that the virtualization is automatic and default.  I don't have to set this like I do in the combobox right?
Kalin
Telerik team
 answered on 22 Apr 2014
4 answers
576 views
Hello,
Could you please explain why I can't use the 'using' statement? How am I supposed to dispose the stream and clean up resources?
Thank you
byte[] readAllBytes = File.ReadAllBytes(@"C:\Users\username\Desktop\How_to_dispose_streams_the_right_way.pdf");
​
//Not working:
using (var memoryStream = new MemoryStream(readAllBytes))
{
this.PdfViewer.DocumentSource = new PdfDocumentSource(memoryStream);
}

//Working:
var memoryStream = new MemoryStream(readAllBytes);
this.PdfViewer.DocumentSource = new PdfDocumentSource(memoryStream);
Tim
Top achievements
Rank 1
 answered on 22 Apr 2014
5 answers
435 views
I currently have a custom filter control defined for a column in a RadGridView and I'm trying to set Filter1 and Filter2 to default to "Contains" and the Logical Operator to "Or" in the xaml. However I'm having a hard time figuring it out. The code sample I'm working with is below. Can someone help me figure out how to change Fitler1, Filter2 and the logical operator default value?

<Telerik_Windows_Controls_GridView:FilterOperatorConverter x:Key="FilterOperatorConverter"/>
    <DataTemplate x:Key="ActionTemplate">
        <TextBlock Text="{Binding Converter={StaticResource FilterOperatorConverter}}"/>
    </DataTemplate>
    <Telerik_Windows_Controls_GridView:FilterCompositionLogicalOperatorConverter x:Key="FilterCompositionLogicalOperatorConverter"/>
    <DataTemplate x:Key="LogicalOperatorTemplate">
        <TextBlock Text="{Binding Converter={StaticResource FilterCompositionLogicalOperatorConverter}}"/>
    </DataTemplate>
    <ControlTemplate x:Key="FilteringControlTemplate" TargetType="telerik:FilteringControl">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" Margin="{TemplateBinding Margin}">
            <Border BorderBrush="{StaticResource ControlInnerBorder}" BorderThickness="1" Background="{TemplateBinding Background}">
                <StackPanel HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" MaxWidth="350" Margin="{TemplateBinding Padding}" MinWidth="200" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                    <StackPanel x:Name="PART_DistinctFilter" Visibility="{TemplateBinding DistinctFiltersVisibility}">
                        <Grid>
                            <telerik:RadButton x:Name="PART_FilterCloseButton" Grid.Column="1" HorizontalAlignment="Right" Height="13" Margin="0" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Top" Width="13">
                                <Path Data="M4,4L5,4 5,5 4,5z M0,4L1,4 1,5 0,5z M3,3L4,3 4,4 3,4z M1,3L2,3 2,4 1,4z M2,2L3,2 3,3 2,3z M4,0L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994z M0,0L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1z" Fill="{StaticResource GridView_IndicatorPrimaryColor}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Height="6" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="6"/>
                            </telerik:RadButton>
                        </Grid>
                    </StackPanel>
                    <StackPanel Margin="0,2" Visibility="{TemplateBinding FieldFiltersVisibility}">
                        <TextBlock Margin="0,2,0,0" telerik:LocalizationManager.ResourceKey="GridViewFilterShowRowsWithValueThat"/>
                        <telerik:RadComboBox x:Name="PART_Filter1ComboBox" ItemTemplate="{StaticResource ActionTemplate}" ItemsSource="{Binding AvailableActions}" Margin="0,2,0,2" SelectedItem="{Binding Filter1.Operator, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        <ContentControl x:Name="PART_Filter1ContentControl" DataContext="{Binding Filter1}" HorizontalContentAlignment="Stretch" Margin="0, 2" VerticalContentAlignment="Stretch" />
                        <telerik:RadComboBox x:Name="PART_LogicalOperatorsComboBox" ItemTemplate="{StaticResource LogicalOperatorTemplate}" ItemsSource="{Binding LogicalOperators}" Margin="0,2" SelectedItem="{Binding FieldFilterLogicalOperator, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" />
                        <telerik:RadComboBox x:Name="PART_Filter2ComboBox" ItemTemplate="{StaticResource ActionTemplate}" ItemsSource="{Binding AvailableActions}" Margin="0,2" SelectedItem="{Binding Filter2.Operator, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        <ContentControl x:Name="PART_Filter2ContentControl" DataContext="{Binding Filter2}" HorizontalContentAlignment="Stretch" Margin="0, 2" VerticalContentAlignment="Stretch"/>
                    </StackPanel>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Button x:Name="PART_ApplyFilterButton" Grid.Column="0" Height="22" Margin="0,2,2,2" telerik:LocalizationManager.ResourceKey="GridViewFilter" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        <Button x:Name="PART_ClearFilterButton" Grid.Column="1" Height="22" Margin="2,2,0,2" telerik:LocalizationManager.ResourceKey="GridViewClearFilter" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    </Grid>
                </StackPanel>
            </Border>
        </Border>
    </ControlTemplate>
    <SolidColorBrush x:Key="GridView_FilteringControlBackground" Color="#FFE4E4E4"/>
    <SolidColorBrush x:Key="GridView_FilteringControlOuterBorder" Color="#FF848484"/>
    <SolidColorBrush x:Key="ControlForeground" Color="Black"/>
    <Style x:Key="LocomotiveFilteringControlStyle" TargetType="telerik:FilteringControl">
        <Setter Property="Template" Value="{StaticResource FilteringControlTemplate}"/>
        <Setter Property="Background" Value="{StaticResource GridView_FilteringControlBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GridView_FilteringControlOuterBorder}"/>
        <Setter Property="Padding" Value="5"/>
        <Setter Property="Margin" Value="0,2,0,0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground}"/>
    </Style>
Dimitrina
Telerik team
 answered on 22 Apr 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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?