Telerik Forums
UI for WPF Forum
3 answers
107 views

Hello,

PropertyGrid looks promising but I'm struggling to make it work as I'd like. I want to be able to specify properties to display based on annotations in my View Model. Is this possible? I have tried applying the [Browsable] attribute and this works to an extent but you have to explicitly set [Browsable(fase)] on properties you want to exclude. In my case the View Model inherits from another class, so it is including all the properties from the base class and it is not my code so I can't add annotations to control these.

Is there any way to 'opt-in' to displaying properties? i.e. Only properties that are annotated will be displayed.

 

Thanks

Frank
Top achievements
Rank 1
 answered on 22 Oct 2019
0 answers
115 views

I have the TabControl with any TabPages. Each page has TreeView with with several thousand nodes + DataPager. All TabPages have identical XAML and ViewModel. An exception occurs when I switch between pages (incorrect arguments RadDataPager.PageSize and RadDataPager.PageIndex). If  TreeView on selecting TabPage is empty exeption not occurs.

Fragment my XAML :

...

<telerik:RadDataPager x:Name="xDataPager" Grid.Column="2" Margin="10,0,10,0"
PageSize="{Binding Value, ElementName=ndCount,Mode=TwoWay,UpdateSourceTrigger=Explicit}" FontSize="12"
BorderThickness="1,0,1,1" DisplayMode="All"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Source="{Binding ObjectList,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}"
PageIndex="{Binding ActualPage, Mode=TwoWay, UpdateSourceTrigger=Explicit}"
IsTotalItemCountFixed="false" >
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding Command="{Binding PageChangedCommand}" EventName="PageIndexChanged" RaiseOnHandledEvents="False" PassEventArgsToCommand="True" />
<telerik:EventBinding Command="{Binding PageChangingCommand}" EventName="PageIndexChanging" RaiseOnHandledEvents="False" PassEventArgsToCommand="True" />
</telerik:EventToCommandBehavior.EventBindings>
</telerik:RadDataPager>
<StackPanel Orientation="Horizontal" Grid.Column="3" VerticalAlignment="Center" Margin="10,0,10,0">
<TextBlock Text="Объектов на странице :" FontSize="12" VerticalAlignment="Center" />
<telerik:RadNumericUpDown x:Name="ndCount" IsInteger="True" ValueFormat="Numeric" Value="{Binding PageSize, Mode=TwoWay,UpdateSourceTrigger=Explicit,NotifyOnValidationError=True}" Minimum="10" Maximum="200" SmallChange="5" LargeChange="10" VerticalAlignment="Center" Margin="5,0,10,0"/>
</StackPanel> <telerik:RadDataPager x:Name="xDataPager" Grid.Column="2" Margin="10,0,10,0"
PageSize="{Binding Value, ElementName=ndCount,Mode=TwoWay,UpdateSourceTrigger=Explicit}" FontSize="12"
BorderThickness="1,0,1,1" DisplayMode="All"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Source="{Binding ObjectList,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}"
PageIndex="{Binding ActualPage, Mode=TwoWay, UpdateSourceTrigger=Explicit}"
IsTotalItemCountFixed="false" >
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding Command="{Binding PageChangedCommand}" EventName="PageIndexChanged" RaiseOnHandledEvents="False" PassEventArgsToCommand="True" />
<telerik:EventBinding Command="{Binding PageChangingCommand}" EventName="PageIndexChanging" RaiseOnHandledEvents="False" PassEventArgsToCommand="True" />
</telerik:EventToCommandBehavior.EventBindings>
</telerik:RadDataPager>
<StackPanel Orientation="Horizontal" Grid.Column="3" VerticalAlignment="Center" Margin="10,0,10,0">
<TextBlock Text="Objects on page:" FontSize="12" VerticalAlignment="Center" />
<telerik:RadNumericUpDown x:Name="ndCount" IsInteger="True" ValueFormat="Numeric" Value="{Binding PageSize, Mode=TwoWay,UpdateSourceTrigger=Explicit,NotifyOnValidationError=True}" Minimum="10" Maximum="200" SmallChange="5" LargeChange="10" VerticalAlignment="Center" Margin="5,0,10,0"/>
</StackPanel>

...

 

Rumyantsev
Top achievements
Rank 1
 asked on 21 Oct 2019
