Telerik Forums
UI for WPF Forum
1 answer
107 views
Hi,

I have a project with 3 forms, Form A/B/C. Form A call the showdialog of Form B and Form B call the showdialog of Form C.
Each form have a persistence Id. On the close of each form, I persist the form. Actually, when I close Form C, Form C/B/A are persisted at the same time!!! How I can persist a form only when it's needed???

Thank's
Petar Mladenov
Telerik team
 answered on 27 Mar 2012
5 answers
299 views
Hi.
I'm using radmenu like this:
<telerik:RadMenu Grid.Column="0" VerticalAlignment="Center" IsTabStop="False" Orientation="Vertical">
    <telerik:RadMenu.Items>
        <telerik:RadMenuItem Header="Modyfikuj" Command="{Binding Path=StartEditPartCommand}"/>
        <telerik:RadMenuItem Header="Zatwierdź" Command="{Binding Path=CommitEditPartCommand}"/>
        <telerik:RadMenuItem Header="Anuluj" Command="{Binding Path=RejectEditPartCommand}"/>
    </telerik:RadMenu.Items>
</telerik:RadMenu>

so basically, i'm binding menu items to some commands which have canexecute method:
StartEditPartCommand = new DelegateCommand(
    /*foo*/,
    () => !IsEditingPart && SelectedItem != null);


somewhere in code, raisecanexecutechanged method is properly raised:
StartEditPartCommand.RaiseCanExecuteChanged();

and... it doesn't refresh menuitems' IsEnabled property - they remain in previous state. Sliding mouse cursor over menuitem causes menuitems refresh, but not always.

When having changed radmenu to itemscontrols/stackpanels with buttons everything works fine, so it's probably bug with radmenu or radmenuitem?
Radek
Top achievements
Rank 1
 answered on 27 Mar 2012
4 answers
219 views
Hello,

I am trying to read in a bunch of data from a stored procedure and I build out multiple data series in the same order that it was received from the stored procedure. The problem lies in that the order of the data from the stored procedure is not the same order that RadChart renders the XCategories. For instance, I am reading in the XCategory's as Apr-2009, June-2009... till now. But the XCategory's wind up being alphabetized rather than ordered by the order specified in the stored procedure. Is there a good way to re-order the XCategories so they appear chronologically?

Thanks,
Sean
Michel
Top achievements
Rank 1
 answered on 26 Mar 2012
4 answers
159 views
I'm trying to change the color of a RadDataForm, when it's disabled.

I've found these instructions: http://www.telerik.com/help/wpf/raddatafor-styles-and-templates-styling-raddataform.html

But when I load my solution file in Microsoft Expression Blend 4, I get exceptions:

XamlParseException: 'Office_Black' is not a valid value for property 'Theme'.
Jeff
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
88 views
Hi,

We use RadGridView 2011.2.920.35 . We have problems getting focus on our grids. If we have two grids side-by-side and focus is on the first one, clicking the header of one the columns of the second grid doesn't switch focus to that grid. This is a real problem when the grids are empty and the headers are the only thing displayed of the grid. Focus switching does work with other grid elements (background, groupbox, even clicking on the little filter icon in the header).

Is this known behavior? If so, how can I change it? If not, is there any other information I can provide to reproduce this issue and get help?

Bye,
Steven
Steven
Top achievements
Rank 1
 asked on 26 Mar 2012
6 answers
231 views
Hi,

I have used the EditorTemplateRules to created custom filters for various properties based on their name (i.e. combo boxes populated with appropriate data).

What I would like to do now is create a rule based on property type rather than property name.  I want all properties of type DateTime (or DateTime?) to use a custom control.

Is this possible?

Thanks.
Rossen Hristov
Telerik team
 answered on 26 Mar 2012
3 answers
162 views
If item per page is greater than total item then i have to click one more time to bring the item in the view page.
i want to avoid this.
how can i do this in XAML?

Thanks in advance.
Maya
Telerik team
 answered on 26 Mar 2012
2 answers
311 views

Hello,

in my Table-Control which is based on the RadGridView I'm trying to set an AttachedDependencyProperty for each GridViewCell.
My Problem is that I reached my Handler only for Rows of the Type CheckBoxColumn and ComboBoxColumn.

public class Table : RadGridView
{
    public Table()
    {
        EventManager.RegisterClassHandler(typeof(GridViewCellBase), LoadedEvent, new RoutedEventHandler(OnGridViewCellLoaded), true);
    }
     
