Telerik Forums
UI for WPF Forum
3 answers
228 views
Our enterprise has chosen Telerik as our tool to convert XLSX files to PDF.  One limitation that has become an issue for our clients is that Telerik's API doesn't seem to support images in the XLSX header/footer.  I've been trying to get around this limitation using the Telerik.Windows.Documents.Spreadsheet.Model.Shapes.FloatingImage class, but when I move the image past the top margin into the header region, the image gets cut off.  Is it possible to work around this somehow?  I was hoping to see a z-index parameter in the FloatingImage class, but nothing like that seems to exist.
Tanya
Telerik team
 answered on 25 Jul 2018
11 answers
2.2K+ views

I have two columns in the GridView. I want one column's text(including header) is on the left, the other column is on the right.

<telerik:GridViewDataColumn  Header="Content" DataMemberBinding="{Binding Content}"  TextAlignment="Left" HeaderTextAlignmemt="Left" />
    
   <telerik:GridViewDataColumn  Header="Date" DataMemberBinding="{Binding Date}"  TextAlignment="Right" HeaderTextAlignmemt="Right" />

But it is not working, two columns are always aligned to the left. Then I used Visual Tree to check the properties. For the GridViewCell.

PART_CellBorder [Border]
   Background_Over [Border]
   Background_Selected[Border] etc

The default HorizontalAlignment is Stretch. I am not sure how to set the styles for the alignment.

Thanks.

Dilyan Traykov
Telerik team
 answered on 25 Jul 2018
6 answers
379 views

I'm looking for a way of not just selecting files for upload but entire folder structures. I was hoping I could use the CreateOpenFileDialog delegate to return the RadOpenFolderDialog however this function expects a return type of Microsoft.Win32.OpenFileDialog which the Telerik controls do not inherit from.

Any suggestions?

Neil
Top achievements
Rank 1
 answered on 25 Jul 2018
6 answers
1.4K+ views

I am trying to get the GridView to work in a rather complex scenario that involves numerous dynamic columns all with their own editing and display criteria. I have come up with a solution that involves storing a metadata object on the column and then I bind to the properties on the metadata object in the Tag property.

This approach has been working fine or non-dynamic columns but I am unable to successfully determine the property to bind to in the cell template as the property name is decided at runtime, hence why I store it in the DynamicPropertyName property in the metadata.

 

I tried using a MultiValueConverter which works fine for the ConvertTo, but I am unable to provide the correct values in the ConvertBack.

This is my current cell template with the binding issue highlighted - if there is a way to also bind the Column.Tag.DynamicPropertyName property on the ParentRow. object which is a DynamicObject, then this approach would work in its current form.

 

 

 

 

Dilyan Traykov
Telerik team
 answered on 25 Jul 2018
1 answer
515 views

Hi,

In RadGridView on click "Click Here to Add New Item" is not adding new row to the RadGridView. It is designed with the property as below

<telerik:RadGridView Name="radGridSizeDetails" Grid.Row="1"
                                         ShowGroupPanel="False" AutoExpandGroups="True" ShowGroupFooters="False"
                                         ShowColumnFooters="True" CanUserSortColumns="True" ShowColumnHeaders="True"
                                         AutoGenerateColumns="False"
                                         CanUserInsertRows="True"
                                         NewRowPosition="Top"
                                         GroupRenderMode="Flat"
                                         ShowColumnSortIndexes="True"
                                         ItemsSource="{Binding SizeDetailsList}"
                                         SelectionMode="Single"
                                         RowIndicatorVisibility="Visible"
                                         VerticalAlignment="Stretch"
                                         IsReadOnly="False" AddingNewDataItem="radGridSizeDetails_AddingNewDataItem">

 

Let me know if I miss anything.

 

Thanks

Dilip

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jul 2018
2 answers
155 views

I need to get the fit of the maximum on the length of the control, either that or move the label below the line. 

For the first option, I was thinking of reducing the value,and then customizing the labeltext that shows up. Only issue is, not sure how to modify the textblock that shows that value. 

Second option, kind of related to the first one, how can I use a datatemplate to have a template where the label is below the line?

 

Please refer to image attached.

 

Thanks!

Martin Ivanov
Telerik team
 answered on 25 Jul 2018
13 answers
843 views
Hello,

I am struggling to include a  <telerik:RadLegendtag in my code. I have been using your documentation at http://www.telerik.com/help/wpf/radlegend-overview.html as a reference but always get an error message. 

I have included a reference to Telerik.Windows.Controls.dll as well as including xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" as a namespace declaration in my XAML, but whenever I try to use a <telerik:RadLegendtag I get an error stating "The type 'telerik:RadLegend' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been build."

Any help on this would be appreciated.

Andrew.




Martin Ivanov
Telerik team
 answered on 25 Jul 2018
1 answer
249 views

I have a requirement where I need to show a two sections on a pie chart. One section will the total and another section will be a consumed part (eg. Total = 100, Spent = 30) . Please refer to the image.

My main issue is , how can I modify the display mode so that it displays it outside of the piechart but has the connector on the lines of the division of the sections like in the image?

Martin Ivanov
Telerik team
 answered on 24 Jul 2018
7 answers
234 views
I need quick support to populate mail merge data on radrichtextbox. In the first step, i simply populate list of data in Mail merge like "FirstName", "LastName", then i want to get data associated with these tags e.g Firstname=Peter ....Please also take a look of below lines of code

on Load
this.radRichTextBox.Document.MailMergeDataSource.ItemsSource = new List<Employee>()
            {
                new Employee()
                {
                    FirstName = "Guest1",
                    LastName = "Guest2",  
                },
                new Employee()
                {
                    FirstName = "Ali",
                    LastName = "Doc", 
                }
            };

private void btnPrint_Click(object sender, RoutedEventArgs e)
       {
           //this.radRichTextBox.InsertField(new MergeField() { PropertyPath = "FirstName" });
           MergeField field = new MergeField() { PropertyPath = "FirstName" };
           field.DisplayMode = FieldDisplayMode.Result;
           this.radRichTextBox.Document.ChangeFieldDisplayMode(field.FieldStart, FieldDisplayMode.Result);
}
Tanya
Telerik team
 answered on 24 Jul 2018
1 answer
108 views

My license version is 2018.2.620.45

I can't use RadHorizontalBulletGraph control even if I add reference Telerik.Windows.Controls.DataVisualization.

There is an error ''QualitativeRanges' property does not support the value of the 'QualitativeRange' format.'

 

I can't use that control even if drag and drop.

If i delete 'QualitativeRanges' property, I can't see that control.

So, what should i do?

Martin Ivanov
Telerik team
 answered on 24 Jul 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?