Telerik Forums
UI for WPF Forum
7 answers
536 views
The custom toolip example has a TargetType and no key so it overrides all tooltips. How can I just target the Appointment with a custom toolip?

Thanks,
Rod
Dani
Telerik team
 answered on 28 Jul 2011
7 answers
329 views
Hi,
I get an exception when i add theses lines in my xaml :
<telerik:ChartArea.AxisX>
    <telerik:AxisX x:Uid="telerik:AxisX_2"
            AxisLabelsVisibility="Collapsed"
            MajorTicksVisibility="Collapsed"
            MinorTicksVisibility="Collapsed" />
</telerik:ChartArea.AxisX>

If remove them the chart is correctly displayed. Is it the right manner to hide all the ticks ?
I want the lightest graph possible : only the bar with the value number in it, no legend, no title, no tick, nothing else,...

Any help ?

- Cedric -

Here are the complete files:

The Xaml:

and the code of the ViewModel:
public class MainViewModel : ViewModelBase
{
    public MainViewModel()
    {
        this.Items = new List<Item>()
    {
        new Item() 
        
            Level = 1, 
            Text ="AAAA"
            StatusGroup = new List<StatusPerformance>()
            {
                new StatusPerformance("Success", new List<Performance>() 
                {
                    new Performance() { Name="TMI", Count=76},
                    new Performance() { Name="TXT", Count=39}
                }),
                new StatusPerformance("Misrecognition", new List<Performance>() 
                {
                    new Performance() { Name="TMI", Count=15},
                    new Performance() { Name="TXT", Count=33}
                }),
                new StatusPerformance("Unknown", new List<Performance>() 
                {
                    new Performance() { Name="TMI", Count=62}
                })
            }
        },
        new Item() { Level = 2, Text ="BBBB"},
        new Item() { Level = 3, Text ="CCCC"},
        new Item() { Level = 4, Text ="DDDD"},
    };
    }
  
    public IList<Item> Items { get; private set; }
}
  
public class Item : ViewModelBase
{
    private TileStateEnum tileState;
    public int Level { get; set; }
    public string Text { get; set; }
    public TileStateEnum TileStateProp
    {
        get
        {
            return this.tileState;
        }
  
        set
        {
            if (this.tileState != value)
            {
                this.tileState = value;
                this.NotifyPropertyChanged("TileStateProp");
            }
        }
    }
  
    public List<StatusPerformance> StatusGroup { get; set; }
}
  
public class StatusPerformance : List<Performance>
{
    public StatusPerformance(string status, IList<Performance> performances)
    {
        this.Status = status;
        this.AddRange(performances);
    }
    public string Status { get; private set; }
}
  
public class Performance
{
    public string Name { get; set; }
    public int Count { get; set; }
}


Cedric
Top achievements
Rank 1
 answered on 28 Jul 2011
1 answer
143 views
Hello,

How can i make the DataFormComboBoxField editable (also with autocomplete) ?

Pavel Pavlov
Telerik team
 answered on 28 Jul 2011
0 answers
98 views
i have resolved :D close it please
nunzio
Top achievements
Rank 1
 asked on 28 Jul 2011
3 answers
325 views
I have a data class, Category, which has a property Children. This hierarchy, from a root Category node is bound to a TreeView. Category.Name is what displays for the Category. TreeView currently works fine.

What I need to figure out how to do is raise an edit event when the user makes a modification of the display value. I do not want to actually have anything edit the underlying bound value, until I do it myself.

I have tried with and without an EditItemTemplate. In the RadTreeView.Edited event, Source is set to the Category instance itself. OriginalSource is set to the RadTreeViewItem. NewText and OldText are both null (deprecated.) OldValue and NewValue are set to teh Category instance itself. And the Category.Name property has been edited. OldValue.Name and NewValue.Name are both the new value. Of course. Since it's set to the instance itself, there's no way to distuinguish between the before and after states.

What the heck can I do here? I thought I'd just use an EditItemTemplate, with a custom TextBox, in order to capture the new value, and set the Binding.Mode of the HierarchalDataTemplate to OneWay, to prevent it from being changed. However, now I have no way in the Edited event to retrieve the new value. I can't find the TextBox of the EditItemTemplate anywhere underneath RadTreeViewItem, and the OldValue and NewValue are of course still set to the Category itself (which is no longer altered, at least.)

Help?
Kiril Stanoev
Telerik team
 answered on 28 Jul 2011
6 answers
146 views
Hi,

We are hosting RadScheduleView inside a ActiveX control on a win32 application using "HWNDSource" mechanism. The RadScheduleView UI appears properly but we are facing problems with the modal dialogs like EditAppointmentDialog, EditRecurrenceDialog, DeleteConfirmationDialog etc.,

All these dialogs appears correctly on the RadScheduleView and blocks any operation on RadScheduleView as expected. But when we switch to other application and come back to ScheduleView application all these dialogs does not come to focus by default (ie., does not appear on RadScheduleView). These popped up dialogs remain behind and need to select manually (using Alt-tab) to bring them front.

Any help/idea to solve this issue is highly appreciated.

Regards,
Siva Prasad.Ch
Rosi
Telerik team
 answered on 28 Jul 2011
2 answers
122 views
Hello,
 
        I have a small doupt about wpf binding
 
here i have three classes,
 
class LoanViewBO
{
  private string _companyName;
  private List<LoanBO> _loans;
 
