Telerik Forums
UI for WPF Forum
8 answers
645 views
Hi,
    Is there any way to save a RadBarcodeQR to binary or image? Then I could use it on a report until telerik reports support QR codes.

Thanks
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Dec 2018
1 answer
435 views

I have a RadGridView, in the first column is an AutoCompleteBox for searching articles in every row and the other GridViewDataColumn's get filled by the Information of the chosen article in the AutoCompleteBox.

I have build the RadGridView with AutoCompleteBox like this:

 

                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn
                    x:Name="ArtikelNr"
                    Header="Artikel-/Materialsuche"
                    Width="Auto"
                    MinWidth="150"                                      
                    IsReadOnly="True"
                    IsGroupable="True"
                    IsFilterable="True">
                                <telerik:GridViewDataColumn.CellStyle>
                                    <Style TargetType="{x:Type telerik:GridViewCell}">
                                        <Setter Property="Template">
                                            <Setter.Value>
                                                <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">
                                                    <telerik:RadAutoCompleteBox  x:Name="AutoCompleteBox_ArtikelNr" DropDownItemTemplate="{StaticResource                                                                            CustomAutoCompleteBoxItemTemplate1}"
                                                    ItemsSource="{Binding DataContext.ArtikelAuswahl, RelativeSource={RelativeSource AncestorType={x:Type                                                                                   telerik:RadGridView}}}"
                                                    SelectedItem="{Binding RadAutoCompleteBoxArtikel_SelectedItem, Mode=TwoWay}"
                                                    SelectionChanged="AutoCompleteBoxArtikel_SelectionChanged"
                                                    FilteringBehavior="{StaticResource ArtikelSucheFilteringBehavior}"
                                                    DisplayMemberPath="ArtikelNr"
                                                    TextSearchMode="Contains"
                                                    MaxDropDownHeight="400" 
                                                    DropDownWidth="1000"
                                                    WatermarkContent="Suche..."
                                                    HorizontalAlignment="Stretch"
                                                    AutoCompleteMode="Suggest"
                                                    SelectionMode="Single"/>
                                                </ControlTemplate>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </telerik:GridViewDataColumn.CellStyle>
                            </telerik:GridViewDataColumn>

… 

I fill the Columns with Information I seleced in the AutoCompleteBox like this:

        private void AutoCompleteBoxArtikel_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count > 0)
            {
                if (currentTabellenDaten != null)
                {
                    //int rowIndex = this.radGridView1.Items.IndexOf(this.radGridView1.SelectedItem);
                    //rowIndex = rowIndex + 1;
                    TabellenDaten geladeneTabellenDaten = new TabellenDaten();
                    bool ok = MainViewModel.TabellenDatenController.LoadTabellenDaten(((Artikel)e.AddedItems[0]).ArtikelNr, geladeneTabellenDaten);
                    currentTabellenDaten.ArtikelNr = geladeneTabellenDaten.ArtikelNr;
                    currentTabellenDaten.ArtikelBez1 = geladeneTabellenDaten.ArtikelBez1;
                    currentTabellenDaten = null;
                    this.radGridView1.CommitEdit();
                    geladeneTabellenDaten = null;
                }

}

My Problem is, that I can't get the Row index of the Current edited AutoCompleteBox(I tried like in the Code commented out but doesn't work), so when I want to edit a Row that already has some Information (selecting an other article in the AutoCompleteBox) , the new Information should be written in the same Row.

 

Is it possible with my type of implemetation of the AutoCompleteBox in the RadGridView?

Is there an other or better way to have an AutoCompleteBox in the RadGridview?

 

I hope you can understand my Problem and I'm sorry for my bad english skills.

 

Dilyan Traykov
Telerik team
 answered on 14 Dec 2018
4 answers
205 views

Hi,

 

I'm looking to get custom tooltips for the "X"'s in the search, as well as add a watermark in the search textbox.

I'm not seeing any properties for this int he XAML...please advise.

 

Barry

Barry
Top achievements
Rank 1
 answered on 13 Dec 2018
4 answers
345 views
Hi,
I have a question regarding red calendar days(special days). There are video tutorials for winforms and silverlight which use red calendar days. Unfortunately I couldn't find a collection of Special Days in the WPF RadCalendar Control property section in Visual Studio 2008.
How can I bind a DateCollection as Special Days to the RadCalendar Control?

Thanks in advance

tWand
arman
Top achievements
Rank 1
 answered on 12 Dec 2018
3 answers
558 views

I use RadNumericUpDown in many places.  My application runs on a PC and on the Microsoft Surface and uses the Windows8Touch theme. 
 
My problem is that whenever the user clicks the + or - button of a RadNumericUpDown the edit control receives keyboard focus which I do not want and cannot seem to prevent.  Why is this a problem?  Because on the MS Surface, this causes the Windows Virtual Keyboard to appear, immediately obscuring the very control the user is using.  The user isn't trying to edit the text box, mind you, just tapping the buttons.

If the the user is only tapping the buttons, it seems that the edit box should not get focus.  That should not happen until you actually try to *type* in it.   But even if you think it *should* get focus, there at least needs to be a way to prevent it from happening.  Yet I cannot find any way short of completely retemplating the control.
 
Here is what I tried:

1. I tried to setting the entire RadNumericControl's IsEditable property to "False" but this has no effect.  Even though the user cannot edit the box, clicking the '+' or '-' button *still* makes the edit control think it is being edited enough to give it focus and force that virtual keyboard to appear

2. Then I tried setting the entire control's "Focusable" property to "False" but that didn't work either.  The internal edit control still gets keyboard focus.  This is because the Telerik template for the control fails to pass the "Focusable" to its internal edit through TemplateBinding. 

