Telerik Forums
UI for WPF Forum
1 answer
120 views
Dear Support,

i templated the DropDownContent like this,

<DataTemplate x:Key="outlookBaItemDropDownContentTemplate">
    <StackPanel Orientation="Horizontal">
        <Image Source="{Binding SmallIcon}"
               Width="20" />
        <Label Content="{Binding Header}" />
    </StackPanel>
</DataTemplate>


however the dropdown was originally intendet to use two columns, -
one for the icon, one for the header.

How can I make the items fit anyway?


Thanks in advance Martin
Petar Mladenov
Telerik team
 answered on 16 Dec 2011
1 answer
271 views
Dear Support!

I am using RadControls_for_WPF_2011_3_1205_DEV_hotfix.

When I set RadBusyIndicator.IsBusy="True" and operating system is running a cpu hungry process, I can click on the RadBusyIndicator content before RadBusyIndicator show busy content (refer attachment).

Please let me know how to resolve the issue.

MainWindow.xaml
<Window x:Class="RadBusyIndicatorDemo.MainWindow"
        Title="MainWindow" Height="350" Width="525" WindowStartupLocation="CenterScreen">
     
    <StackPanel>
        <TextBlock x:Name="textBlock" />
        <telerik:RadBusyIndicator IsBusy="True">
            <StackPanel>
                <Button Content="Button1" Click="Button_Click"/>
                <telerik:RadGridView ItemsSource="{Binding Items}" Height="300" />
            </StackPanel>
        </telerik:RadBusyIndicator>
    </StackPanel>
</Window>


MainWindow.xaml.cs
namespace RadBusyIndicatorDemo
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            this.DataContext = new MainViewModel();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.textBlock.Text = "clicked!"; // shouldn't happen
        }
    }
}
Ivo
Telerik team
 answered on 16 Dec 2011
5 answers
100 views
Hello Telerik,
I've got a RadGridView that has some columns... when I scroll down the grid and there's a column content that doesn't fit the column width it enlarges the column to content's size... if I'm not wrong there is a property for setting not to enlarge... but I can't find it, can you please help me?

Thanks
Vlad
Telerik team
 answered on 16 Dec 2011
1 answer
105 views
Hello,

I have a treelistview.  When user right click on an item and applies filter then I add one FilterDescriptor to the treelistview.
But it tries to filter on all the rows. My requirement is when user right click on any item then the filter should be applied only to the expanded nodes, not to those are collapsed nodes.

I have treelistview having upto 7 levels of expanded nodes. What i want is when user applies filter descriptor then it should filter all the data whose first level is expanded

Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7
(-) Org
Dept 1
Cell 1
Mgr 1
Lead 1
Resp 1
Work1
Work2
Work3
Resp 2
Work4
Work5
Work6
(+) Dept 2
(+) Dept 3
(-) Dept4
Cell 4
Mgr 4
Lead 4
Resp 4
Work1
Work2
Work3
Resp 5
Work4
Work5
Work6
Dept 2 & Dept 3 are not in expanded state. While I filter I want the filter should be applied to those records of Dept 1 (Resp1, Resp2) & Dept 4 (Resp4 & Resp5)only
User can right click on Level 7 data only
Vlad
Telerik team
 answered on 16 Dec 2011
1 answer
123 views
We develop using the mvvm-pattern. While the VirtualQueryableCollectionView can be easily created in the code-behind, I would prefer to create it as a StaticResource in the View, as it is View-specific and doesn't belong in the ViewModel.

How would I create it as a resource? I would have liked to write something like:

 

<UserControl.Resources>
    <telerik:VirtualQueryableCollectionView x:Key="VirtualizedTransactions" 
        LoadSize
="10" 
        
ItemsSource="{Binding AllTransactions}" 
    />
</UserControl.Resources>

 


Any thoughts are appreciated.
Vlad
Telerik team
 answered on 16 Dec 2011
3 answers
88 views
Hi,

I have a horizontal bar RadChart. I bind to one list of objects, so I have one series. I do not show a legend - basically I show text for the Name of the bound object at each data point, and the size of the bar is the Value. I have a third property which I would like to bind to the color of the bar. I haven't found how to do this in the documentation that I've found. Any ideas?

