Telerik Forums
UI for WPF Forum
6 answers
103 views

Hi there,

I've found the examples for all the other CustomxDialog types, but I haven't found one for CustomStyleFormattingPropertiesDialog

Can somebody give a little guidance?

Michael
Top achievements
Rank 1
Veteran
 answered on 01 Nov 2017
2 answers
322 views

Hi, is there any way I can style label for DataFormDataField inside code-behind file or XAML ? For example, I have such layout and need to change label's foreground color:

<telerik:DataFormDataField x:Name="someNameHere" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Label="{Binding Source={x:Static p:Resources.someValue}, Mode=OneTime, StringFormat='{}{0} :'}">                     

    <telerik:RadDateTimePicker x:Name="datePicker" SelectedDate="{Binding ControlDefinition.selectedDate, StringFormat='{}{0:T} {0:d}', Mode=TwoWay}"/>               </telerik:DataFormDataField>

 

Thanks in advance.

FirstName
Top achievements
Rank 1
 answered on 31 Oct 2017
3 answers
210 views

Hi, wisers,

I'm using RadGridView (2013.2.0724.40) under .net 4.5 to display some objects whose properties will only be known at run time. Googled and it seems ICustomTypeProvider is a good fit. I implemented it to my class and tried to set RadGridView to AutoGenerateColumns = True. But the properties dynamically added to the class are not shown in the generated grid, only those fixed properties. I tried DataGrid in .net itself and it works fine, the dynamic properties are shown in the DataGrid in column.

It seems that RadGridView itself doesn't support ICustomTypeProvider like .net DataGrid. Is there any possibility to achieve this in RadGridView?

Stefan
Telerik team
 answered on 31 Oct 2017
5 answers
352 views

Hi there,

We have the following scenario:  a Diagram with 323 items and 470 links takes about 8 seconds to display the first time.  Is this reasonable and expected?  What should we be looking at to improve this load time, please?

We do intend to show the entirety of the Diagram with all items and links at once, so we can't take advantage of Virtualization.

Profiling results indicate that the largest chunk of time is indeed spent in the Diagram constructor.

A large chuck of time is spent in RadDiagram.UpdateStylesAndTemplates, which is called three times (I suspect for the setting of each of ShapeStyle, ContainerShapeStyle, and ConnectionStyle) and seems to do plenty of work each time.  I think this says that we already have the GraphSource populated before we hit the definitions of those styles (this is true based on reading order of the xaml).

What other sorts of things could we look at? 

 

Thanks,

-David

 

 

 

 

 

 

 

 

Petar Mladenov
Telerik team
 answered on 31 Oct 2017
11 answers
448 views

Hello,

Can you point me to an example of a custom RadDiagramShape with connectors.  I've seen this example but I don't see the connectors.

http://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape

 

Thanks,

Dinko | Tech Support Engineer
Telerik team
 answered on 31 Oct 2017
3 answers
281 views

Hi,

How can I populate my RichTextBox like the Preview shown in the attachment (codeblock.jpg)?

 

I tried something like this:

previewTextBox.InsertCodeBlock(codeTextBox.Text, settings);

but the result is not the same (mypreview.jpg)

 

thank you

Polya
Telerik team
 answered on 31 Oct 2017
7 answers
257 views
When using the keyboard to traverse a GUI's components, a RadMenu gets highlighted the first time it receives keyboard focus but never loses the highlight when the focus goes to the next item.

Example:
- Add the following to a simple GUI:
  1. two buttons
  2. one RadMenu

- Run the application
- Tab around the controls
- Notice how the buttons change visual status when they receive and lose keyboard focus.
- Notice how the menu turns orange the first time it receives keyboard focus and then never changes visual state again as it receives/loses focus.
 
  I have tried resetting background color in the LostKeyboardFocus Event on the RadMenu and its topmost RadMenuItem but that doesn't work.

  How can I get a RadMenu to correctly display visual feedback as it receives/loses keyboard focus?


Nayana
Top achievements
Rank 1
 answered on 31 Oct 2017
2 answers
151 views

Hello!

I'm using "UI for WPF R2 2017".

If, in the RadMaskedTextInput, I hit the "Return" button the control expands onto a second line, and of course I want to prohibit this.

Please see the Before and After jpegs.

Thanks,
Mark

 

Clemens
Top achievements
Rank 1
 answered on 30 Oct 2017
2 answers
174 views

I've seen this post: http://www.telerik.com/forums/hotspot-for-pushpin-image-w-info-bubble but it doesn't quite meet my needs. The example uses InformationLayer but I want to use Visualization Layers - do hotspots work the same in both layer types? 

I'm trying display a collection of images on a map (on a VisualizationLayer). I also want to display a "label" for each image, and the label has various properties I can set (font size, color, offset, offset, enclosed by border, with line from border to image). The attached image gives an idea of what I'm trying to do.

I've tried binding the hotspot offsets to values in my viewmodel, but it seems like they get ignored, but it works if I put constant values for the hotspot in the xaml

e.g. this works:

<telerik:MapLayer.HotSpot>
    <telerik:HotSpot x:Name="hotSpot"
                     XUnits="Pixels"
                     YUnits="Pixels"
                     X="200"
                     Y="200"
                     ElementName="LabelText" />
</telerik:MapLayer.HotSpot>

but this doesn't:

<telerik:MapLayer.HotSpot>
    <telerik:HotSpot x:Name="hotSpot"
                     XUnits="Pixels"
                     YUnits="Pixels"
                     X="{Binding LabelOffsetX}"
                     Y="{Binding LabelOffsetY}"
                     ElementName="LabelText" />
</telerik:MapLayer.HotSpot>

 

I need a way to dynamically change the offsets for individual items. What am I doing something wrong? I've attached a sample app to show this problem.

Thanks,

Pete

 

 

Peter
Top achievements
Rank 1
Veteran
 answered on 30 Oct 2017
9 answers
938 views
when i add or deleted data from the grid the grid not refresh
until i go to other place like tab or page
can somebody no this problem ?.
best regard
Stefan
Telerik team
 answered on 30 Oct 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
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?