Telerik Forums
UI for WPF Forum
1 answer
246 views
Hi

The idea is this: based on a dataset generated a tree structure but I found the following issues

1 - There is not a unique Key property by item or node... or is the property "Name"?
2 - Using the name property FindName method seems not to work ... so for items already included, this method always returns "Nothing" and the item is again included.

This process is generated immediately to the constructor of the class or window, ie, in the Sub Main exite a method that executes the code...

                    For Each currentRow As DataRow In myDataset.Tables(0).Rows

                        Dim currentItem As New RadTreeViewItem
                        With currentItem
                            .Header = currentRow("ObjectName").ToString.ToUpper.Trim
                            .IsEditable = False
                            .IsEnabled = True
                            .Name = .Header
                        End With

                        Dim myObject As RadTreeViewItem = Me.ObjectTypeTree.FindName(currentRow("ObjectName").ToString.ToUpper.Trim)

                        If myObject Is Nothing Then
                            Me.ObjectTypeTree.Items.Add(currentItem)
                        End If

currentItem  = Nothing
myObject  = Nothing

                    Next

 So how I can solve the case described in items 1 and 2.

In advance, thank you all ....
Tina Stancheva
Telerik team
 answered on 17 Jul 2012
3 answers
267 views

I created a proj based on your class diagram example.  I wanted to extend this example to save and reload the layout from disk.  I called the diagram Save method and this is the Xml returned (I have removed some attributes for clarity).  My question is when I call diagram Load, how do I re-attach the Model objects to the shapes in the diagrams?  From the Xml below I can see a Shapes content contains the class name of the Model (MyProj.ClassViewModel) that represents that shape.  Do I have to iterate all of the Shapes and set their content?  If so how can I get this xml to store a key for the instance of the model a shape it contains.

Thanks Craig.
 
<?xml version="1.0" encoding="utf-8"?>
 <RadDiagram Type="Telerik.Windows.Diagrams.Core.IGraphInternal" Version="2012.1"> 
  <Metadata Id="601d134b-3a2c-4055-9f7f-78d70597b052"  >  
   <
Title><![CDATA[Diagram [4/12/2012 8:44:45 AM]]]></Title>  
   <
Description><![CDATA[]]></Description> 
    <Background>#00FFFFFF</Background>
   </Metadata>   <Shapes QNs="Telerik.Windows.Controls.Diagrams, Version=2012.1.326.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7;">     <RadDiagramShape Type="Telerik.Windows.Controls.RadDiagramShape" Id="4b632971-9f11-41a8-88b4-67992258e376"  Content="MyProj.ClassViewModel" Geometry="M0,0L60,0 60,40 0,40z" QN="0" />   </Shapes>
   <Connections />
 </RadDiagram>


 

Miro Miroslavov
Telerik team
 answered on 17 Jul 2012
7 answers
192 views
I upgraded to 2012.2.607.40 today and rebuilt my project (which built successfully before the upgrade) and received three instances of the following error:

error MC3064: Only public or internal classes can be used within markup. 'Style' type is not public or internal.

Below is the xaml that caused the errors.

<telerik:GridViewCheckBoxColumn.HeaderCellStyle>       
    <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">
                        <telerik:GridViewHeaderCell FilteringUIVisibility="Collapsed">
                            <StackPanel HorizontalAlignment="Center"
                                        Margin="5" >
                                <ContentPresenter   HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"/>
                     
                                <CheckBox   x:Name="CheckBoxHeaderTemplate"
                                            HorizontalAlignment="Center"
                                            Margin="0,5,0,0"
                                            Checked="CheckBoxHeader_Checked"
                                            Unchecked="CheckBoxHeader_Checked"/>                       
                            </StackPanel>
                        </telerik:GridViewHeaderCell>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
</telerik:GridViewCheckBoxColumn.HeaderCellStyle>  
<telerik:GridViewDataColumn.HeaderCellStyle>
    <Style  TargetType="{x:Type telerik:GridViewHeaderCell}">
            <Style.Setters>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">
                            <ContentPresenter HorizontalAlignment="Stretch"/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>
