Telerik Forums
UI for WPF Forum
1 answer
63 views

https://gyazo.com/6c0fab884114c8d37d8690dc8b66aaa3

how fix?

I'm using the Fluent dark theme.  Works fine with crystal.

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Dec 2019
3 answers
284 views

Hello,

I have telerik version 2014.1.331.40. I want to make a ComboBox filter in FilterRow mode in the RadGridView control. I need it to work exactly like the Textbox does, only with the ComboBox instead. I tried editing the control template of StringFilterEditor, but then I lose all functionality and when I try to bind the DisplayMemberPath, it doesn't work or when it does through code behind, it is very slow while I type what I want to Filter (I need to do Filter as you type which I did with the Textbox) (I use a large amount of Data).

Please help,

Bar.

Martin Ivanov
Telerik team
 answered on 02 Dec 2019
2 answers
329 views

I use a RadGridView for displaying data from a database. I'm on .NET Core 3.0 and use Telerik UI for WPF 2019_3_1023 NuGet NoXaml Version oft the controls. 

I have encountered a strange behaviour when i do grouping for some columns. The group header row is displayed correctly with the expander button on the left side, followed by the grouping information. The strange thing is, that clicking on the expander icon (arrow down) doesn't expand the grouped rows. Only clicking the text representing the items the grid is grouped after expands the row to show the grouped rows. I have some implicit styling applied (mainly colors, font and row height of the grid) and use the material design. Even after removing the implicit stylings, the grid behaves strange. Can't geht the expander button to work, which is annoying for customers, as they expect that the icon responds to clicking (as seen in the Telerik Demo app for example). Is it possible that the styling could affect the expander button behaviour?

 

Thanks,

Martin

Martin
Top achievements
Rank 1
 answered on 02 Dec 2019
4 answers
786 views
Hi,
I am using the below code for RadRichTextBox. The linespacine between lines of text is 1. I want the line spacing to be 0. Can you please have a look and advise.

 <telerik:RadRichTextBox HorizontalAlignment="Left" LayoutMode="Flow" AcceptsTab="False" IsSpellCheckingEnabled="False" IsContextMenuEnabled="False" IsSelectionMiniToolBarEnabled="False"
                                    DocumentInheritsDefaultStyleSettings="True"  GotFocus="TxtLeftHeaderBox_OnGotFocus" Visibility="{Binding HeaderVisibility}" Width="175" Height="125" Margin="5">
                <telerik:RadRichTextBox.Document>
                    <telerik:RadDocument LineSpacing="0" LineSpacingType="Auto" >
                        <telerik:Section>
                            <telerik:Paragraph FontSize="10" LineSpacing="0" LineSpacingType="Auto" >
                                <telerik:Span FontFamily="Arial" Text=" "  FontSize="10" />
                            </telerik:Paragraph>
                        </telerik:Section>
                    </telerik:RadDocument>
                </telerik:RadRichTextBox.Document>
            </telerik:RadRichTextBox>

Regards,
vikas
Rae Ok
Top achievements
Rank 1
 answered on 01 Dec 2019
2 answers
257 views

Hello  we are facing problem while exporting direct from RadGridView to Excel. After exporting data, three problems are there in excel sheet.

1. Phone numbers are getting chopped off [Like "8.70772E+11" instead of "870772001799"]

[Instead of In DataTable PHONENUMBER is in String type]

2. Phone numbers are displaying as Right Align [Instead data type is String]     

[Images given "Image .XLS file after exported .png"]

3. Group name is not showing in Excel sheet  [Only first group is not showing]

Please advice.

Screenshot are given & the used code given bellow.  

private void Button_export_Click(object sender, System.Windows.RoutedEventArgs e)
        {
 
            string extension = "xls";
            string selectedItem = "Excel";
 
            ExportFormat format = ExportFormat.Html;

            SaveFileDialog dialog = new SaveFileDialog();
            dialog.DefaultExt = extension;
            dialog.Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", extension, selectedItem);
            dialog.FilterIndex = 1;
 
            if (dialog.ShowDialog() == true)
            {
                using (Stream stream = dialog.OpenFile())
                {
                    GridViewExportOptions options = new GridViewExportOptions();
                    options.Format = format;
                    options.ShowColumnHeaders = true;
                    
                    options.Encoding = Encoding.UTF8;
                    radGridViewSearch.Export(stream, options);
                }
            }

            MessageBox.Show("Successfully Exported");
 
        }

 

Thanks

Mohsen
Top achievements
Rank 1
 answered on 30 Nov 2019
0 answers
70 views

