Telerik Forums
UI for WPF Forum
3 answers
607 views

I don't know how to wrap columns header using just a style. I cannot use code behind because we don't have code behind. We use MVVM and CaliburnMicro so we don't have code behind the view. So I was trying to apply style to the grid and wrap all the headers every time I add grid to the form but I cannot accomplish this task. I don't want to do wrap to every column every time I add the grid. So my Idea was but it doesn't work. Please advice.

<Style TargetType="telerik:GridViewDataColumn" >
        <Setter Property="Header">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock TextWrapping="Wrap" Text="{Binding}"></TextBlock>
                </DataTemplate>
            </Setter.Value>
      </Setter>
 </Style>

 Thank you,

Grazyna

 

 

Yoan
Telerik team
 answered on 17 Feb 2020
3 answers
548 views

Is it possible to have both virtualization and smooth scrolling in TreeView. Application freezes when Treeview contains more items(nearly 500) and virtualized when scrolling. TreeView item template has more controls. If we disable virtualization, Loading Treeview takes more time (in minutes) and sometimes application crashes.

Need solution to have both virtualization(for fast initial loading) and smooth scrolling.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Feb 2020
0 answers
648 views

I have a popup shown below which has a ContentControl using a Template. In the ContentControl I want to concatenate two strings in the xaml.  I am using similar popups in different screens where only the Content varies with control name of the screen.I want to split this content into two static resources(static resource1=Plate Name , static resource2=can't contain special characters ) and want to use it in xaml as concatenated.

Is there any way to achieve this ? Any small help would be appreciated!

                        <Popup Name="PlateNameInvalidPopup" VerticalOffset="4">
                            <ContentControl Template="{StaticResource InvalidCharPopupTemplate}" 
                                Content="Plate Name can't contain special characters">
                            </ContentControl>
                        </Popup>

Dhanya
Top achievements
Rank 1
 asked on 17 Feb 2020
48 answers
2.5K+ views

Is there any way to have the dropdown close itself after someone has selected an item in the gridview?  Effectively, I'd like a property called something like AllowMultiSelect, which I would set to false, and then the dropdown closes after the first item is selected.  Or maybe, if SelectionMode is set to Single, shouldn't the dropdown box close on its own after a selection is made?

Closing it manually during SelectionChanged works except in one case: where someone starts typing into the search box and then uses the mouse to select an item.  The incomplete search text doesn't get cleared out of the textbox - as if calling CloseDropDown() prevents cleanup from happening.

In any case, being able to make the multi column combobox behave like a single-select control would be great.  Any suggestions?  Thanks in advance.

[using the Q3 2018 release]

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 14 Feb 2020
10 answers
172 views
How to Limit the RadDiagramShape's movement within its Container range,
or just can move the shape between two Containers?
wu
Top achievements
Rank 1
Veteran
 answered on 14 Feb 2020
3 answers
1.3K+ views

Hello,

If I write the following XAML code in a wizard page:

<Label Target="{Binding ElementName=txt_Code}"
            Text="Code:" />

<TextBox Name="txt_Code" />

The binding is not made between the Label and the TextBox and VS shows the following error:

Cannot find source for binding with reference 'ElementName=txt_Code'. BindingExpression:(no path); DataItem=null; target element is 'Label' (Name=''); target property is 'Target' (type 'UIElement').

 

PS: Sorry for the formatting, but the formatting options are not working on this page...

 

Martin Ivanov
Telerik team
 answered on 13 Feb 2020
1 answer
201 views

How can I add add a georeferenced bitmap image to a map?  This is a bitmap with known position (latitude and longitude of top left corner) and fixed pixel size (in degrees latitude and longitude).  The following code will place an image on the map (with the top left corner in the right spot):

<telerik:RadMap x:Name="radMap" ZoomLevel="14" Center="35.561852, -83.732723">
    <telerik:RadMap.Provider>
        <telerik:OpenStreetMapProvider StandardModeUserAgent=""/>
    </telerik:RadMap.Provider>
    <telerik:InformationLayer>
        <Image Source="/Images/sample.png" telerik:MapLayer.Location="35.561852, -83.732723">
            <telerik:MapLayer.HotSpot>
                <telerik:HotSpot X="0.0" Y="0.0" XUnits="Fraction" YUnits="Fraction" />
            </telerik:MapLayer.HotSpot>
        </Image>
    </telerik:InformationLayer>
</telerik:RadMap>

However, this obviously does not scale the image according to the pixel size in degrees.

 

 

Martin Ivanov
Telerik team
 answered on 13 Feb 2020
2 answers
97 views

Dear Developers,

 

Thank you very much for this library.

Although, could anyone tell if it is possible to preserve row details when exporting and having a button to toggle their visibility like it looks inside RadGridView?

Preview: https://i.imgur.com/xjXpTgL.png

 

For example, there is an option to add details using HTML exporting and appending to string like here https://docs.telerik.com/devtools/silverlight/controls/radgridview/events/export-events#exporting is shown, but this will make these details visible by default.

Is it possible to hide them by default and have something like a checkbox or button to show/hide these details in exported for each row?

 

Best regards

uvuvuv
Top achievements
Rank 1
 answered on 13 Feb 2020
2 answers
3.0K+ views

Hi,

I am using <telerik:GridViewDataColumn in which I have a DataTemplate. In this Datatemplate,I have my popup. I have written the below code in file say for example Sample.xaml. In the eventhandler 'PreviewTextInput' written in file Sample.xaml.cs, I need to set the 'BeadPlexNameInvalidPopup.IsOpen' property to true. Is there any way to access the popup in file Sample.xaml.cs?

Any small help would be appreciated!

 

    <telerik:GridViewDataColumn x:Name="GridviewColumn" Header="{x:Static res:Resources.BeadPlexName}"
                                    DataMemberBinding="{Binding Name}"
                                    Width="*"
                                    EditTriggers="CellClick">
                                    <telerik:GridViewDataColumn.CellEditTemplate>
                                     <DataTemplate>
                                        <Grid x:Name="Grid1">
                                            <TextBox x:Name="BeadPlexNameTextBox" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" MaxLength="70"
                                             PreviewTextInput="BeadPlexName_OnPreviewTextInput">
                                            </TextBox>
                                                <Popup Name="BeadPlexNameInvalidPopup" >
                                                    <ContentControl Template="{StaticResource InvalidCharPopupTemplate}" >
                                                    </ContentControl>
                                                </Popup>
                                            </Grid>
                                     </DataTemplate>
                                    </telerik:GridViewDataColumn.CellEditTemplate>
                                </telerik:GridViewDataColumn>

Dhanya
Top achievements
Rank 1
 answered on 13 Feb 2020
3 answers
797 views
Hello,

I need to validate numericUD value when typing, so i have the following code:
<telerik:RadNumericUpDown HorizontalAlignment="Center"
                        Value="{Binding Path=AdditionalCosts,Mode=TwoWay,
                 UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                        IsEditable="True" AutoReverse="False" Minimum="0"
                  SmallChange="1" LargeChange="5" ValueFormat="Numeric" IsInteger="True" />

But it doesn't call setter when i type (only when i click up/down arrows). What should i do to allow numericUD call setter of AdditionalCosts property when i type?

Thanks.
Dilyan Traykov
Telerik team
 answered on 12 Feb 2020
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?