Telerik Forums
UI for WPF Forum
1 answer
172 views
Hi,

I have a custom edit appointment template which contains some controls that are made visible / collapsed based on certain selected criteria within the dialog. Unlike a normal window, the edit appointment dialog doesn't automatically resize while it's open. Is there a property or something that I can use to control this behaviour? Maybe changing the window style from a non resizeable toolbox window to one that is resizeable?

I am aware that I can use another 'factory' way of creating a custom appointment dialog as shown in the following post, but this means that I also have to implement a custom confirmation dialog, etc. and I would prefer not to have to do that.

http://blogs.telerik.com/blogs/posts/11-11-04/the-lob-chronicles-episode-13-extending-radscheduleview.aspx

Thanks!
Yana
Telerik team
 answered on 23 Nov 2011
1 answer
110 views
Hello, 

First, i precise that i'm french, so, sorry for mistakes you could find in this thread.

I'm working with a RadGridView, and, in witch column cells i have to place a Combobox.

I writed this code :

<Grid Width="900" >
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <telerik:RadGridView ItemsSource="{Binding ListIntervention}" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="False" ShowInsertRow="True" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewComboBoxColumn Header="Objet intervention" Width="300"
                                                ItemsSource="{Binding ListObjet}"
                                                DataMemberBinding="{Binding ObjetId, Mode=TwoWay}"
                                                DisplayMemberPath="Libelle"
                                                SelectedValueMemberPath="Id"
                                                />
                <telerik:GridViewComboBoxColumn Header="Sous catégorie" Width="300"
                                                ItemsSource="{Binding ListSousCategorie}"
                                                DataMemberBinding="{Binding SsCategorieId, Mode=TwoWay}"
                                                DisplayMemberPath="Libelle"
                                                SelectedValueMemberPath="Id"
                                                />
                <telerik:GridViewComboBoxColumn Header="Catégorie" Width="*"
                                                ItemsSource="{Binding ListCategorie}"
                                                DataMemberBinding="{Binding CategorieId, Mode=TwoWay}"
                                                DisplayMemberPath="Libelle"
                                                SelectedValueMemberPath="Id"
                                                />
 
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
 
And for the list, the definition is in a viewmodel class :
public class GestionAccueilViewModel : ActiveAwareViewModelBase
{
 
    #region Fields
 
    private readonly ITroncCommunService _troncCommunService;
    private readonly IMessageBoxService _messageBoxService;
 
    #endregion
 
    #region Ctor
 
    public GestionAccueilViewModel(ITroncCommunService troncCommunService, IMessageBoxService messageBoxService)
    {
        _troncCommunService=troncCommunService;
        _messageBoxService=messageBoxService;
 
        // Init.  
        ListSousCategorie=new ObservableCollection<TypeBouchonObjet>();
        ListCategorie=new ObservableCollection<TypeBouchonObjet>();
        ListObjet = new ObservableCollection<TypeBouchonObjet>();
        ListIntervention=new ObservableCollection<TypeBouchonIntervention>();
 
        // Mocks
 
        ListObjet.Add(new TypeBouchonObjet() { Id=1, Libelle="Date de paiement des prestations" });
        ListObjet.Add(new TypeBouchonObjet() { Id=2, Libelle="Autre objet" });
 
        ListSousCategorie.Add(new TypeBouchonObjet() { Id=1, Libelle="Logement nature" });
        ListSousCategorie.Add(new TypeBouchonObjet() { Id=2, Libelle="Autre sous-catégorie" });
 
        ListCategorie.Add(new TypeBouchonObjet() { Id=1, Libelle="AVNAT" });
        ListCategorie.Add(new TypeBouchonObjet() { Id=2, Libelle="Autre categorie" });
 
        ListIntervention.Add(new TypeBouchonIntervention() { ObjetId=1, CategorieId=1, SsCategorieId=1 });
        ListIntervention.Add(new TypeBouchonIntervention() { ObjetId=2, CategorieId=2, SsCategorieId=2 });
    }
 
    #endregion
 
    #region Listes
    private ObservableCollection<TypeBouchonIntervention> _listIntervention;
    public ObservableCollection<TypeBouchonIntervention> ListIntervention
    {
        get
        {
            return _listIntervention;
        }
        set
        {
            SetValueAndRaiseEventIfPropertyChanged<ObservableCollection<TypeBouchonIntervention>>("ListIntervention", ref _listIntervention, ref value);
        }
    }
 
    // Test RadGridView
    public ObservableCollection<TypeBouchonObjet> ListObjet { get; set; }
 
    public ObservableCollection<TypeBouchonObjet> ListCategorie { get; set; }
 
    public ObservableCollection<TypeBouchonObjet> ListSousCategorie { get; set; }
 
    #endregion
 
    #region Commands
 
    /// <summary>
    /// Valide l'accueil en cours
    /// </summary>
    public ICommand ValiderAccueilCommand
    { get; set; }
 
    /// <summary>
    /// RAZ de l'accueil en cours
    /// </summary>
    public ICommand AnnulerAccueilCommand
    { get; set; }
 
