Telerik Forums
UI for WPF Forum
48 answers
2.4K+ 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
153 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.2K+ 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
186 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
87 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
764 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
1 answer
83 views

     I am programatically moving the scroll bar on my chart as data comes in but I want it to stop if a user takes control of the scroll bar on the horizontal axis.

Is there a simple way to do this?

Right now I am keying off of the rangechanged event to see if my minimum is less than the previous minimum but this only works for scrolling backwords and I cannot do this for forwards since the event is fired when I need to shift it programatically also. 

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Feb 2020
5 answers
374 views

Hello,

With this provider, the mini map is no more displayed.

That's certainly because you have introduced the StandardModeUserAgent property and this property is not copied to the mini map...

Petar Mladenov
Telerik team
 answered on 11 Feb 2020
10 answers
353 views

I want to use Telerik implicit styles because this seems to be the favorite technique to use with Telerik controls. 

So I use the Telerik noxaml dll's in my project.

I have made a separate class library in which I have included the Telerik resources (the theme resource files). These resources are merged at startup (in the Application class) using code like

 

Current.Resources.MergedDictionaries.Clear();
Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
{
    Source = new Uri("/libraryDll;component/Themes/System.Windows.xaml", UriKind.Relative)
});

 

When running the application all works fine and the radwindow is displayed and styled correctly.

However, at design time I don't see anything. This is (of course) because at design time the xaml resources are not available (loaded).

 

How do I fix this problem so I can see the telerik controls at design time? If you can't see the controls you can't design a window can you?

 

Regards,
Peter

 

Dinko | Tech Support Engineer
Telerik team
 answered on 10 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?