Here's the XAML:
<telerikChart:RadChart VerticalAlignment="Top" UseDefaultLayout="False"  MaxHeight="180" ItemsSource="{Binding CurrentShiftScrap, Converter={StaticResource emptyConverter}}">
   <Grid>
      <telerikCharting:ChartArea x:Name="mainScrapArea" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" PaletteBrushesRepeat="False" EnableAnimations="False">
         <telerikCharting:ChartArea.AxisX>
            <telerikCharting:AxisX MajorTicksVisibility="Collapsed" MinorTicksVisibility="Collapsed">
               <telerikCharting:AxisX.AxisStyles>
                  <telerikCharting:AxisStyles ItemLabelStyle="{StaticResource RightJustifyChartLabelStyle}"/>
               </telerikCharting:AxisX.AxisStyles>
            </telerikCharting:AxisX>
         </telerikCharting:ChartArea.AxisX>
         <telerikCharting:ChartArea.AxisY>
            <telerikCharting:AxisY StripLinesVisibility="Collapsed" MajorTicksVisibility="Collapsed" MinorTicksVisibility="Collapsed" AxisLabelsVisibility="Collapsed"/>
         </telerikCharting:ChartArea.AxisY>
         <telerikCharting:ChartArea.PaletteBrushes>
            <SolidColorBrush Color="#FF1199CC"/>
         </telerikCharting:ChartArea.PaletteBrushes>
      </telerikCharting:ChartArea>
   </Grid>
   <telerikChart:RadChart.SeriesMappings>
      <telerikCharting:SeriesMapping ChartAreaName="mainScrapArea">
         <telerikCharting:SeriesMapping.SeriesDefinition>
            <telerikCharting:HorizontalBarSeriesDefinition ShowItemToolTips="True" ShowItemLabels="False" LegendDisplayMode="DataPointLabel" ItemToolTipFormat="#DATAITEM.Name: #DATAITEM.Value' Scrap"/>
         </telerikCharting:SeriesMapping.SeriesDefinition>
         <telerikCharting:SeriesMapping.ItemMappings>
            <telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="Name"/>
            <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Value"/>
         </telerikCharting:SeriesMapping.ItemMappings>
      </telerikCharting:SeriesMapping>
   </telerikChart:RadChart.SeriesMappings>
</telerikChart:RadChart>

In a perfect world, I would map (in the ItemMapping) some DataPointMember to the color of the bar, referencing the FieldName from my bound object, and a value converter to turn the property into a fill color.

Any help would be greatly appreciated.

-Dan Pingel
Petar Marchev
Telerik team
 answered on 16 Dec 2011
1 answer
121 views
Hi,

I've several questions on the ScheduleView:

-I know this can be a little weird, but I need that "Days" finish at 3 am(and start at 8am), because I've to display a "Planning" of a party, and they don't want to have one "activity" split in two days, event if the "activity" starts at 11pm and ends the next day at 3 am. Is it possible? I saw a "FirstVisibleTime", but it doesn't seems to do anything.
-I need to have hours displayed in 24h format, how can I do this?
-I can't find how to make it read only?
-Is there an event for when we double click on an appointment?
-Can I hide the "Week" notion in the bar but keep the date navigation?
Rosi
Telerik team
 answered on 16 Dec 2011
1 answer
259 views
We need the column width to be automatically adjusted to the content. I managed to make it bigger upon adding text to a cell. However, it dosn't get smaller when the text is deleted from the cell. I use the following code:

<telerikGrid:RadGridView.Columns>
    <telerikGrid:GridViewDataColumn Header="X" Width="Auto" IsReadOnly="True" IsReorderable="False" IsResizable="True" />
    <telerikGrid:GridViewDataColumn  Header="Y" Width="Auto"/>
</telerikGrid:RadGridView.Columns>

Assigning Width="SizeToCells" doesn't do the trick. Am I doing something wrong?

ppti
Top achievements
Rank 1
 answered on 16 Dec 2011
2 answers
142 views
Hi,

I'm rather new to Telerik WPF controls (and WPF as a whole) and currently having a blast with them (awesome job guys).
While developing a WPF application for my company I encountered a small problem, not directly related to the controls themselves, but rather to the MVVM model and the way it works with the BackStage.

Basically, what I am building is an application that behaves similar to office tools, with BackStage that shows recent files created by the user. 
From the BackStage menu the user can open, edit etc these files. The files are opened on top of the main window, meaning that the main window always stays open (kinda like outlook and new mail items).

The application is using MvvmLight model/toolkit.

My problem is that, if the user creates a new file or edit a file, I have no way to reflect that in the "recent files" section of the BackStage - as the main window always stays in the background and the "recent files" section was bind to an object in the main window view model.

I guess that I can use some sort of a static collection, application scope, but it doesn't seem like a good practice.
What I was hoping is for some ideas on how to tackle that issue without breaking the MVVM model if possible.
Any idea would be greatly appreciated.

Cheers.
Eyal
Top achievements
Rank 1
 answered on 15 Dec 2011
0 answers
50 views
Hi
in my gridview control there are some enum columns. I overrride CreateCellElement and use a converter to localize values. it works great to show localized values in grid, but in distinct filter location, it show original values
how can I make it?
farsica
Top achievements
Rank 1
 asked on 15 Dec 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?