</telerik:GridViewDataColumn.HeaderCellStyle>

<telerik:GridViewCheckBoxColumn.CellStyle>
    <Style TargetType="telerik:GridViewCell">
        <Setter Property="HorizontalContentAlignment" Value="Center" />
    </Style>
</telerik:GridViewCheckBoxColumn.CellStyle>

Any help would be greatly appreciated.
Thanks in advance,
Steve












Dimitrina
Telerik team
 answered on 17 Jul 2012
5 answers
176 views
Hi all

Is it possible to have multiple RadTileViewItem with different skins in the same RadTileView?

Note: The application is "submitted" to a large Metro Skin type through the instructions in VB.NET:

         StyleManager.ApplicationTheme = New MetroTheme
         RadSpellChecker.WindowSettings.Theme = StyleManager.ApplicationTheme

In advance, thanks for the help you can give me ...
Zarko
Telerik team
 answered on 17 Jul 2012
1 answer
82 views
Hi,

I have a gridview, whose itemsource is set to collection of objects. Now when the row is selected, the details template is shown. Upon clicking on the details template another window is shown. I wish to pass the object , to which the details template is bound to this new window. How do I get the data bound object?
Dimitrina
Telerik team
 answered on 17 Jul 2012
2 answers
116 views
Hi,

Is there any way to iterate over the radGridView rows in a custom method?Because I need to cutomize some cells data at run time,I can do the same in row loading event,but I need to do it in my own method.

Please let me know if this is possible.

Thanks in Advance . . .
Anjali
Top achievements
Rank 1
 answered on 17 Jul 2012
11 answers
679 views
Hi,

I'm using RadControls for WPF 2010 Q1 and I'm trying to apply a theme to non-rad controls.  How can I accomplish that?  I tried to use the 'StyleManager.Theme' property, but that seems to "hide" the control instead of applying the theme.

Here is the xaml snippet:

        <StatusBar DockPanel.Dock="Bottom" telerik:StyleManager.Theme="Office_Blue"
            <StatusBar.ItemsPanel> 
                <ItemsPanelTemplate> 
                    <Grid> 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="Auto"/> 
                        </Grid.ColumnDefinitions> 
                    </Grid> 
                </ItemsPanelTemplate> 
            </StatusBar.ItemsPanel> 
            <TextBlock>Left Side</TextBlock> 
            <StatusBarItem Grid.Column="1"
                <TextBlock>Right Side</TextBlock> 
            </StatusBarItem> 
        </StatusBar> 
 

Thanks in advance,

Wagner
Sia
Telerik team
 answered on 16 Jul 2012
5 answers
122 views

Hi,
I followed more or less the example "Special and Read-only Slots"
in order to achieve the desired behavior (show working hours in a different color).
As you can see in the first screen shot (sched01.png), everything works fine.

As soon as I use custom grouping, the working hours are no more visible (see sched02.png).
After deselecting the group item (here: Zimmer 315), the working hours for the selected person are displayed again.

Your help is highly appreciated.

Regards,
Daniel

Yana
Telerik team
 answered on 16 Jul 2012
2 answers
97 views
Dear Telerik:

Please find attached snapshot of radgridview grouping issue. Its keeps on adding fixed columns in a water fall
structure without any reason.

GroupDescriptor descriptor = new GroupDescriptor();

descriptor.Member = "Location";

rgLFields.GroupDescriptors.Add(descriptor);


Regards,
YS

Dimitrina
Telerik team
 answered on 16 Jul 2012
9 answers
352 views
Hi,

How do nested properties work in the PropertyGrid when created using XAML.
Want to see something like:-

- Level One
    
Property One
    Property Two
    Property Three
- Level Two
    Property One
    Property Two
    Property Three
     - Level TwoOne
          Property One
          Property Two
          Property Three
     - Level TwoTwo
          Property One
          Property Two
          Property Three
- Level Three
    
Property One
    Property Two
    Property Three

Regards

John
EM
Top achievements
Rank 1
 answered on 16 Jul 2012
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?