Telerik Forums
UI for WPF Forum
0 answers
100 views

We are facing a problem while adding steps in Test studio.

When we are working web and wpf at a time we are not a able to add new steps into Wpf test and while adding the code which is lies in Webtest that is deleting.

Please let me know solution for this problem.

Please find the attachment of error message which we are getting while adding steps.

satyanarayana
Top achievements
Rank 1
 asked on 01 Feb 2013
2 answers
192 views
Is there a property like EnableNavigation of asp.net RadCalendar for the WPF RadCalendar?
if not, how can I disable the title navigation's buttons?

thanks.
Ed
Top achievements
Rank 1
 answered on 31 Jan 2013
1 answer
273 views

public override bool RemoveItem(FilterNode node)
{
    return base.RemoveItem(node); // This method call produces the error output below
}

System.Windows.Data Error: 40 : BindingExpression path error: 'Visibility' property not found on 'object' ''DiagramViewModel' (HashCode=33233561)'. BindingExpression:Path=Visibility; DataItem='DiagramViewModel' (HashCode=33233561); target element is 'MyChartShape' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsSelected' property not found on 'object' ''DiagramViewModel' (HashCode=33233561)'. BindingExpression:Path=IsSelected; DataItem='DiagramViewModel' (HashCode=33233561); target element is 'MyChartShape' (Name=''); target property is 'IsSelected' (type 'Boolean')

I have a shape style that does some binding:

<Style TargetType="views:MyChartShape" x:Key="MyShapeStyle">
        <Setter Property="Visibility" Value="{Binding Visibility, Mode=TwoWay}" />
        <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />


Probably not critical, but I believe these errors could indicate a performance issue. The node's shape is obviously rendered when it has been removed (along with its DataContext).

Tina Stancheva
Telerik team
 answered on 31 Jan 2013
3 answers
355 views
I want all my RadTabItem views to be built immediately. Currently, the visual tree is built when the tab is selected:

<telerik:RadTabControl
                       IsContentPreserved="True"
                       IsSynchronizedWithCurrentItem="True"

                       SelectedIndex="{Binding CurrentTabIndex}"
                       DropDownDisplayMode="Visible" IsTabStop="True">
  <telerik:RadTabItem Header="A" IsSelected="True">
    <views:MyView1 />
  </telerik:RadTabItem>
  <telerik:RadTabItem Header="B">
    <views:MyView2 />
  </telerik:RadTabItem>
  <telerik:RadTabItem Header="C">
    <views:MyView3 />
  </telerik:RadTabItem>
</telerik:RadTabControl>

I want all tabs, "A", "B" and "C", to be created immediately. (This is essential for one very complex problem that I'm trying to solve here.)
Hristo
Telerik team
 answered on 31 Jan 2013
1 answer
234 views
This is probably a basic WPF question, and not specifically Telerik related, but I figured I'd ask here. I am trying to create a reusable control, right now named SectionLayout, which allows the user of the control to define "sections", with Visuals in each section. I want to render this using RadTabControl.

Basically, the consumer of the SectionLayout would be using it like this:

<local:SectionLayout>
  <local:Section Name="Foo">
    <Button Text="{Binding Foo}" />
  </local:Section>
</local:SectionLayout>

I've already got most of it working. SectionLayout has a "Sections" property, of type SectionCollection, that holds items of type Section. Section has Name and Content properties. Name is a string, Content is an object.

The ControlTemplate for SectionLayout currently looks like this:

<ControlTemplate>
<telerik:RadTabControl
    Align="Right"
    TabOrientation="Vertical"
    TabStripPlacement="Left"
    ItemsSource="{TemplateBinding Sections}">
    <telerik:RadTabControl.ItemContainerStyle>
        <Style
            TargetType="{x:Type telerik:RadTabItem}">
            <Setter
                Property="MinHeight"
                Value="150" />
            <Setter
                Property="MinWidth"
                Value="30" />
        </Style>
    </telerik:RadTabControl.ItemContainerStyle>
    <telerik:RadTabControl.ItemTemplate>
        <DataTemplate>
            <TextBlock
                Text="{Binding Name}" />
        </DataTemplate>
    </telerik:RadTabControl.ItemTemplate>
    <telerik:RadTabControl.ContentTemplate>
        <DataTemplate
                DataType="{x:Type local:Section}">
            <ContentPresenter
                Margin="4,4,4,4"
                DataContext="{TemplateBinding DataContext}"
                Content="{Binding Content}" />
        </DataTemplate>
    </telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>
</ControlTemplate>

So, basically I'm just making an easier interface to use a RadTabControl. So I can reuse it in other places. Though it might change from being a RadTabControl to something else in the future.

The problem I'm having is getting the original DataContext of Section.Content property to flow into the RadTabControl.ContentTemplate. The ContentTemplate is of course given the business object (Section) as it's datacontext. So, I can easily present Section.Content. However, when I do so, Section.Content begins inheriting the DataContext given to it by the ContentPresenter, which happens to be Section.Content.

How can I do this properly? I want the user to be able to use my control as he would any normal layout control: Grid, Canvas, StackPanel, whatever. But, I need to use a TabControl internally to do the layout.
Pavel R. Pavlov
Telerik team
 answered on 31 Jan 2013
8 answers
404 views
Just so you know, there are multiple errors here: http://www.telerik.com/help/wpf/radchartview-axes-datetimeaxes.html (XAML and VB).
Denis
Top achievements
Rank 1
 answered on 31 Jan 2013
3 answers
321 views
Hi,

I'm using RadPivotGrid with Column Group:

            <pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
                <pivot:PropertyGroupDescription PropertyName="Periodo" CustomName="Período" SortOrder="Descending" />
            </pivot:LocalDataSourceProvider.ColumnGroupDescriptions>

As the attachement image shows, I've put the total before column groups. It's a native control feature.

Now I want:

1 - That totals  cells have lines like group cells;
2 - Alternating backgroung color for group cells. Example: group A cells background diferent from group B cells background.

How can I achieve this?
Rosen Vladimirov
Telerik team
 answered on 31 Jan 2013
1 answer
291 views
Trying to bind to a collection of objects that encapsulate parameters:
public Parameter
{
    string Name;
    object Value;
}
these are read dynamically at runtime, and each parameter could be of a different type. The collection (array) is then contained in another class.
If i bind to an instance of the 'parent' class the parameter collection shows up via the colleciton editor ui, however, the values are not updated on edit.
Since we are not really interested in the parent object, I have tried binding to the collection directly, but then the only properties I get are the ones from the collection object itself, like Count.
What am I missing here, what do I need to define/override for the grid to work with these?
Pointers to example code would be excellent! :)