    private static void OnGridViewCellLoaded(object sender, RoutedEventArgs e)
    {
        var cell = sender as GridViewCellBase;
        if (cell != null)
        {
            var dataType = cell.DataColumn.DataType;
            if (dataType == typeof(int) || dataType == typeof(double) || dataType == typeof(float) || dataType == typeof(decimal))
            {
                cell.SetValue(Table.NumberColumnProperty, true);
            }
        }
    }
     
    public static bool GetNumberColumn(DependencyObject obj)
    {
       return (bool)obj.GetValue(NumberColumnProperty);
    }
 
    public static void SetNumberColumn(DependencyObject obj, bool value)
    {
        obj.SetValue(NumberColumnProperty, value);
    }
 
    public static readonly DependencyProperty NumberColumnProperty =
            DependencyProperty.RegisterAttached("NumberColumn", typeof(bool), typeof(Table),
            new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.Inherits));
 
}
 
Andreas
Top achievements
Rank 1
 answered on 26 Mar 2012
1 answer
196 views

I would like to add some static text to the Comparative Measure element.  I have re-templated the bullet graph, but my attempts to add the text does not seem to work.  I would like the text to float at the top right of the line.  Is this possible?

Here is my style template:

<Style x:Key="RadHorizontalBulletGraphStyle" TargetType="telerik:RadHorizontalBulletGraph">
    <Setter Property="ComparativeMeasureThickness" Value="1"/>
    <Setter Property="FontSize" Value="10"/>
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="telerik:RadHorizontalBulletGraph">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="5*"/>
                        <RowDefinition Height="5*"/>
                    </Grid.RowDefinitions>
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="White" Grid.Row="0">
                        <Grid>
                            <Grid>
                                <Grid.Resources>
                                    <Style TargetType="telerik:BarItem">
                                        <Setter Property="LengthPercent" Value="1" />
                                    </Style>
                                </Grid.Resources>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="5*" />
                                    <RowDefinition Height="5*" />
                                </Grid.RowDefinitions>
                                <telerik:FeaturedMeasurePresenter Grid.Row="0" Content="{TemplateBinding FeaturedMeasureInternal}" Margin="0,5" />
                                <telerik:FeaturedMeasurePresenter Grid.Row="1" Content="{TemplateBinding ProjectedMeasureInternal}" Margin="0,5"  />
                            </Grid>
                            <StackPanel HorizontalAlignment="Stretch">
                                <telerik:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}" Range="{TemplateBinding Range}" Margin="-15" />
                            </StackPanel>
                        </Grid>
                    </Border>
                    <telerik:QuantitativeScaleContainer Grid.Row="1" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Opacity="0.5" RenderTransformOrigin="0.5,0.5" Range="{TemplateBinding Range}"  >
                        <telerik:QuantitativeScaleContainer.RenderTransform>
                            <TranslateTransform Y="5"/>
                        </telerik:QuantitativeScaleContainer.RenderTransform>
                    </telerik:QuantitativeScaleContainer>
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>
<SolidColorBrush x:Key="ActualBrush" Color="Green" />
<SolidColorBrush x:Key="TargetBrush" Color="Red" />

And here is my control definition:

<telerik:RadHorizontalBulletGraph TextFormatString="${0}"
                                  ProjectedValue="150"
                                  FeaturedMeasure="200"
                                  ComparativeMeasure="175"
                                  Height="100"
                                  Style="{StaticResource RadHorizontalBulletGraphStyle}"
                                  FeaturedMeasureBrush="{StaticResource ActualBrush}"
                                  ProjectedValueBrush="{StaticResource TargetBrush}"
                                  Step="200" />
Yavor
Telerik team
 answered on 26 Mar 2012
3 answers
512 views
Hello!

Sometimes we get following exception while creating chart:

System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at MS.Win32.UnsafeNativeMethods.RegisterClassEx(WNDCLASSEX_D wc_d)
   at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks)
   at System.Windows.Threading.Dispatcher..ctor()
   at System.Windows.Threading.Dispatcher.get_CurrentDispatcher()
   at System.Windows.Media.Visual..ctor(ResourceType resourceType)
   at System.Windows.FrameworkElement..ctor()
   at System.Windows.Controls.Control..ctor()
   at System.Windows.Controls.ContentControl..ctor()
   at Telerik.Windows.Controls.RadChart..ctor() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 252

Telrik doesn't install on the machine. We use dll from library. What does this path ment?

If you need more information - please, tell what is it - I try to get it for you.

Thanks!

Giuseppe
Telerik team
 answered on 26 Mar 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
PersistenceFramework
DataPager
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?