Hi,

     I'm using RadGridView to show List of objects. Suppose one row contains a common cell(GridViewDataColumn) and a combobox cell(GridViewComboBoxColumn). After I edited the  common cell everything goes well, but while the combobox cell edited the RowEditedEnded event will be raised. In fact I stll need to edit other cells. Any suggestions to prevent this?

Thank you!
yi
Top achievements
Rank 1
 asked on 29 Nov 2019
1 answer
190 views

Hello,

 

I merged themes in Application.Xaml like this

   <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

And this is working correctly, but as soon as I merge this file (which I need for my project) every ordinary button in my project merges this Expression dark theme (which I do not want).

<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>

 

 I am aware that merging System.Windows with this theme changes button style but in this case it is not merged, and it still looks different.

So, two questions:

1.) How do I merge Telerik.Windows.Controls.Navigation with this Theme without merging ordinary buttons also with this theme?

2.) Is there any way I can merge this theme to System.Windows this but only to tooltips and scrollbars?

 

Thank you

 

Juraj
Top achievements
Rank 1
 answered on 28 Nov 2019
3 answers
575 views
Hello All.

I've a GridView with a checkbox column 

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger= PropertyChanged}" .../>


Now it seems the binding is updated only on lost focus (for example, when clicking on another cell/row) and not according to the UpdateSourceTrigger= PropertyChanged.

This is a problem for me, since I've a menu bar which has commands (like delete) which work on the selected rows, and when the menu item is clicked, the Checkbox binding isn't yet updated. Basically you have to select the checkbox, click on the grid outside the checkbox, and only then click on the menu item.Is there indeed a problem here, or am I doing something wrong? Should I simply use GridViewDataColumn with checkbox instead of GridViewCheckBoxColumn?

Yours,
Roee



Dilyan Traykov
Telerik team
 answered on 28 Nov 2019
3 answers
166 views

Given the following (simplified) class...

    class SearchResultsViewModel
    {
        public IList Results { get; }
        public SearchCriteria Criteria { get; }
    }

And the following (also simplified) WPF DataTemplate's...

    <DataTemplate DataType="{x:Type viewModels:SearchCriteria}">
        <StackPanel>
            <!-- Various controls used to display/edit  the SearchCriteria class properties-->
        </StackPanel>
    </DataTemplate>

    <DataTemplate DataType="{x:Type viewModels:SearchResultsViewModel}">
        <telerik:RadDocking>
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Visibility="Collapsed"
                                                 CanUserClose="False">
                            <telerik:RadBusyIndicator BusyContent="{Binding Path=BusyContent}"
                                                      IsBusy="{Binding Path=IsBusy, Mode=OneWay}">
                                <telerik:RadGridView ItemsSource="{Binding Path=Results}" />
                            </telerik:RadBusyIndicator>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup IsContentPreserved="True">
                    <telerik:RadPane CanUserClose="False"
                                     CanFloat="False"
                                     DataContext="{Binding Path=Criteria}"
                                     Header="Search Criteria"
                                     IsPinned="False">
                        <ContentPresenter Content="{Binding}" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </DataTemplate>

When I display the SearchResultsViewModel (using a ContentPresenter), I see - as expected - a list of the results along with a tab on the left of the page with the header "Search Criteria"; however when I then click on the tab to open the associated panel and view the properties of the "SearchCriteria" class I see a repeat of the whole "SearchResultsViewModel" DataTemplate instead of just the properties of the "SearchCriteria" using its own DataTemplate. This then repeats recursively so each time I click on the tab it opens yet another copy.

I have also tried setting "Content={Binding Path=Criteria}" on the "ContentPresenter" instead of setting the "DataContext={Binding Path=Criteria}" on the "RadPane" but this makes no difference.

I use the DataTemplate for the "SearchCriteria" elsewhere within the application and it is called upon based upon the DataType being shown rather than any specific reference to the specific template so I do not want to have to give the template an "x:Key" and then reference it specifically here either but then I do not expect to have to do this as it works elsewhere.

What am I doinng wrong to make the ContentPresenter within the second DataTemplate show the "SearchCriteriaViewModel" DataTemplate instead of the "SearchCriteria" DataTemplate?

Martin Ivanov
Telerik team
 answered on 28 Nov 2019
1 answer
123 views

     Hello,

im new in Telerik. I started with the Database-First Approach example on GitHub and it works great. My Question is how can i add a new Appointment Dialog  Dropdown with the content of my SQL-View.

NOTE:

The code is the same as in the Github Example here.

 

Thank you very much

 

Vladimir Stoyanov
Telerik team
 answered on 26 Nov 2019
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?