Ivan Ivanov
Telerik team
 answered on 31 Jan 2013
1 answer
284 views
I have done grouping in the Telerik Gridview,My task is to Alter the header of the Group item at the run time , So i have implemented the below Code while clicking on the Expander i could able to get the content Nothing is displayed. 
Please help me on this 


 <telerik:RadGridView x:Name="telerikGrid" ItemsSource="{Binding Path=Collection}"  GridLinesVisibility="Horizontal" KeyboardNavigation.TabNavigation="Cycle" ShowGroupPanel="False"
 AutoGenerateColumns="False"  CanUserInsertRows="False" AutoExpandGroups="True" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" CanUserResizeColumns="False" CanUserSortColumns="True" CanUserReorderColumns="False" 
 MinHeight="360" MaxHeight="360" MaxWidth="880" MinWidth="880"  ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Visible">
      <telerik:RadGridView.GroupRowStyle>

<Style TargetType="telerik:GridViewGroupRow">
                    <Setter Property="Background" Value="Red"/>
                    <Setter Property="BorderBrush" Value="Yellow"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type telerik:GridViewGroupRow}">
                                <telerik:RadExpander IsExpanded="True" Background="#2A5581" BorderThickness="1,1,1,1">
                                    <telerik:RadExpander.Header>
                                        <DockPanel>
                                            <Grid>
                                                <Rectangle Fill="White" Width="Auto" Margin="0,1,0,1" Stroke="Black"/>
                                                <TextBlock Text="{Binding Path=TextName}" Margin="4,0,4,0" Grid.Column="0" Grid.Row="0" Foreground="Black"/>
                                            </Grid>
                                            <Grid>
                                                <Rectangle Fill="Black" Width="Auto" Margin="0,1,0,1"/>
                                                <TextBlock Text="{Binding Path=TextName}" Margin="4,0,4,0" Foreground="White" />
                                            </Grid>
                                        </DockPanel>
                                  
                                    </telerik:RadExpander.Header>
                                    <telerik:RadExpander.Content>
                                        <ItemsPresenter/>
                                    </telerik:RadExpander.Content>
                                </telerik:RadExpander>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>

                </Style>
            </telerik:RadGridView.GroupRowStyle>
<telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
         <telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
         <telerik:RadGridView.Columns>
 <telerik:GridViewColumn  MaxWidth="40" MinWidth="40">

          </telerik:GridViewcolumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>



Vanya Pavlova
Telerik team
 answered on 31 Jan 2013
1 answer
178 views
Howdy. I know this component is fairly new... but is there anyway to set the Add and Delete commands? Basically, they need to do things in my view model. As far as I can tell, they seem currently hard coded to actually add or remove items from the underlying collection.
Dimitrina
Telerik team
 answered on 31 Jan 2013
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?