Telerik Forums
UI for WPF Forum
1 answer
92 views
Hi,
I am getting overlapped x axis labels due to space constraints. I want to restrict the label count to a maximum limit. How can i achieve that?
 
Thanks
Dhruv
  
Rosko
Telerik team
 answered on 13 Jun 2012
0 answers
36 views
After I upgraded the Telerik controls from Q2 2010 to Q1 2012 I get XAmlParse Exception when I try to run my application.
What could be the issue?
Aracna
Top achievements
Rank 1
 asked on 13 Jun 2012
1 answer
127 views
Hi

I am trying to add a new record to a grid using the inbuilt ShowInsertRow. When I add the record I get binding errors and an exception A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Data.dll

If I continue through the errors it adds the record to the grid correctly.

The grid is bound to a ObservableCollection in the view model

<telerik:RadGridView Grid.Row="2" x:Name="SpatialDataLocations"
                                        ItemsSource="{Binding SpatialDataLocations}"
                                        ShowGroupPanel="False"
                                        ShowInsertRow="True"
                                        IsSynchronizedWithCurrentItem="True"
                                        VerticalAlignment="Stretch"
                                        HorizontalAlignment="Stretch"
                                        AutoGenerateColumns="False"
                                        CanUserInsertRows="True">
                       <telerik:RadGridView.Columns>
                           <telerik:GridViewDataColumn Header="Name"
                                                       DataMemberBinding="{Binding Name, Mode=TwoWay}" />
                           <telerik:GridViewDataColumn Header="Path"
                                                       DataMemberBinding="{Binding Path, Mode=TwoWay}" />
                       </telerik:RadGridView.Columns>
                   </telerik:RadGridView>


I get two exceptions one for each column. The Call Stack Location is Telerik.Windows.Data.ObjectDataBinder.GetValue(Object bindingSource, stringPropertyPath)

The binding source is null, is this the problem? If so how do I deal with this?

Thanks for you help

Regards

Murray
Murray
Top achievements
Rank 1
 answered on 13 Jun 2012
0 answers
92 views
Hi,
I have a generic grid which takes the source from a stored procedure. I like to add an aggregate function for numeric columns only. How do I do that? A combobox column could have a numeric values in its underlying data which I don't want.

Any ideas would be appreciated.
Oliver
Top achievements
Rank 1
 asked on 13 Jun 2012
2 answers
186 views
Hi,

I have a RadGridView that has several columns with readonly set to false (ie. these can be edited). Predictably, when I edit a particular cell, the changes are changed in the relevant row in my Collection in my viewmodel when the user presses enter or clicks somewhere else.

When a change is made, I update my database.There is one or two checks I make and then the database update call itself could throw an exception so I also have a catch that reverts the values back to the original values (using e.OldValues).

Currently, similar to the example provided by Veselin in this thread, I use the RowEditEnded event handler. However, I would like to have all this logic in my ViewModel. What are my options? Do I have any? Ofcourse examples are a big help.

Thanks
Peter
Top achievements
Rank 1
 answered on 12 Jun 2012
0 answers
122 views
Hi telerk,

