Telerik Forums
UI for WPF Forum
2 answers
523 views
Hello,

I want to bind some property from my ViewModel to a RadWindow.HeaderTemplate. My approach seems not to work. Can you help me with this?

 
<telerik:RadWindow.HeaderTemplate>
    <DataTemplate>
        <StackPanel Orientation="Horizontal">
            <Image Width="18" Source="Resources/ICO/CANsymEdit.ico" Stretch="Uniform" />
            <!--<ContentPresenter Content="{Binding}" Margin="5,0" />-->
            <TextBlock Text="{Binding DataContext.ActiveDocument, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" VerticalAlignment="Center" Margin="5,0" />
        </StackPanel>
    </DataTemplate>
</telerik:RadWindow.HeaderTemplate>

 

regards,

Tobias

Peter
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 03 Dec 2020
1 answer
221 views

I'm currently using the RadMaskedNumericInput as follows:

<telerik:RadMaskedNumericInput Value="{Binding Value}" Mask="#6.3" SelectionOnFocus="SelectAll" UpdateValueEvent="LostFocus" TextMode="PlainText" IsClearButtonVisible="False" AutoFillZeros="True" HorizontalAlignment="Stretch" Culture="zh-CN" Placeholder=" "  AutoFillNumberGroupSeparators="False" />

As long I'm using german or english keyboard settings, this works as exptected. So if I would type in e.g. "1.23" (either with dot or comma as the decimal seperator), I get the exact same value.

But now one of our chinese customers has informed us, that he isn't able to input the values as exptected. So for testing purposes, I switched the keyboard layout virtually to Chinese (simplified, China) - Microsoft PinYin. This is then things start to get strange: With that, if I click in the control as before and then typing "1.23", I get the odd number "100.010,200" (again same result either for dot or comma).

Does anyone know why this happens and how to avoid this behavior?

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Dec 2020
4 answers
798 views

Hello!

Is it possible to change the titelbar background color (window titlebar) to the Office 2016 theme accent color?

Martin Ivanov
Telerik team
 answered on 03 Dec 2020
4 answers
395 views

<telerik:RadGridView   ItemsSource  ="{Binding ResultList}"
                                     rad:GridViewSelectionUtilities.SelectedItems = "{Binding ResultItems}"
                                     Margin="10,5"
                                     GroupRenderMode ="Flat"
                                     HorizontalAlignment="Left"
                                     AutoGenerateColumns="False"
                                     ShowColumnHeaders="True"
                                     RowDetailsVisibilityMode="Visible"
                                     ShowGroupFooters="False"
                                     ShowGroupPanel="False"
                                     RowIndicatorVisibility="Collapsed" 
                                     EnableColumnVirtualization="True"
                                     EnableRowVirtualization="True"
                                     VirtualizingPanel.IsVirtualizing="True"
                                     ScrollViewer.HorizontalScrollBarVisibility ="Auto"
                                     ScrollViewer.VerticalScrollBarVisibility ="Visible"
                                     FrozenColumnsSplitterVisibility="Collapsed" 
                                     IsFilteringAllowed="False"
                                     IsReadOnly="True"
                                     AutoExpandGroups="False"
                                     ShowSearchPanel="True"
                                     SearchPanelCloseButtonVisibility="Collapsed"
                                     SelectionMode="Extended"
                                     SelectionUnit="FullRow"
                                     >
                   
                    <telerik:RadGridView.GroupHeaderTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox rad:GridViewGroupCheckUtilities.IsEnabled="True" IsThreeState="True" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:RadGridView.GroupHeaderTemplate>

                    <telerik:RadGridView.GroupDescriptors>
                        <telerik:GroupDescriptor Member="CategoryName"
                                                 SortDirection="Ascending">
                            <telerik:GroupDescriptor.AggregateFunctions>
                                <telerik:CountFunction />
                            </telerik:GroupDescriptor.AggregateFunctions>
                        </telerik:GroupDescriptor>
                    </telerik:RadGridView.GroupDescriptors>

.....

</telerik:RadGridView>

 

Hi. Guys.

I used the selectedItems, GroupHeaderTemplete using SDK Sample Browser provided by you.

I use Group Selection in the SDK sample list, but I want to change it to GroupDescriptors display Name, but it doesn't change.

Please check the image. Thx.

 

 

 

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 03 Dec 2020
10 answers
297 views

     Struggling to mimic the Grid View Exporting to Xlsx and Pdf example in the DEMO to understand how to build this function in a project. For the most part I have created the a working code but two things happens.

1) I get zero bit excel file.