4 answers
124 views

Is it possible to change the behavior of the checkboxes inside RadPivotFieldList so that the first underscore of the label is visible? I cannot find a way without retemplating the whole control. The text actually is UID_BNK - bank code, but the underscore is swallowed by the checkbox.

Kind regards,

Gian Paolo

 

Gianpaolo
Top achievements
Rank 1
 answered on 21 Oct 2019
8 answers
559 views
Hello,

I need your help for a few RadProperty tweaks:

1) I auto-generate my property grids from all sorts of different objects. I need to set a data template that will help me "word wrap" all the string properties by default

2) I sometimes need to hide the "property names" section, how can I achieve that?

3) I want to hide the grey block to the left of the "property names" section, how can this be achieved?

I have attached a screenshot to better explain my requirements.

Many thanks!
Frank
Top achievements
Rank 1
 answered on 21 Oct 2019
8 answers
321 views

I'm getting an error dialog opening SDK Samples Browser:

Cannot connect to Telerik XAML-SDK GitBug repository. Possible reasongs:

- internet connection is not available

- GitHub.com is down for maintenance

Both assumptions are false.

How to fix this annoying dialog?

Mihaela
Top achievements
Rank 1
 answered on 18 Oct 2019
3 answers
125 views

Hello,

Look at the screen shot: the first entry is selected by the search, but it is not highlighted. It's because the "i" char has a special accent on it.

It seems that the logic between search and highlighting is not the same.

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Oct 2019
7 answers
201 views

I want to disable all highlight in the RadAutoCompleteBox dropdown list. So I have HighlightBehavior.FindHighlightedIndex which returns -1. But, still one item in ItemsSource is highlighted. How can I fix it?

 

FYI: On entering EACH new character in the search text box, we are calling a web service which returns a list of recommended search strings from history. (This behavior is similar to google search box.) And we set that list to ItemsSource property. This service call takes a few milliseconds.

Observation: after hitting a new character in search box, FindHighlightedIndex is called, which returns -1, and after that, our service returns a new set of strings to be set in dropdown list, and that list is set to the ItemsSource property.  

 

Kindly suggest how to fix this.

Thanks.

 

Our code snippet below:

public class NoSuggestionItemHighlightBehavior : HighlightBehavior
{
    public override int FindHighlightedIndex (string searchText, System.Collections.IList filteredItems, IEnumerable<object> escapedItems, string textSearchPath, TextSearchMode textSearchMode)
    {
       return -1;
    }
}

 

<telerik:RadAutoCompleteBox x:Name="textBox_Search"
ItemsSource="{Binding AutoCompleteList}"
SelectionMode="Single"
TextSearchMode="Contains"
BorderThickness="0"
HighlightBehavior="{StaticResource NoSuggestionItemHighlightBehavior}"
SearchText="{Binding SearchText, Mode=TwoWay}">

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Oct 2019
5 answers
295 views

Hi

How can I create a custom Hexagons RadButton with material style and effect?

Vicky
Telerik team
 answered on 18 Oct 2019
6 answers
202 views

Dear Telerik team,

We have a RadGridView with localised columns and we would like to use string that remain same for all localised value. In order to achieve we use UniqueName="Id" and Set AutomationProperties.AutomationId="{Binding UniqueName, RelativeSource={RelativeSource Self}}" but when we run application the Header which is a localised string always get precedence and we end up with header value.

Here is a code there we were using for defining columns

<telerik:GridViewDataColumn
                    x:Name="OrderId"
                    Width="auto"
                    AutomationProperties.AutomationId="{Binding UniqueName, RelativeSource={RelativeSource Self}}"                     DataMemberBinding="{Binding Id}"
                    Header="{x:Static resources:Resources.Id}"
                    Style="{StaticResource RightAlignedRadGridViewColumnStyle}"
                    UniqueName="OrderId">

Usman
Top achievements
Rank 1
 answered on 18 Oct 2019
1 answer
73 views

Hi,

Facing an strange issue, whenever i am trying to add a new row in the grid , the multi select filters starts showing empty value in the filter options, so from which event i can rectify this issue.

 

Help is appreciated. Attached the screenshot.

 

Dilyan Traykov
Telerik team
 answered on 18 Oct 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?