I have a table Customers which has 80000 records and my project use a grid to show them(not use Datapager). It can be showed correctly, but it load all data into memory and takes about 150 MB! I heard that RadGridView support data virtualization if its container like grid which have a fixed height.  I make a sample project to verify this,  but it still loaded all data and take amount memory.
How I can do this? Because I can not open the UIVirtulization sample on your WPF samples, Could you send me a sample project for this? Thanks very much
this is  MainWindow code:
<Grid>
       <Grid.RowDefinitions>
           <RowDefinition Height="500"/>
           <RowDefinition Height="50" />
       </Grid.RowDefinitions>
       <telerik:RadGridView ItemsSource="{Binding MyCollection}"  AutoGenerateColumns="False"
                         >
           <telerik:RadGridView.Columns>
               
               <telerik:GridViewDataColumn Header="CustommerNumber" DataMemberBinding="{Binding CustomerNumber}" IsGroupable="False" IsFilterable="False" />
               <telerik:GridViewDataColumn Header="CompanyName" DataMemberBinding="{Binding CompanyName}" IsSortable="False" />
               <telerik:GridViewDataColumn Header="Address" DataMemberBinding="{Binding Address}" />
               <telerik:GridViewDataColumn Header="PoBox" DataMemberBinding="{Binding POBox}" />
               <telerik:GridViewDataColumn Header="PostalCode" DataMemberBinding="{Binding PostalCode}" />
               <telerik:GridViewDataColumn Header="ContactName" DataMemberBinding="{Binding ContactName}" />
               <telerik:GridViewDataColumn Header="Phone" DataMemberBinding="{Binding Phone}" />
               <telerik:GridViewDataColumn Header="Fax" DataMemberBinding="{Binding Fax}" />
               <telerik:GridViewDataColumn Header="Country" DataMemberBinding="{Binding Country}" />
               <telerik:GridViewDataColumn Header="Mobile" DataMemberBinding="{Binding Mobile}" />
           </telerik:RadGridView.Columns>
       </telerik:RadGridView>
       <ScrollViewer x:Name="LogScrollViewer" VerticalAlignment="Stretch" Grid.Row="1" >
           <!--<Button Click="Button_Click" Content="Load"/>-->
           <TextBox x:Name="tbMemory" Width="200" Height="30"></TextBox>
           <!--<TextBlock x:Name="Log" TextWrapping="Wrap" FontSize="10" />-->
       </ScrollViewer>
 
   </Grid>
public MainWindow()
       {
           //MessageBox.Show("loading main window");
 
           InitializeComponent();
           DispatcherTimer timer = new DispatcherTimer();
           timer.Interval = new TimeSpan(0, 0, 1);
           timer.Tick += timer_Tick;
           timer.Start();
           //MessageBox.Show("2");
           this.DataContext = new MyViewModel();
            
       }


this is MyViewModel code:
class MyViewModel : INotifyPropertyChanged
    {
         #region INotifyPropertyChanged Members
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        protected void OnPropertyChanged(string propertyName)
        {
                         
            PropertyChangedEventHandler handler = PropertyChanged;
 
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
 
        #endregion
 
        private RXOfficeEntities context = null;
 
        private ObservableCollection<Customer> _MyCollection = null;
        public ObservableCollection<Customer> MyCollection
        {
            get { return _MyCollection; }
            set { _MyCollection = value; OnPropertyChanged("MyCollection"); }
        }
         
        public MyViewModel()
        {
            context = new RXOfficeEntities();
            MyCollection = new ObservableCollection<Customer>(context.Customers);
        }



Deng
Top achievements
Rank 1
 asked on 12 Jun 2012
6 answers
65 views
Hi there,

RadListBox is missing in 2011 Q3 , how to get it as i required to use it or is there any alternative of it.
Usman
Top achievements
Rank 1
 answered on 12 Jun 2012
2 answers
153 views
Hello!

I have an ImageEditor with custom UI and everything is working great, I just want to change some functionality of the Open button. When the user clicks on it, the OpenFileDialog open but the pre-defined file type is *.PNG and every time he need's to change it to .JPG.

Is there a way to override the OpenCommand and change the default file type of the Dialog window?

Here's the code of the button:

<telerik:RadImageEditorButton Grid.Column="0"
                              Image="/Telerik.Windows.Controls.ImageEditor;Component/Images/open.png"
                              Command="{Binding Commands.Open, ElementName=imageEditor}" />

Thanks!
Iva Toteva
Telerik team
 answered on 12 Jun 2012
1 answer
107 views
Is there a plan to update the release notes? Am I just looking in the wrong place?

http://www.telerik.com/versionnotes.aspx?id=2843 

Greg
Dimitrina
Telerik team
 answered on 12 Jun 2012
5 answers
177 views
Hi,

I.m using WPF and Telerik 2012.1.326.35 and I remark a translation problem with the RadDatePicker. All my environment is in french but when I manually enter a wrong date in the control, a tooltip appear in english with the word "Error".

How I can fix this???

Thank's
Vladi
Telerik team
 answered on 12 Jun 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?