Telerik Forums
UI for WPF Forum
3 answers
260 views

hi

I have raddataform with fields

empid

name

salary

I wanna to Making a raddataform field (empid) read-only  programmlly without disabling it, 

programmlly in c# code  not xaml

Stefan
Telerik team
 answered on 25 Nov 2016
6 answers
542 views

I have multiple VisualizationLayers in my radmap. On one layer I want to render a collection of shapes (lines, polygons, ellipses). I have bound the collection of shapes to my layer but I notice that when the map is zoomed the shapes remain a constant size. I want to achieve the behaviour shown in the sample app "Information Layer Map Polygon" so the shapes grow/shrink as the map is zoomed in or out. The sample code uses MapPolygon (which I can't use in VisualizationLayer?). Is there some way for me to get the same behaviour in a VisualizationLayer?

Thanks

Pete

 

Peter
Top achievements
Rank 1
Veteran
 answered on 25 Nov 2016
3 answers
315 views

Hi,

i am trying to change the header style of the PropertyGrid (the textbox "searchAsYouTypeTextBox" right and the search ring "Data" left of the textbox). How can i do it? There is no property "Header" to set for the style.

When i generate style Template for the property grid control i lost my own editor template for my property grid.

How can i achieve that (only style for property grid header or bind my item into the new generated template for property grid and use another template into?

Thanks for your help!

Richard

 

Dilyan Traykov
Telerik team
 answered on 25 Nov 2016
2 answers
227 views

I have a very simple RadComboBox but you cannot select an item with the mouse it only accepts a different item by pressing enter!!!

I've found there is a tiny, perhaps 1 pixel border around the edge of the ComboBoxItem, where you can click with the mouse and the selection works. But this is totally unacceptably and far too fiddly. How can I get this most basic functionality working?

Andrew

Nasko
Telerik team
 answered on 25 Nov 2016
10 answers
338 views

How do I get the first item in the list to be the top most item in the carousel view by default?

I've uploaded a sample project here - https://1drv.ms/u/s!AlTc1v3Zi2qjiad16m_HibRZA6awag

 

Phoenix
Top achievements
Rank 1
 answered on 24 Nov 2016
9 answers
1.5K+ views

Hi Peshito,

I have one more question,  how to remove the "MouseOver" color in RadGridView column Header? please help me

Regards,

Bennit.

Stefan
Telerik team
 answered on 24 Nov 2016
13 answers
2.4K+ views

Hi,

We are currently using Telerik's RadGridView control with extended/mixed mode selection enabled.

Is there any way to Bind directly to the:

a) SelectedItem/SelectedItems

b) The SelectedCells' Column and Item(s) properties

c) FilterDescriptors (to suspend/resume notifications)

Using a RadContextMenu for Pure MVVM?

We are currently using an approach with references RadGridView UI elements via the ViewModel, which we'd like to avoid. We have also considered the SelectedItems approach through a behavior, as illustrated here:

http://www.telerik.com/blogs/how-to-synchronize-your-ui-selected-items-with-your-data-context-using-mvvm-and-blend-behaviors-for-silverlight-and-wpf

However, the performance of the selection slows the larger the number of items highlighted, since the behavior is triggering the Transfer method in the behavior for each row highlighted in the RadGridView. We'd like to avoid using a behavior, if possible, as our users are working with large datasets and will need to be able to selected 1M+ rows at a time.

Currently, we are using this approach, where we are able to pass the RadGridView to the ViewModel as a CommandParameter from a RadContextMenu in its entirety:

<telerik:RadGridView Grid.Row="1" 
                             Name="dtgMyData" 
                             ItemsSource="{Binding Path=MyDataCollection}" 
                             AutoGenerateColumns="False" 
                             IsReadOnly="False" 
                             RowIndicatorVisibility="Visible"
                             HorizontalAlignment="Stretch"
                             SelectionMode="Extended"
                             SelectionUnit="Mixed">

...

<telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="MyDataGridContextMenu">
                    <telerik:RadContextMenu.Items>
                        <telerik:RadMenuItem Header="Filter Selected" Command="{Binding DataContext.FilterSelectionCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}}" CommandParameter="{Binding Path=UIElement, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadContextMenu}}"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>

...

...<columns>...

Where the Command and CommandParameters are bound to the ViewModel.

Is there a way to avoid binding to the ViewModel directly referencing UI controls using a RadContextMenu without using behaviors? For example, is there another Binding option for the CommandParameter above that is shown to reference the entire RadGridView, such that we can reference SelectedCells.Item(s) or SelectedItem/SelectedItems bound to our Model (i.e. MyData) directly, and if at all possible, the Column and/or Column FilterDescriptors without having to use code-behind and avoiding the use of a behavior?

 

Kind regards

 

Stefan
Telerik team
 answered on 24 Nov 2016
10 answers
974 views

Good afternoon. How can I save the geometry of the selected objects to RadDiagram in xaml file? Now I take the RadDiagramShape geometry, convert it to a string and written in the xaml file. But when I try the reverse conversion, an error is thrown

1) the RadDiagramShape declare

<telerik:RadDiagramShape x:Name="ConditionShape"
 IsEditable="False"
AllowCopy="False" AllowCut="False" AllowDelete="False" AllowDrop="False" AllowPaste="True" Background="Azure" 
Geometry="{telerik:CommonShape ShapeType=RectangleShape }" StrokeThickness="1" Height="100" Width="100" RenderTransformOrigin="0.5,0.5" Position="180,50"/>

2) the entry in the xaml file

Init.overview.LibraryItems.FunctionItem[end].Data = Convert.ToString(ShapeFactory.GetShapeGeometry(FlowChartShapeType.DecisionShape));

 FunctionLibrary Done = new FunctionLibrary();
            Done = Init.overview;
            XmlSerializer xml = new XmlSerializer(typeof(FunctionLibrary));
            file.Close();
            using (var fStream = new FileStream(path: "./****.xml", mode: FileMode.Create, access: FileAccess.Write, share: FileShare.ReadWrite))
            {
                xml.Serialize(fStream, Done);
                fStream.Close();
            }

3) the result in a file

      <Data>M56;0,5L111,5;37,5 56;74,5 0,5;37,5z</Data>
4)  and the inverse transform

var converter = new System.Windows.Media.GeometryConverter();

var data = (Geometry) converter.ConvertFromString(ListCode[i].Data);

ConditionShape.Geometry = data;

this line is not recognized as geometry. how to convert in the required format?

Martin Ivanov
Telerik team
 answered on 24 Nov 2016
26 answers
758 views
As the thread title says, is there any built in localization of your GridView control? I only find examples how to localize on my own in your documentation.

Does that mean I have to translate myself or is there some functionality where I basically set a culture property or something and the GridView strings are for example in German instead of English?


sai
Top achievements
Rank 1
 answered on 24 Nov 2016
1 answer
56 views

Hello,

I want to use telerik toolbar with radrichtextbox, i want to import word document and highlight with the tollbar button a number of words.

Then i want to get the content of theese words and to save it in an xml file.

Question : How can i get the content of highlited text ? If you know another technology that can provides me with those features please tell me about it.

Thank you.

Tanya
Telerik team
 answered on 23 Nov 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
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?