Telerik Forums
UI for WPF Forum
15 answers
1.6K+ views
Hi All,

This is another issue we've started encountering only after the move to Q3 SP2 2009 (we were at Q3 2009 yesterday).

If, for example, we've defined a RadComboBox like so:
<telerik:RadComboBox SelectedValue="{Binding Setting}" 
                                  ItemsSource="{Binding PossibleValues,Mode=OneWay}" 
                                  SelectedValuePath="UniqueName" 
                                  DisplayMemberPath="FriendlyName" /> 

And we place a breakpoint in the Setting property's set function (noticed its bound to SelectedValue). Then every time the RadComboBox we get a call to set with a value of null. Similar things happen when binding to SelectedItem.

Oddly enough, we did not have this issue in Q3 2009 (re-tested today).

Any ideas?

Thanks,
yonadav
Ivan Ivanov
Telerik team
 answered on 02 Jan 2017
2 answers
152 views

Is any way to change the descriptionpanel as a tooltip ?

i wish  when hover at the property header the tooltip show the discription of the property

rui
Top achievements
Rank 1
 answered on 02 Jan 2017
1 answer
141 views

Hi,

I've got a DataForm with a QueryableEntityCollectionView as ItemSource.
The QueryableEntityCollectionView is filtered, the DataForm as a custom CommandProvider.

An exception occurs when DataForm.AddNewItem() is beeing hit. "An unhandled exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Data.dll" this is not happening when there is no filter active. Any idea why this is happening and how to have a filter active and add a new item?

Cheers! Eric

Ivan Ivanov
Telerik team
 answered on 30 Dec 2016
2 answers
93 views
It happened that we use Telerik.Windows.Documents.Model namespace for report generation. And I need "say" section (or paragraph) that it shouldn't contain page breaks. But as I understand Telerik.Windows.Documents.Model classes don't support keepTogeher property. Does workaround exist? Or am I wrong?
Vlad
Top achievements
Rank 1
 answered on 30 Dec 2016
3 answers
847 views

I have this style defined in the page resource

                <Style x:Key="MsgStatusStyle" TargetType="telerik:GridViewCell">
                    <Setter Property="Foreground" Value="Red" />
                    <Setter Property="HorizontalContentAlignment" Value="Left" />
                </Style>

I assign the style for a GridViewDataColumn as follows

                    <telerik:GridViewDataColumn DataMemberBinding="{Binding MsgStatus}" Header="Msg Status" UniqueName="MsgStatus" 
                                                IsReadOnly="True" IsVisible="{Binding  Data.GridColumns.MsgStatusIsVisible, Source={StaticResource proxy} , Mode=TwoWay}"
                                                DisplayIndex="{Binding  Data.GridColumns.MsgStatusOrder, Source={StaticResource proxy} , Mode=TwoWay}"
                                                SortMemberPath="MsgStatus" CellStyle="{StaticResource MsgStatusStyle}" >
                    </telerik:GridViewDataColumn>

But the foreground doesnt change to Red. If I change the property in the style definition to background that changes to red upon rendering.

Any idea why froeground color doesnt change ?

 

Ivan Ivanov
Telerik team
 answered on 30 Dec 2016
1 answer
120 views

I have a RadListBox with an ItemTemplate that contains a read-only RadNumericUpDown. When I click on the RadNumericUpDown, the list item is not selected. How can I make that happen?

 

Ivan Ivanov
Telerik team
 answered on 30 Dec 2016
4 answers
323 views

I'm attempting to change the SelectedUnfocused VisualState.  I've extracted the style using Blend, made the correction for the Item Template Selector, and have set the Selected Unfocused Visual State to StoryBoard.TargetName="SelectionVisual".  So focused/unfocused look the same.

I'm also setting the StyleManager.ApplicationTheme to Windows7Theme in the window constructor prior to the InitializeComponent() call.

Simple xaml.  I would expect the highlights to be a blue-ish color.  However, they are the orange-ish color.

<Grid>
<telerik:RadTreeView ItemsSource="{Binding Nodes}"
ItemTemplateSelector="{StaticResource TreeViewTemplateSelector}"
ItemContainerStyle="{DynamicResource RadTreeViewItemStyle1 }"/>
</Grid>

 

However, if I do this, setting a simple property on the Item Container Style, the theme works.

