Telerik Forums
UI for WPF Forum
1 answer
197 views

Hello Telerik,

 

I'm using RadGanttView and I want to change the main customtask color. Actually, it is Orange (default).

I know is it possible to Hilight all of Summarys Tasks (my target), but Hilight is Red, and I don't know how I can change his color.

 

Which way is better ? Change the Hilighted Task Color or apply a color for my custom task ?

 

The CustomMainTask (Summary Task) is created like this :

var task = new CustomGanttTask();
task.Start = variableAffichee.dateDebut;
task.End = variableAffichee.dateFin;
task.Title = viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString(); //variable = une tâche principale variableAffichee.codeVariable
task.TitreColonne = task.Title;
task.Description = task.Title; // this.viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString();
task.BackgroundColor = new SolidColorBrush(new Color { A = 0, R = 0, G = 170, B = 0 }); //System.Windows.Media.Brushes.SteelBlue;               

But the last line, BackgroundColor hasn't got any effect on the task. This is the same problem for Description and Title properties.

 

The CustomTask Class  :

public class CustomGanttTask : GanttTask
    {
        public Brush BackgroundColor { get; set; }
 
        public string Affectation { get; set; }
 
        public int IdCommentaire { get; set; }
 
        public string TitreColonne { get; set; }
    }

 

I attached a screenshot to show you my result.

 

Can you help me ?

 

Thank you !

Dilyan Traykov
Telerik team
 answered on 07 Feb 2017
2 answers
236 views

Hi Telerik,

 

When setting a Dock Panel's IsActive property to true, the Panel will "slide" out over top of all other active windows, even if the application is not "Active" or has been minimized. The effect is that the sliding effect will show even when the application is minimized and other applications are active (i.e. Microsoft Word, etc.) and it can become disruptive. Could you please let us know if this is the intended behavior? We'd like the behavior of when setting IsActive to true, to not show the sliding effect when the application is not active or has been minimized.

Is there a property we can set so that the Panel does not appear as "top-most" when setting the Panel's IsActive property to true?

Please advise.

 

Kind regards.

 

Abhinav
Top achievements
Rank 1
 answered on 06 Feb 2017
7 answers
298 views

Hi,

 I have one column in RadGridview With combobox once I click on add new row , select a item  in combobox and click somewhere in grid the value is not committing .Only when I select other row or click on the row header it is committing.I want to commit my cell data once I lose focus from that cell.How to achieve it??

Regards,

Nagasree.

 

Stefan Nenchev
Telerik team
 answered on 06 Feb 2017
1 answer
59 views

Hi,

 

I tried to add patterned brushes for Categories to edit appointment dialog. the patterned brushes is similar to "tentative" timemarker in SDK samples.

but don't how to do it.

such as:

this.categories.Add(new Category("Unconfirmed project", myHatchBrush));

 

thanks,

-Jacky

Stefan
Telerik team
 answered on 06 Feb 2017
2 answers
163 views

ApplicationMenu is displayed in wrong position.

Some PCs display properly but others are not.

 

I used very simple xaml. Telerik for WPF version is 2017.1.117.45.

<Window x:Class="RadRibbonTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:RadRibbonTest"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadRibbonView ApplicationButtonContent="File" >
            <telerik:RadRibbonView.ApplicationMenu>
                <telerik:ApplicationMenu>
                    <telerik:RadRibbonButton Text="New" />
                </telerik:ApplicationMenu>
            </telerik:RadRibbonView.ApplicationMenu>
        </telerik:RadRibbonView>
    </Grid>
</Window>

Martin Ivanov
Telerik team
 answered on 06 Feb 2017
1 answer
82 views

Hi.

I am trying to add new item into GridView with UI.

My GridView ItemsSource setting. Analytics_Passports_FIO implements INotifyPropertyChanged:

AnalyticsPassportsLinqToSqlDataContext dc = new AnalyticsPassportsLinqToSqlDataContext(Properties.Settings.Default.DefaultConnectionString);
var query = (from u in dc.Analytics_Passports_FIO select u);
var FIOs = new ObservableCollection<Analytics_Passports_FIO>(query);
GridFIODetails.ItemsSource = FIOs;

 

My FilterDescriptor inititalizing:

FilterDescriptor filter = new Telerik.Windows.Data.FilterDescriptor("user_id", Telerik.Windows.Data.FilterOperator.IsEqualTo, id);
GridFIODetails.FilterDescriptors.Clear();
GridFIODetails.FilterDescriptors.Add(filter);

 

If i am trying to add new item in GridView with default UI abilities(NewRow button) it doesn't appears in grid.

What am i doing wrong?

 

Stefan
Telerik team
 answered on 06 Feb 2017
5 answers
299 views
How can I do to let the watermark visible until the user does not enter text?

Currently, the watermark disappears once the control has focus. I like to leave the watermark, even if the control has focus, as the text is null or empty.
Georgi
Telerik team
 answered on 06 Feb 2017
1 answer
132 views

Greetings,

Please tell me how to make resizable scrollbar to transparent..

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Feb 2017
8 answers
95 views

I will be using Visual Studio Test Pro 2015 (with MS Test Manager) and I need to know if MTM will recognize Telerik controls when I create an Action Recording on my WPF app.

 

Thanks!

-Dale

Georgi
Telerik team
 answered on 06 Feb 2017
3 answers
176 views
Hello, how can i implement a context menu for the right side (task view) in ganttview?
Are there any examples?

Thank you and best regards ...

Dilyan Traykov
Telerik team
 answered on 03 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?