Telerik Forums
UI for WPF Forum
1 answer
95 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
119 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
84 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
114 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
256 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
136 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
47 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
0 answers
109 views
Hi
I have a gridview in my usercontrol, now I need to specify position of insert new row programmatically
I see some solution base on using template in xaml file, but I need to set it in code Based on user settings.
is there anyone familiar with this?
farsica
Top achievements
Rank 1
 asked on 15 Dec 2011
1 answer
92 views
I'm seeing something in the Q3 release that was not seen in the Q2 release. I have two Panes that dock like tool windows on the left side of the main window. One Pane is hidden behind the other when the app starts and two tabs are shown below the Panes. When I click the tab for the hidden window, it now requires two clicks where it used to require only one. Once the tab has been activated, a single click is sufficient to switch back and forth between the Panes.

The major portion of my view xaml is attached below in the hopes that it may answer why I am seeing this behavior.

<telerik:RadDocking PreviewShowCompass="RadDocking_PreviewShowCompass" Close="RadDocking_OnClose" PreviewClose="RadDocking_OnPreviewClose" Background="{x:Null}">
 
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer >
            <telerik:RadPaneGroup Name="_rpanegroupDocuments" />
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
 
    <telerik:RadSplitContainer >
        <telerik:RadPaneGroup Name="_rpanegroupTools">
 
            <telerik:RadPane Header="Connections" CanUserClose="False" Name="_rpaneConnections" ContextMenuTemplate="{x:Null}" CanDockInDocumentHost="False">
                <myToolWindows:ConnectionsPaneView DataContext="{Binding ConnectionsPaneViewModel}" />
            </telerik:RadPane>
 
            <telerik:RadPane Header="Actions" CanUserClose="False" Name="_rpaneActions" ContextMenuTemplate="{x:Null}" CanDockInDocumentHost="False" >
                <myToolWindows:ActionsPaneView DataContext="{Binding ActionsPaneViewModel}" />
            </telerik:RadPane>
 
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
 
    <telerik:RadSplitContainer InitialPosition="DockedBottom">
        <telerik:RadPaneGroup Name="_rpanegroupOutput" AllowDrop="False">
 
            <telerik:RadPane Header="Output" CanUserClose="False" Name="_rpaneOutput" ContextMenuTemplate="{x:Null}" CanDockInDocumentHost="False">
                <myToolWindows:OutputPaneView DataContext="{Binding OutputPaneViewModel}" />
            </telerik:RadPane>
 
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
 
</telerik:RadDocking>
Boyan
Telerik team
 answered on 15 Dec 2011
1 answer
64 views
The behavior of the RadPanelBarItem has changed in the Q3 release. It is now sizing to the content rather than the container. The result is a horizontally and vertically compressed set of bars when they are all closed. The width of all items will change according to the widest width of the open elements. The horizontal behavior no longer fills the vertical dimension.

Some drag/drop operations broke in the Q2 release and I was hoping to get them working in Q3. It looks like I need to do more to get this working in Q3, but now I've got a new issue in the Q3 release. I appreciate Telerik's efforts to push new content out in each Q release, but is Telerik allowing these regressions in order to push content? Some of these issues, such as this RadPanelBarItem issue, seem like something that would be pretty hard to miss in testing. If so, then we won't have a chance of reaching stability.

This post is similar to the preceding but that post related the issue to themes. I think the more general characterization should help others find this issue faster. If the forum moderator chooses to remove this post, I will understand.

Edit: Here is a workaround:

        <telerik:RadPanelBarItem Header="Full Width PanelBarItem" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadPanelBar}}, Path=ActualWidth}">
.
.
.
        </telerik:RadPanelBarItem>

Set any one of the PanelBarItem widths to that of the parent PanelBar and all widths will follow the width of the PanelBar. Leaving the vertical problem for later.
Petar Mladenov
Telerik team
 answered on 15 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?