  public string CompanyName
  {
   get { return _companyName; }
   set { _companyName = value; }
  }
  public List<LoanBO> Loans
  {
   get { return _loans; }
 
   set { _loans = value;}
  }
}
  
class LoanBO
{
  private List<LoanItemBO> _loanItems;
  private string _loanNumber;
  private string _items;
  private string _reference;
   
  public List<LoanItemBO> LoanItems
  {
   get { return _loanItems; }
   set { _loanItems = value;}
  }
  public string LoanNumber
  {
   get { return _loanNumber; }
   set { _loanNumber = value; }
  }
  public string Items
  {
   get {return _items;}
   set { _items = value;}
  }
  public string Reference
  {
   get { return _reference; }
   set { _reference = value; }
  }
}
   
   
 
class LoanItemBO
 {
  private int? _loanID;
  private string _loanNumber;
  private int? _itemID;
  private string _itemName;
   
  public int? LoanID
  {
   get { return _loanID; }
   set { _loanID = value; }
  }
  public string LoanNumber
  {
   get { return _loanNumber; }
   set { _loanNumber = value; }
  }
  public int? ItemID
  {
   get { return _itemID; }
   set { _itemID = value; }
  }
  public string ItemName
  {
   get { return _itemName; }
   set {_itemName = value;}
  }
}
 
 
Here i have only one textBox. which is going to bind Companyname..
also i have two Telerik DataGrid .First dataGrid Bind with Loans and second dataGrid Bind with
LoanItems .How to bind with in XAML? here i want to do Insert operation..how i should
assign DataContext in Code , XAML and Bindings?(here one Loan may have many LoanItems)
anybody suggest me? it will be appreciate. and also i want empty row when loading?
Thank you..
sivakanth
Top achievements
Rank 1
 answered on 28 Jul 2011
1 answer
292 views
Greetings-
I have been trying for some time now to style the GridViewHeaderCell of the RadGridView. I have been attempting to follow the instructions on:
http://www.telerik.com/help/wpf/telerik.windows.controls.gridview-telerik.windows.controls.gridview.gridviewheadercell.html
Unfortunately, there seems to be an issue with the instructions...

In order to expose the GridViewHeaderCell class you need to declare
public class GridViewHeaderCell : GridViewCellBase, IColumnInfo, IProvideGridViewColumn

The GridViewHeaderConstructor should initialize a new instance of the GridViewHeaderCell class.
 
public GridViewHeaderCell()

Also the IProvideGridViewColumn which has been mentioned seems to be deprecated, where do we declare the GridViewHeaderCell? MainWindow.xaml? AppResources.xaml?

Thanks,


Maya
Telerik team
 answered on 28 Jul 2011
10 answers
309 views
<StackPanel>
     <telerik:DataFormDataField
          DataMemberBinding="{Binding Credential.AccountName, Mode=TwoWay}"
          Label="Account:" />
 
     <telerik:DataFormDataField
          DataMemberBinding="{Binding Credential.Username, Mode=TwoWay}"
          Label="Username:" />
 
     <telerik:DataFormDataField
          Label="Old Password:">
               <PasswordBox />
     </telerik:DataFormDataField>
 
     <telerik:DataFormDataField
          Label="New Password:">
          <PasswordBox />
     </telerik:DataFormDataField>
 
     <telerik:DataFormDataField
          DataMemberBinding="{Binding Credential.Domain, Mode=TwoWay}"
          Label="Domain:" />
 
     <telerik:DataFormCheckBoxField
          DataMemberBinding="{Binding Credential.IsPrimary, Mode=TwoWay}"
          Label="Is Primary:" />
</StackPanel>
This is a DataTemplate I'm applying to my RadDataForm. However, that last CheckBox field is not displaying properly. Here is a photo link showing what the output looks like: http://public.bay.livefilestore.com/y1pD3zRBo_yIsJp0-maZiXz-MeCu6nKQT9fhvcgDuGN2fa-zm8OajKmj7AOZBA2YghLrpMM1bDuawWlr2ZbXaP9Pg/checkbox_issue.png?psid=1 I'm using the latest internal release of the WPF controls on trial. Any ideas?
Chad England
Top achievements
Rank 1
 answered on 27 Jul 2011
2 answers
187 views
I have a databound tabstrip where the tabs come from one set of data and the content of the tabs is a DataTemplate with a ListView inside. Is there a way to have this scenario but also add additional tabs for items that will not be bound to that DataTemplate?

My tabstrip XAML looks like this:
<telerik:RadTabControl telerik:Theming.Theme="Windows7" BackgroundVisibility="Collapsed" TabStripPlacement="Left" TabOrientation="Vertical" DisplayMemberPath="Name"
                                           ItemsSource="{Binding ReviewCategoryModels}" ContentTemplate="{StaticResource ReviewSectionDetailTemplate}" Align="Right" ItemContainerStyle="{StaticResource ReviewCategoryTabStyle}" />

And then in UserControl.Resources I have the following:
<DataTemplate x:Key="ReviewSectionDetailTemplate">
<ListView x:Name="items" ItemsSource="{Binding Items}" AlternationCount="2" MinWidth="550" Style="{StaticResource ReviewItemListView}">
[...]
</ListView>
</DataTemplate>

So I want to use this setup but then add an additional tab (or two, etc.) that do NOT use this DataTemplate. My app is based off the MVVM pattern so sticking inside the guidelines of that is preferable (though not required).

Is this possible?
digitall
Top achievements
Rank 1
 answered on 27 Jul 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?