2) In the code get System.ArgumentException "Please provide GridViewDataControl for exporting!". Sure enough in "var grid = param as RadGridView;" Param looks good bu the "grid" is null. Not sure how to over come.

When I run the demo program for the first time and open the xlsx file I'm getting something about the formatting is not correct... 

 
private void Export(object param)
        {
            var grid = param as RadGridView;
            var dialog = new SaveFileDialog()
            {
                DefaultExt = this.SelectedExportFormat,
                Filter = String.Format("(*.{0})|*.{1}", this.SelectedExportFormat, this.SelectedExportFormat)
            };
 
            if (dialog.ShowDialog() == true)
            {
                using (var stream = dialog.OpenFile())
                {
                    switch (this.SelectedExportFormat)
                    {
                        case "xlsx":
                            grid.ExportToXlsx(stream);
                            break;
                        case "pdf":
                            //grid.ExportToPdf(stream);
                            break;
                    }
                }
            }
        }
::
private void ExportDefaultStyles(object param)
        //private void ExportDefaultStyles(RadGridView param)
        {
            var grid = param as RadGridView;
            var exportOptions = new GridViewDocumentExportOptions()
            {
                ExportDefaultStyles = true,
                ShowColumnFooters = grid.ShowColumnFooters,
                ShowColumnHeaders = grid.ShowColumnHeaders,
                ShowGroupFooters = grid.ShowGroupFooters
            };
 
            var dialog = new SaveFileDialog()
            {
                DefaultExt = this.SelectedExportFormat,
                Filter = String.Format("(*.{0})|*.{1}", this.SelectedExportFormat, this.SelectedExportFormat)
            };
 
            if (dialog.ShowDialog() == true)
            {
                using (var stream = dialog.OpenFile())
                {
                    switch (this.SelectedExportFormat)
                    {
                        case "xlsx":
                            grid.ExportToXlsx(stream, exportOptions);
                            break;
                        case "pdf":
                            grid.ExportToPdf(stream, exportOptions);
                            break;
                    }
                }
            }
        }

In both methods I'm not correctly figuring out how to set the "grid" correctly so it can be passed down. It works this way in your demo.

Is there any way to download the demo to work on it locally?

Dilyan Traykov
Telerik team
 answered on 02 Dec 2020
1 answer
126 views
Hello,

We try to use PDFViewer for fillable Acroforms.

The behaviour of the textfields in PDF-Viewer, is not as we would prefer.

* First mouse-click to an editable Textfield:
 -> previous Textfield loses focus

* Second mouse-click (to the same editable Textfield):
 -> new Textfield gets focus, but is not in Edit-Mode

* Third Mouse-Click   
 -> new Textfield has focus and is editable

When moving to the next textfield, again at least 3 Clicks are required.

Is there any way to customize or override this behaviour?

We would like to have it single click (like in acrobat or edge).


Thanks,

Martin
Dimitar
Telerik team
 answered on 02 Dec 2020
3 answers
161 views

Hi. I am looking at using your SyntaxEditor control and had a few questions before I dive into this. I have read all forum items and all documentation. I am pretty sure your control supports these questions, but I want to double check.

I have a custom language where I would need dynamic Inteliprompt lists to be displayed. For instance, if I have a variable and I press a period. I would like different lists to be displayed based on datatype (which I would parse out ahead of time). Is this dynamic functionality available?

Next, at times I need the control to be read-only. Is this available?

Next, while the control is read-only, can I dynamically highlight a single row and change this highlighted row as needed via your API?

Lastly, are the language element tooltips dynamic? Is there an event that fires or something I may intercept to set the tooltip for a language element (i.e. a variable) before it is displayed? (I assume your tooltips use your tooltip control.)

Thank you for your time. 

Dilyan Traykov
Telerik team
 answered on 01 Dec 2020
5 answers
167 views

Hello,

Help me to perform sorting on telerik gantt view columns

Dilyan Traykov
Telerik team
 answered on 01 Dec 2020
1 answer
1.2K+ views

I'm looking for a quick way to enabled/disable tooltips application wide (globally).  I realize I can do the following on EVERY single control:

RadToolTipService.SetIsEnabled(Me.bnSettings, False)

 

repeat for each control in my application, however, I was hoping there was an easy way to enable/disable all tooltips in my application?

 

Cheers, Rob.

Martin Ivanov
Telerik team
 answered on 01 Dec 2020
3 answers
286 views
Hello, how can horizontal axis items always contain 5 values of time? Now, as new data arrives, new values are constantly added to the horizontal axis, and the graph is compressed to the left corner.I use Cartesian Linear chart with 5 series bind to model class.
Dinko | Tech Support Engineer
Telerik team
 answered on 01 Dec 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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?