Telerik Forums
UI for WPF Forum
1 answer
170 views
Hi, I try binding command, but it doesn't work.

private readonly EmployeeContextViewModel _ucvm;
public MainWindow() // RadWindow
{
    InitializeComponent();
     _ucvm = new EmployeeContextViewModel();
     DataContext = _ucvm;  // <<<<<<<<<
}

xaml:

<t:RadButton Content="Exit"
        x:Name="LoginButton"
      Command="{Binding LogoutCommand}"/>

But it works when I indicates the specific component:

public MainWindow()
{
    InitializeComponent();
     _ucvm = new EmployeeContextViewModel();
    LoginButton.DataContext = _ucvm; // <<<<<<<<<<<<<< 
}
everything works fine.
Why doesnot work in the first case and how to fix it?

Vladi
Telerik team
 answered on 19 Sep 2012
1 answer
146 views
The default time format seems to be 12hr format that shows AM and PM.

Is there a way to display the time format in 24h time instead?
Tsvetie
Telerik team
 answered on 19 Sep 2012
4 answers
260 views

Hi,

The IsBusy property of my RadGridView is Bound to the IsChecked property of a checkbox, so if the checkbox is checked the grid shows the loading animation, if you uncheck it the grid shows the data. The problem is that, it only works once. So if you check the chkbx loading is displayed, uncheck and data is shown. Try the second time, third, forth, etc and the loading animation does not appear anymore.

Any ideas how to make it work every time I check the checkbox?

Thanks, Bye,

Andras

Vlad
Telerik team
 answered on 19 Sep 2012
2 answers
134 views
I follow the example in the WPF Control Examples application and Telerik website http://www.telerik.com/help/wpf/raddraganddrop-within-radgridview.html . I was able to make it work with the sample "MessageViewModel" as the RadGridView.ItemSource. However, when I change the RadGridView.ItemSource to DataView (data is retreiving from DB as DataTable), I got error "Cannot insert external objects to this list." at line:

((sender 

as RadGridView).ItemsSource as IList).Insert(index, draggedItem);

Does this feature work with DataView as ItemSource? How do I need to change to make it work?

Thanks

 

Insight
Top achievements
Rank 1
 answered on 18 Sep 2012
8 answers
395 views
I saw this post: http://www.telerik.com/community/forums/wpf/tileview/tileview-item-header-background.aspx but it really seems overkill for such a simple property change. Is there a better(easier) way to just set the background bush for the header? For certain tiles that need to reflect a change I want to set the header background to a custom linear brush. I tried using a custom template but it only changed it for the text area and not the whole header item. I also tried the example attached in the other forum post but it didn't look correct, maybe cause we're using the metro theme?

Anyway, is there a solution I've overlooked?

Robert
Tina Stancheva
Telerik team
 answered on 18 Sep 2012
0 answers
94 views
Hi, I have got a GridView in Metro style. 
Why some column separator is disappeared? When I resize the window, some separators disappear and another appear.
Please see atache.
Thanks


// edited
RadGricView have got ColumnWidth="*"
Sergiy
Top achievements
Rank 1
 asked on 18 Sep 2012
5 answers
216 views
I am currently using the solution outlined this post http://blogs.telerik.com/vladimirenchev/posts/10-05-31/how-to-synchronize-your-ui-selected-items-with-your-data-context-using-mvvm-and-blend-behaviors-for-silverlight-and-wpf.aspx 

to set my SelectedItem and SelectedItems from a RadGrid to a property on my viewModel (this works great by the way -thank you). What I am trying to do now is the same approach for a child grid of that same grid. I need to set SelectedDetailItem and SelectedDetailItems I believe the same approach will work but I cannot access my SelectedDetailItem  and SelectedDetailItems properties (which belong to my view model) from this child grid. I simply cannot get them to bind.

I have tried a few different things such as neither of which have worked.

SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.
SelectedDetailItem}"

and

SelectedItem="{Binding SelectedDetailItem,ElementName=myViewName}"
 

Do you have any ideas on how to bind the SelectedItem from a child grid to a property on a view model?
papadi
Top achievements
Rank 1
 answered on 18 Sep 2012
2 answers
221 views
Hi,

I'm looking at using the Docking control in my application, I have used the RadDock in a WinForms app and was wondering if this works in a similar way? 

What I want to have is a RibbonBar where different views/windows can be loaded into the the RadDocking. is it possible to load views/windows this way or how should this be done.

thanks 

David.
Ivo
Telerik team
 answered on 18 Sep 2012
1 answer
93 views
Hi, how to add Additional Button and HyperLink in RadWindow Header?
see atach
Georgi
Telerik team
 answered on 18 Sep 2012
3 answers
134 views
Hi All,

I am using MVVM approach, I came across http://www.telerik.com/help/wpf/scheduleview-features-loadondemand.html and understood that VisibleRangeChangedCommandProperty is provided by Telerik library itself.

I would like to know what all command behavior properties are provided by Telerik Library.

Regards,
Kshamesh
Yana
Telerik team
 answered on 18 Sep 2012
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?