The only way I've managed to "fix" this is by completely copying the entire RadNumericUpDown control's template and making it pass "Focusable" to its internal edit via the TemplateBinding.  Then I use this template for my RadNumericUpDown and set its Focusable property to false.

But this is serious  overkill and my copied template is not using the Telerik Windows8Touch theme that I applied to everything else.  So it looks out of place and terrible.  It appears I can copy a whole bunch of stuff from the Telerik-installed XAML for that theme, but that's even more overkill than before. 

So my questions are these:

1. Am I missing some simpler method here?  Does RadNumericUpDown give me a way to get at the internal edit control and prevent it from getting keyboard focus short of copying its entire template?  

2. Also, am I correct that it's internal edit should NOT get keyboard focus if you just tap the buttons (at least if it's not editable)?

I am hoping you can point me to an easier way.  

Martin Ivanov
Telerik team
 answered on 12 Dec 2018
1 answer
120 views

in the sheet ,

a cell with formula =SUM(ABS(E88:E116)) see  the function1.png

another cell with formula =SUM(E88:E116) see the function2.png

between E88 and E116 ,I only enter the E113 with value 34, the E114 with value -30

the problem is :

     the result of formula =SUM(ABS(E88:E116))  aways equal to E88, how to solve this? or am I using wrong fomula??

 

 

Polya
Telerik team
 answered on 12 Dec 2018
1 answer
123 views

Hello!

We are developing a n app with a Map controll element. And for the app purposes, we need some interactable and dynamicly added.

For example, by click on the map, dricen by OpenStreetMap provider, you add a point (e.g. Ellipse) on the map. Then, you can click on that point and select it for altering (changing location or color, for instance) or delitin the point.

Bu the problem is, that adding elemnts by clicikg on the map during the rubtime is provided by Visualization layer. And that layer operates with MapShapeData, whic can not be interactive (clickable). And clicakble elemnts are provided by the Information layer, and that layer loaded only once, during the app loading.

So here is the question: is it posible to operate with clickable items with the Visualization Layer, or is it possible to mannualy "reload" the information layer to update is Items collection, displayed on the screen? Or, maybe, there is another way to solve the problem?

 

Thank ypu and best regards,

S. Kozlovskiy.

Vladimir Stoyanov
Telerik team
 answered on 12 Dec 2018
3 answers
186 views

Assuming we have the following grid

<telerik:RadGridView ColumnWidth="*">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Coverage" />
        <telerik:GridViewDataColumn Header="Deductible" />
        <telerik:GridViewDataColumn Width="Auto" Header="Limit" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

 

The Limit column does not expand but the Deductible column is shrunk from the left when we try to resize the Limit column (drag separator b/w Deductible and Limit columns to the left).

The expected behavior is:

1.Limit column should expand

2. Deductible column should shrunk from the right

 

Thank you,

Jan

Martin Ivanov
Telerik team
 answered on 12 Dec 2018
0 answers
409 views

We have been trying to achieve the following behavior:

1. From window, open a popup/modal dialog ().

2. From within the popup/modal dialog, open another popup/modal dialog ().

It works fine but when the second popup is opened and you click the first popup, the second active popup goes behind its parent.

We cannot use ShowDialog() since we want these popups in individual tabs. Meaning, I can open one tab and inside it. I can also open tab and a popup inside it. ShowDialog() blocks the whole application and user cannot switch between tabs.

 

Refer to attached images for details of the issue faced

 

s is causing usability issues since the user will never know how to bring the active popup back if they mistakenly click outside it on the first popup.

Punit
Top achievements
Rank 1
 asked on 12 Dec 2018
5 answers
386 views

I use RadNumericUpDown in many places.  My application runs on a PC and on the Microsoft Surface and uses the Windows8Touch theme.   

My problem is that whenever the user types the + or - button of a RadNumericUpDown on the MS Surface, the Window Virtual Keyboard appears, immediately obscuring the very control you are using.  The user isn't trying to edit the text box, mind you, just tapping the buttons.

I can see the cause:  Whenever you tap one of those buttons, the edit control gets keyboard focus.  This triggers Windows (at a very low level) to pop up the virtual keyboard.

But if the user is only tapping the buttons, it seems that the edit box should not get focus.  That should not happen until you actually try to *type* in it.   And even if you think it *should* get focus, there at least needs to be a way to prevent it from happening.  

Here is what I tried:

1. I tried to setting the entire RadNumericControl's IsEditable property to "False" but this has no effect.  Even though the user cannot edit the box, tapping the UP or DOWN button *still* makes the edit control think it is being edited enough to give it focus and force that virtual keyboard to appear

2. I tried setting the entire control's "Focusable" property to "False" but that didn't work either.  The internal edit control still gets keyboard focus.  This is because the Telerik template for the control fails to pass the "Focusable" to its internal edit through TemplateBinding. 

I have managed to "fix" this by copying the entire RadNumericUpDown control's template and making it pass "Focusable" to its internal edit via the TemplateBinding.  Then I use this template for my RadNumericUpDown and set them to not Focusable.

But I don't want to copy the entire template that because a)it's overkill and b) my copied template is not using the Telerik Windows8Touch theme that I applied to everything else.  So it looks out of place and terrible.  Yeah, maybe I can copy stuff from the Telerik XAML files but again, I'd really prefer a simple property on the RadNumericUpDown.

Am I missing some simpler method here?  Does RadNumericUpDown give me a way to get at the internal edit control and prevent it from getting keyboard focus short of copying its entire template? 

Also, am I correct that it's internal edit should NOT get keyboard focus if you just tap the buttons (at least if it's not editable)?

I am hoping you can point me to an easier way.  

 

Stefan
Telerik team
 answered on 12 Dec 2018
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?