Telerik Forums
UI for WPF Forum
3 answers
147 views
I am trying to format the header string that is bound to an item from the view model.

eg

Header="{Binding EstimateTakeoffService.SelectedEstimate.Title, StringFormat='Estimate Information: {0}'}"

This doesn't show the "Estimate Information:"

Why does this not work?

Many thanks

Ed
Edmund Covington
Top achievements
Rank 1
 answered on 22 Jul 2014
2 answers
90 views
I created a custom Appointment (ScheduledItem) and a custom EditAppointmentDialogWindow style with a ViewModel.When running the application my properties are filled in, but when I hit the OK button, the changes are not reflected in the ScheduleView.
It also seems that the BeginEdit, CancelEdit and EndEdit methods of the custom ScheduledItem are not called. I supposed I have to call them from my DialogViewModel?But what do I have to do to confirm the changes in the custom appointment object, so they will be reflected in the ScheduleView?
Jim
Top achievements
Rank 1
 answered on 22 Jul 2014
0 answers
138 views
Hi, I am looking for a RadComboBox  control which is in editable mode and can make suggestions similar to AutoCompleteBox control.
any suggestion  appreciated
Ghasem
Top achievements
Rank 1
 asked on 22 Jul 2014
3 answers
81 views
Hi team,

Could you please advise, How can I change the searchtextbox's foreground property of the propertyGrid either through Xaml or Code?

Regards,
Imran
Yoan
Telerik team
 answered on 21 Jul 2014
2 answers
253 views
I am using Telerik version 2014.1.331.45

I have a RadGridView like:
<telerik:RadGridView Name="RadGridView" ItemsSource="{Binding DynamicValues, Mode=TwoWay}" <br>                             SelectedItem="{Binding SelectedItem, Mode=OneWayToSource}" CanUserDeleteRows="True" <br>                             CanUserInsertRows="True" CanUserReorderColumns="False" CanUserSortColumns="False" <br>                             ShowGroupPanel="False"<br>                             IsFilteringAllowed="False"<br>                             SelectionMode="Extended"<br>                             SelectionUnit="Mixed"<br>                             IsSynchronizedWithCurrentItem="True" <br>                             behavoirs:ValidationBehavior.IsValidationEnabled="True" ClipboardPasteMode="SkipHiddenColumns">

I need to select all cells of column on clicked column header

i wrote next code for make header clickable:
foreach (var column in RadGridView.Columns)<br>            {<br>                var temp = column.Header;<br>                column.Header = new MyButton { Content = temp.ToString(), ViewModel = this };<br>            }

and custom button class:

 private class MyButton :RadButton<br>        {<br>            public override string ToString()<br>            {<br>                return Content.ToString();<br>            }<br><br>            protected override void OnMouseDown(MouseButtonEventArgs e)<br>            {<br>                if (ViewModel.columnHeaders.ContainsKey(e.Source.ToString()))<br>                {<br>                    foreach (var value in ViewModel.RadGridView.Items)<br>                    {<br>                        var row = ViewModel.RadGridView.ItemContainerGenerator.ContainerFromItem(value) as GridViewRow;<br>                        if (row != null) row.Cells[index].IsSelected ???<br>                    }<br>                }<br>                base.OnMouseDown(e);<br>            }<br><br>            public EditViewModelBase ViewModel { get; set; }<br>        }

but row.Cells[index]  does not have property IsSelected, how I can set cell property selected?

George
Top achievements
Rank 1
 answered on 21 Jul 2014
1 answer
130 views
Hi,

I apply mvvm pattern for RadDiagram. Both shapes and connections are bound to classes that derive from the Diagram.Extension classes. Everything works quite fine except, I cannot add new connection using the ActiveTool=MouseTool.ConnectorTool. When I set the ActiveTool to Connector tool, the mouse cursor changes to connector mode but it does not draw any arrow when clicked and moved on the Diagram. How can I provide the functionality to add connections between the shapes and keep the MVVM pattern?

Thanks in advance,
Semih
Pavel R. Pavlov
Telerik team
 answered on 21 Jul 2014
2 answers
95 views
Hi,

We are using Rad schedule view weekly view for our project.
I need an approach to achieve the below items.
1. Need to freeze the first column near to time ruler.
2. Display a text on the header of the time ruler column.

Please let me know appropriate approach to achieve this. Attached the output same for reference.


Thanks in Advance,
Sugumar P.
Sugumar
Top achievements
Rank 1
 answered on 21 Jul 2014
3 answers
74 views
Hi,

I am using RadTreeView control.I have implemented context menu for renaming,While renaming the node if i delete the text and press tab it should give default string "Runjith".

I tryed under this "treeview_Edited(object sender, RadTreeViewItemEditedEventArgs e)" event

 e.Source = "Runjith";
 treeview.SelectedItem = (RunjithNode)e.Source;

I am getting error for this line(treeview.SelectedItem = (RunjithNode)e.Source;)"Additional information: Unable to cast object of type 'System.String' to type 'xyz.namespace.Runjith'." Runjith class inherits RadTreeViewItem.

How to fix please help me ASAP................

BR,Runjith
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
2 answers
130 views
Hi,
We've just upgraded to Q2 2014 and replaced retired RadMaskedTextBox with RadMaskedTextInput with these properties set
<Setter Property="Mask" Value="###-###-####" />
<Setter Property="EmptyContent" Value="___-___-____" />
<Setter Property="IsClearButtonVisible" Value="False" />
<Setter Property="AllowInvalidValues" Value="False"></Setter>

Two issues:
1. Mask is set to ###-###-####. However, it allows for spaces.
2. I can't paste more than once into it. First Paste works fine, but then if I delete the contents and paste again  with Context Menu Paste, nothing happens.  If I use Ctrl+V, it does paste but only after second try.

Is there a way to fix both?
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
1 answer
133 views
I just upgraded to the latest WPF controls.  Now the tool bar is acting funky.  I have a grid within the toolbar that has various labels and text boxes.  It displayed fine before the upgrade.  Now the tool bar displays a black tool bar but by clicking on the arrow on the far right side of the control the correct tool bar pops up above the tool bar.

I've played around with the band and band index settings but nothing works.

Any help would be greatly appreciated.
Petar Mladenov
Telerik team
 answered on 21 Jul 2014
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?