Telerik Forums
UI for WPF Forum
3 answers
190 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
337 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
427 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
560 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
412 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
2 answers
208 views
Hi,

I am using 2014.1.224.40 of the RadMaskedTextInput and the TextInput event is not firing.  PreviewTextInput does fire but not TextInput.  Secondly, I am trying to get rid of the focus rectangle as shown in the attachment by setting FocusVisualStyle="{x:Null}", but it doesn't work.  Is it possible to remove or hide the focus rectangle?

Thank you,
David A.
Pavel R. Pavlov
Telerik team
 answered on 21 Apr 2014
3 answers
139 views
Hello,

is there a way to automatically include the chart annotations (e.g. grid lines) into the calculation of the axis minimum/maximum?
I want these annotations always to be visible, but I don't want to calculate minimum/maximum on my own if not necessary.
Something like "MaxMinimum" and "MinMaximum" (similar to MaxWidth/MinWidth) would be ideal...

Alex
Petar Marchev
Telerik team
 answered on 21 Apr 2014
1 answer
389 views
I would like to use the RadImageEditor with only scrolling and zoom/magnify available.   Scroll bars seem to be working by default, but I also need a zoom feature like the slider present in RadImageEditorUI

That doesn't seem to be an option using RadImageEditorUI, I can't hide the tool panel on the left.  And if it's possible with the RadImageEditor, I haven't discovered how.

The xaml-sdk on Github  is very educational, but didn't address this question.

thanks


Petya
Telerik team
 answered on 21 Apr 2014
1 answer
66 views
Working with version 2014.1.224.45. mvvm pattern.

I did this with janus systems winform controls awhile back and wanted to know if you had any best practices for my question/requirement.

my client wants to provide visible feedback when the user changes values in the telerik controls (+ ms textbox).  For example, let's say a status dropdown is initially set to "active" and the user changes it to "on-hold".  my client wants the control to have a yellow background (versus current white) when the user changes it so that changes on the screen stand out.  Now once the user saves the data and the screen is refreshed, the yellow should go away because that is the "current" value and return to its initial color of white.

Do you have any suggestions that could be used with telerik controls, e.g. styles or wrap/inherit from current controls, to accomplish this?

I would imagine I could hook up all fields to a the view model to determine changes, but wasn't sure if I could handle this at the control level.

thanks for any advice or input.
Vanya Pavlova
Telerik team
 answered on 21 Apr 2014
9 answers
194 views
Hello,
When a TextBox is disabled in the Office2013 theme, the border is no more visible.
Patrick
Vanya Pavlova
Telerik team
 answered on 21 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
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
Rating
SplashScreen
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?