<Grid>
<telerik:RadTreeView ItemsSource="{Binding Nodes}"
ItemTemplateSelector="{StaticResource TreeViewTemplateSelector}">
<telerik:RadTreeView.ItemContainerStyle>
<Style TargetType="{x:Type telerik:RadTreeViewItem}">
<Setter Property="IsExpanded" Value="True"></Setter>
</Style>
</telerik:RadTreeView.ItemContainerStyle>
</telerik:RadTreeView>
<!--ItemContainerStyle="{DynamicResource RadTreeViewItemStyle1 }"/>-->
</Grid>

 

I know the second case doesn't change the unfocused selection visual state, so how might I get theming to work when basing the Item Container Style on a complete style?

 

Thanks,
Kenny

 

Petar Mladenov
Telerik team
 answered on 30 Dec 2016
1 answer
392 views

I've found very strange behavior.

A simple project contains the window with RadGridView. ItemsSource is binded to ViewModel.Rows where Rows is ObservableCollection.

I fill rows inside Window Loaded event.

RadGridView doen't updated if I don't use Rows.Clear() before Rows.Add().

Can you explain this?

 

Here is xaml:

01.<Window x:Class="TelerikWpfApp1.MainWindow"
04.        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
05.        xmlns:local="clr-namespace:TelerikWpfApp1"
06.        Loaded="Window_Loaded">
07.    <Window.Resources>
08.        <local:ViewModel x:Key="vm"/>
09.    </Window.Resources>
10.    <Grid DataContext="{Binding Mode=OneWay, Source={StaticResource vm}}">
11.        <telerik:RadGridView ItemsSource="{Binding Rows}" />
12.    </Grid>
13.</Window>

 

And code behind:

01.using System.Collections.ObjectModel;
02.using System.Windows;
03. 
04.namespace TelerikWpfApp1
05.{
06.    public partial class MainWindow : Window
07.    {
08.        public MainWindow()
09.        {
10.            InitializeComponent();
11.        }
12. 
13.        private void Window_Loaded(object sender, RoutedEventArgs e)
14.        {
15.            var rows = ((ViewModel)FindResource("vm")).Rows;
16.            // to make it work uncomment the next row
17.            //rows.Clear();
18.            rows.Add(new Row { Name = "Name1", Column1 = "value1_1" });
19.            rows.Add(new Row { Name = "Name2", Column1 = "value2_1" });
20.        }
21.    }
22. 
23.    class Row
24.    {
25.        public string Name { get; set; }
26.        public string Column1 { get; set; }
27.    }
28. 
29.    class ViewModel
30.    {
31.        public ObservableCollection<Row> Rows { get; } = new ObservableCollection<Row>();
32.    }
33.}
Ivan Ivanov
Telerik team
 answered on 29 Dec 2016
1 answer
103 views

Hi,

I have a radform that is opened in the rowdetails of a radgrid that is in a radpane. If I change the value of a textbox, for example, and click on another control in the radform and then try to close pane, the previewclose event fires and I (after checking for changes) ask the user if they want to save changes and all is well. However, if instead of clicking on another control in the radform,  I close the pane either by clicking on the X in the upper right hand corner of the pane or via code by setting the visibility property to hidden, I never get the previewclose event. Is this a bug? Is there a work around?

Thanks ... Ed

 

Polya
Telerik team
 answered on 29 Dec 2016
4 answers
275 views
Hi,

I have requirement to display multiple columns under ComboBox with title and it should be also allow to sort RadGridView items. To achieve these requirement I decide to place a RadGridView inside RadComboBox.

I have almost achieved these requirement however there is only one issue. When I click on an item of RadGridView the RadComboBox is not closing down which is RadComboBox default behavior.

I tried to set IsDropDownOpen property of RadComboBox when user selects an item but it still not working.

To modify ControlTemplate of RadComboBox I referred to following blog.
http://www.nullskull.com/a/1359/wpf-datagrid-as-combobox-dropdown.aspx

In my case I have place RadGridView inside NonEditableTemplate. I don't know it's correct or not but yes it is working except the aforementioned issue. PFA image which displays the result so far I able to achieve.

Please help to resolve this issue.


Ivan Ivanov
Telerik team
 answered on 29 Dec 2016
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?