Telerik Forums
UI for WPF Forum
6 answers
1.5K+ 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
536 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
174 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
978 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
264 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
258 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
124 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
7 answers
381 views

Hi,

In the application (WPF - MVVM) I am working on, there is a RadDataForm inside which I have implemented a RadTabControl with 2-3 RadTabItems. Also there are "ReadOnlyTemplate" and "EditTemplate" for the RadDataForm.

There is an issue with particular operations. I will try my best to explain the situation. But let me know if further details are needed.

In "ReadOnlyTemplate" mode of the DataForm, I have a few fields that are DataFormDataFields. But these values are DataFormComboBoxFields when the RadDataForm is in "EditTemplate" mode. So when I Edit the form and change tabs and then save/cancel the changes, then when the RadDataForm goes back to the "ReadOnlyTemplate" mode, but the DataFormDataFields of these fields that were DataFormComboBoxFields in "EditTemplate" mode show blank values. but if I edit and not change the tabs in edit mode and then save/cancel changes, then everything is perfect. The bug is only when I change tabs in edit mode and then save/cancel changes .

It would be helpful if anyone can help me figure if its a bug or is it something I am doing wrong here.

-Nishant

Martin Ivanov
Telerik team
 answered on 24 Jul 2018
3 answers
1.0K+ views

Is there  way to remove the arrow from the rowindicator column?  I am using the row indicator as more of a multi select piece and don't really want to show that arrow.

 The other question I have is how do you have that arrow not show up until something is selected?  I have tried to set selecteditem=null, but it still shows up.  

 

arman
Top achievements
Rank 1
 answered on 23 Jul 2018
2 answers
422 views

Hello,

We are using Telerik WPF controls, after updating to version 2018.2.620.45 RadWindow as main window is not showing.

In your samples "RadWindowAsMainWindow" project is working.

After only changing 3 Telerik dlls with new version dlls ("2018.2.620.45") main window doesn't show.

I couldn't attach the project because, attaching zip files is not allowed (And I think this is another problem).

Do we have to change something in code for new versions?

Thanks,

Burhan Eyimaya

Burhan Eyimaya
Top achievements
Rank 1
 answered on 23 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?