Telerik Forums
UI for WPF Forum
5 answers
214 views

Hi!

PropertyGrid User Control:

01.<telerik:RadPropertyGrid x:Name="PropertyGrid1"
02.                              
03.            IsGrouped="True"
04.            RenderMode="Hierarchical"
05.            DescriptionPanelVisibility="Visible"
06.            SortAndGroupButtonsVisibility="Visible"
07.            LabelColumnWidth="80"
08.                              
09.            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
10.            ScrollViewer.VerticalScrollBarVisibility="Disabled">
11.    <telerik:RadPropertyGrid.PropertyDefinitions>
12.        <telerik:PropertyDefinition Binding="{Binding Salary}" Description="Displays the Width property of the RadButton" DisplayName="Width">
13.            <telerik:PropertyDefinition.EditorTemplate>
14.                <DataTemplate>
15.                    <telerik:RadNumericUpDown Value="{Binding Salary, Mode=TwoWay}" />
16.                </DataTemplate>
17.            </telerik:PropertyDefinition.EditorTemplate>
18.        </telerik:PropertyDefinition>
19.        <telerik:PropertyDefinition Binding="{Binding IsMarried}" Description="Displays the Height property of the RadButton" DisplayName="Married Count">
20.            <telerik:PropertyDefinition.EditorTemplate>
21.                <DataTemplate>
22.                    <telerik:RadSlider Value="{Binding IsMarried, Mode=TwoWay}" />
23.                </DataTemplate>
24.            </telerik:PropertyDefinition.EditorTemplate>
25.        </telerik:PropertyDefinition>
26.    </telerik:RadPropertyGrid.PropertyDefinitions>
27.</telerik:RadPropertyGrid>

 

Code Behind

01.public PropGrid()
02.{
03.    InitializeComponent();
04.    this.PropertyGrid1.Item = new Employee()
05.    {
06.        FirstName = "Sarah",
07.        LastName = "Blake",
08.        Occupation = "Supplied Manager",
09.        StartingDate = new DateTime(2005, 04, 12),
10.        IsMarried = 4,
11.        Salary = 3500,
12.    };
13.}

 

Start application and expand the whole window. Resize it back, propertyGrid doesnt adjust.

The root cause is the slider. If i remove the slider, everything works fine. For your reference, please see the attached project

Is this a bug?

Stefan Nenchev
Telerik team
 answered on 06 Apr 2017
1 answer
102 views

I am Building a modular application using Prism and Rad-docking controls.

The application is similar to visual studio, has Rad Panes docked to left right and bottom.

Those panels are injected when the application startup using prism.

The problem is that when a Rad-pane is Removed and Re-added by Prism the Header of the Pane Disappear until the Pane is Unpinned and pinned again.

Stefan
Telerik team
 answered on 05 Apr 2017
3 answers
587 views

Hi,

I have radtreeview control and when OpenFileDialog is shown on top of that control and an item is selected using double click, the OpenFileDialog gets closed which is the expected behavior as the file has been selected. But also the Itemclick event is fired on the treeviewitem which is exactly behind the point where the double click happened on the filedialog.

 

Can you please let me know how to avoid the ItemClick event.

 Thanks.

Tanya
Telerik team
 answered on 05 Apr 2017
3 answers
204 views

Hi I have a paragraph style defined as

new StyleDefinition
{
   DisplayName = "Quotation 1",
   Name = "Quotation1",
   NextStyleName = "Normal",
   Type = StyleType.Paragraph,
   IsCustom = false,
   IsDefault = false,
   IsPrimary = true,
   UIPriority = 4,
   ParagraphProperties =
   {
     LineSpacing = 1.15,
     SpacingAfter = 56.0/3.0
   },
   SpanProperties =
   {
     FontFamily = new FontFamily("Calibri"),
     FontSize = 56 / 3.0,
     FontStyle = FontStyles.Normal,
     FontWeight = FontWeights.Bold,
     ForeColor = Color.FromRgb(193, 43, 103),
   }
};

