Telerik Forums
UI for WPF Forum
2 answers
491 views
I am using the ChartView control, and would like to be able to change the Zoom from code.
I have tried two things.

1. Set Zoom property directly from code.
i.e. Chart.Zoom = new Size(1,1);

2. Bind to a Zoom property on my view model, and set that property.

i.e. XAML gets

   <telerik:RadCartesianChart Name="Chart" Zoom="{Binding Path=Zoom, Mode=TwoWay}">

And code gets
     ViewModel.Zoom = new Size(1,1);

Either way, the view is not refreshed correctly.  However, on a re-size operation, it becomes OK again.

Is this a known problem, or is there something else I need to do?

Thanks
Craig Littlewood
Craig
Top achievements
Rank 1
 answered on 27 Mar 2012
3 answers
100 views
Hi telerik,

I have the following rather simple use of the GridViewCheckBoxColumn -- and the grid shows up with no checkmarks what-so-ever.

Can you see what I'm doing wrong?

I can see (by breakpoint) that the row data model is queried for relevant value (so binding should be correct) and that the value in all cases is True (so the underlying value is as I expect).

Any clues?

Thanks,

Anders, Denmark

Grid

        <Controls:RadGridView x:Name="grid"
                              AutoGenerateColumns="False"
                              ItemsSource="{Binding Items}"
                              Height="329"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                              ShowGroupPanel="False"
                              VerticalAlignment="Top"
                              IsFilteringAllowed="False"
                              >
            <Controls:RadGridView.Columns>
                <Controls:GridViewCheckBoxColumn DataMemberBinding="{Binding IsChecked}" IsThreeState="False" Initialized="GridViewCheckBoxColumn_Initialized" />
            </Controls:RadGridView.Columns>
        </Controls:RadGridView>


"Items"

ObservableCollection<ICheckableViewModel> Items { get; set; }

Row data item


    public class CheckableStringViewModel : ICheckableViewModel
    {
        public CheckableStringViewModel(bool isChecked, string displayName, string identity, bool isReadOnly)
        {
            IsChecked = isChecked;
            DisplayName = displayName;
            Identity = identity;
            IsReadOnly = isReadOnly;
        }

        public bool IsReadOnly { get; private set; }
        public string DisplayName { get; private set; }
        public string Identity { get; private set; }
        private bool _isChecked;
        public bool IsChecked
        {
            get { return _isChecked; }
            set { _isChecked = value; }
        }
    }
Anders
Top achievements
Rank 1
 answered on 27 Mar 2012
1 answer
60 views
The "ChartPanAndZoomBehaviour" facility allows an area to be selected using the LeftMouseButton.  Is it possible to change this to the RightMouseButton?  If not, is it possible to add a custom facility?

Regards
Craig
Yavor
Telerik team
 answered on 27 Mar 2012
2 answers
119 views
Hello everyone,

I am using Version 2011.3.1116.40 of GridView for WPF, if the Gridview is grouped I am saving the open groups in a list.
Everytime the user expands or collapses a group I add or remove the IGroup Element in the list.
After a refresh of the DatasourceProvider I expand all the groups which are in my list, but then if I scroll down the list the group with the first element in the list (datasource) is also expanded (GroupRowIsExpandedChanged event fires). It seems that after an refresh the currentscellinfo points to the first element and then if i scroll over the collapsed group where this element is included the group expands.
Do you have any ideas?

regards 
Thomas
 
Thomas Gschweitl
Top achievements
Rank 1
 answered on 27 Mar 2012
1 answer
72 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
268 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
144 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
133 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
73 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
201 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?