    /// <summary>
    /// Crée un nouvel écran d'accueil
    /// </summary>
    public ICommand NouvelAccueilCommand
    { get; set; }
 
    /// <summary>
    /// Recherche d'une personne via l'écran d'accueil
    /// </summary>
    public ICommand RechercherPersonneAccueilCommand
    { get; set; }
 
    #endregion

where TypeBouchon and TypeBouchonGrille are mocks class because, i'm just in the begin of development (any WCF Services implemented) :

public class TypeBouchon
    {
        public string Code { get; set; }
        public string Libelle{ get; set; }
    }
 
 public class TypeBouchonIntervention
    {
        public int ObjetId { get; set; }
 
        public int SsCategorieId { get; set; }
 
        public int CategorieId { get; set; }
    }

My problem :

I select a value in the comboxBox of the first column for example. When i focus the second combo (in the second column), the first column appears empty... 
I'd want to keep my selection in each columns...

I think my databing is correct, and i don't see the problem...

I send my screenshot in attach file.

Fab'
Dimitrina
Telerik team
 answered on 23 Nov 2011
1 answer
90 views
Hi

Any idea why none of the drag and drop events (DragQueryEvent etc) does not fire when the launched through the Microsoft Addin framework as a plugin.  I'm pretty sure its not problem in my code because the exact same project works fine and the drag events fire when launched from a normal wfp application. 
Noushad
Top achievements
Rank 1
 answered on 23 Nov 2011
1 answer
94 views
I upgraded to the WPF 4.0 2001 Q3 Release.
Everything seems fine but gauge.

I don't even see the word "gauge" mentioned in the release notes so its hard to tell what is going on with this control.

It doesn't show up in the toolbox. It looks like there are now specific gauge controls instead.
I also noticed on the WPF demo application. Gauge is now mentioned as BETA

What is going on with this control. My current code looks like
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
<telerik:RadGuage

I do have refernces to both
Telerik.WindowsControls.DataVisualization
Telerik.WindowsControls.Gauge
Andrey
Telerik team
 answered on 23 Nov 2011
3 answers
293 views
Hi,

The standard WPF datepicker allows for the specification of blackout dates which prevents a user from selecting these date ranges.

It would be excellent if this feature was in the Telerik datepicker as it looks a little weird having 1 standard wpf control amungst all the Telerik controls in my application.

Further more, it would be nice to be able to 'easy set' things like "Weekdays only" as selectable.

Just an idea,


Xavier.
Ivo
Telerik team
 answered on 23 Nov 2011
0 answers
64 views
Hello,
 I have a grid view where i have displayed my results. I have a double click event by which i try to find the clicked item. But the clickedItem returns null at times. The same code gives porper clicked items most of the times, but once in a while it returns null for the clicked item. Many of my colleauges are facing similar difficulty with Grid View.

private

 

 

void RadGridViewMouseDoubleClick(object sender, MouseButtonEventArgs e)

 

{

 

 

if (radGridView.CurrentItem == null) return;
//
// some code
//

 

}

here the  ( radGridView.CurrentItem ) returns null at times, even though the current item details could be seen while debugging.

Chandan
Top achievements
Rank 1
 asked on 23 Nov 2011
0 answers
69 views
can anyone plz help me to disable the match case button present in the rad data filter for dtring data types.
Chandan
Top achievements
Rank 1
 asked on 23 Nov 2011
2 answers
622 views
In this blog post the author describes populating a datagrid in a SilverLight application dynamically at runtime. I'm wondering how the same might be accomplished in a WPF application using RadGridView. Porting her solution shouldn't be too difficult I'm just not sure as to the XAML, in particular the item templates. Can some one offer some insight?  Thanks.

http://msmvps.com/blogs/deborahk/archive/2011/01/23/populating-a-datagrid-with-dynamic-columns-in-a-silverlight-application-using-mvvm.aspx
Vlad
Telerik team
 answered on 23 Nov 2011
1 answer
146 views
I would love to have an easy way to display the thumbnail preview of a file. The Windows Shell does it, but the pInvoke code required to make this work is excessive.

Something like this:
http://stackoverflow.com/questions/1439719/c-sharp-get-thumbnail-from-file-via-windows-api

Perhaps a "RadFileThumbnail" control?

The Windows API Code Pack for Windows 7 has something like this, but you lock yourself into Windows 7 by using it.
http://archive.msdn.microsoft.com/WindowsAPICodePack

-Mike.
Tina Stancheva
Telerik team
 answered on 22 Nov 2011
3 answers
97 views
Hi,

I've been reading the Q3 2011 Public Roadmap (http://www.telerik.com/products/wpf/whats-new/roadmap.aspx) and it mentions a new control "Timeline Beta". I'm wondering if Telerik can provide more details about this control (maybe an idea of what it will look like and function?) and when this control might be able to be tested.

I'm working on a project that is looking to visualize a sequence of events over time graphically and it sounds like this may be the ideal control for this purpose, however I would like to check whether this control provides what I require and if it would work within our development timelime.

Kind regards,
Dave.
Giuseppe
Telerik team
 answered on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?