I have a rad document with multiple paragraphs. If the paragraphs have a default styles I can apply my style to one of them and the document looks like expected. The chosen paragraph is pink and bold.

Unfortunately when the user of the application selects some words in the paragraph make them bold and then not bold again it creates a new span which has exectly the same properties including FontWeight Normal, but after I apply my style only the spans that weren't changed become pink bold while the changed remains Normal.

Is there a way to force span style to the whole paragraph?

Mihail
Telerik team
 answered on 05 Apr 2017
5 answers
150 views

Hello, we are using a RadRichTextBox with SpellChecker dialog.  When a word is added to the custom dictionary, either through the context menu or the SpellChecker dialog, the AddWord event is fired correctly.  However, when a word is deleted from the dialog, or the Delete All is selected, no event is fired.  We are capturing both RemoveWord and DataChanged events, but they are not called.  Our current version of controls may be older, so if this was fixed in a later version, please indicate that so we can proceed accordingly.

Thanks for your help.

Peshito
Telerik team
 answered on 05 Apr 2017
4 answers
92 views

Hello,

is it possible to force syntax highlighting, after setting expression in ExpressionEditor via property ExpressionText? (coming from binding)
On VisualStudio2013_Dark u can't read the expression without highlighting.

 

What i'm doing wrong? The scrollviewers bottom on editor categories and selected category items are hidden?
I'm using Telerik.Windows.Themes.VisualStudio2013 2017.1.313.40. The ExpressionEditor is in a GridRow with height of 300. It should be high enough?!

<telerik:RadExpressionEditor Grid.Row="5"
ExpressionText="{Binding RollenExpression.Expression, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Item="{Binding Source={x:Static slapz:MainWindowViewModel.Instance}, Path=Users[0]}"
ExpressionChanged="ExpressionEditor_OnExpressionChanged"
x:Name="ExpressionEditor"/>

 

Thanks for any reply.

Regards
Philipp

Philipp
Top achievements
Rank 1
 answered on 04 Apr 2017
2 answers
98 views

There is an error in the code in the vb example in the linq expression the intellisense reports a missing closing bracket ')' see attached image.  do you have a fix for this.

Regards

Joe

 

Dim sd As ColumnSortDescriptor = (From d In grid.SortDescriptors.OfType(Of ColumnSortDescriptor)() Where Object.Equals(d.Column, column)d).FirstOrDefault()

 

Joe Bohen
Top achievements
Rank 1
 answered on 04 Apr 2017
13 answers
854 views
I am currently evaluating the GridView control for a project, great product by the way, and have a question on how I can go about implementing the following:

I need to display (in a grid) an employee record with a collection of hours by month, the issue is that the number of months we will be displaying can vary so I cannot use a static template.

EmployeeRecord
    EmployeeName
    ID
    Collection of Hours by month


should be displayed in the grid in the following way:
_________________________________________________________________
ID | EmployeeName | HoursMonth1 | HoursMonth2 | HoursMonth3 | HoursMonth4|...
---------------------------------------------------------------------------------------------------------

Is there a way to do this using the RadControl GridView, add additional columns to the grid for each item in the hours by month collection?

Thanks!
Stefan Nenchev
Telerik team
 answered on 04 Apr 2017
3 answers
99 views
Setting Tick Placement property of rad slider control to Both value, is there any way to provide multiple tick collection to be assigned for each side. For example, I want the TOP tick placement to to take the values from 10 to 0, while the Bottom tick placement should take the values from 0 to 10.

If this is not possible or it is too complicated to achieve this goal with RadSlider control, then, what is the most appropriate control to achieve this?

Thanks in advanced.
Dinko | Tech Support Engineer
Telerik team
 answered on 04 Apr 2017
1 answer
470 views

Hi

Is it possible to add tool tip on mouse hover to spreadsheet cell. 

And Also Is it possible to use Cell Template in spreadsheet Cell.

Thanks

Tanya
Telerik team
 answered on 04 Apr 2017
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?