Telerik Forums
UI for WPF Forum
17 answers
317 views
Dear Telerik,

Today we have upgraded to version 'RadControls_for_WPF_2012_1_0326'.
We have encountered a problem after upgrading.
The Aggregate Sumfunction of our RadTreeListView always displays 0 instead of the right sum.

Did something change in the new version ?

Regards,
Gert



<
telerik:GridViewDataColumn DataMemberBinding="{Binding CalVal,StringFormat=N,ConverterCulture=DE}" Header="Σ" Width="Auto" TextAlignment="Right" FooterTextAlignment="Right"  IsReadOnly="True">
<telerik:GridViewDataColumn.CellStyle>
          <Style TargetType="telerik:GridViewCell">
               <Setter Property="Background" Value="{Binding parentItem, Converter={StaticResource backColorConvertor},ConverterParameter=Summe}" />
           </Style>
 </telerik:GridViewDataColumn.CellStyle>
<telerik:GridViewDataColumn.AggregateFunctions>
            <telerik:SumFunction SourceField="CalVal" Caption="Sum: " />
 </telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
Yoan
Telerik team
 answered on 22 Oct 2013
2 answers
123 views
Hi,

I have a WPF radpropertygrid in my application.  It has a lot of columns some of which remain hidden because of the limited size of the propertygrid.  Scrollbar is available to view the same.

Now, when I record a Coded UI Test to click one of the hidden columns, it does not click it when the column is hidden.

I am calling SetFocus() method on the column header before clicking it but it does not work.

Regards,
Vijay
Ivan Ivanov
Telerik team
 answered on 22 Oct 2013
3 answers
442 views
Hi, I am able to show a title in the RadChart, something like this:

Chart.DefaultView.ChartTitle.Content = "Title";

or

<telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartTitle Content="Title" HorizontalAlignment="Center">

Is it possible to show a title in a RadPolarChart, RadRadialGauge and RadCartesianChart?

I would like to add a title for those kind of charts if possible.

Thanks,

Alberto
Evgenia
Telerik team
 answered on 22 Oct 2013
6 answers
310 views
Is there a way to style my RadColorPicker to get rid of the glyph of the little "A" in the expander? Look at the file I attached. I'm not using it to change the colour of a font. This is confusing my user. I just want a block that has the selected colour in it.
Petar Mladenov
Telerik team
 answered on 22 Oct 2013
1 answer
159 views
Hi,

i use the RadTabControl like your DataBinding-Example. This works great, but how do i add a New Tab on Page_Load?
Second Problem, how to load the Content now and not after selecting the tab?

Thanks a lot
Best Regards
Rene
Pavel R. Pavlov
Telerik team
 answered on 22 Oct 2013
3 answers
45 views
I have two issues after updating from one set of components to another.

1) I previously had the following lines of code which, regardless of grouping/sorting, gave me a collection of objects currently viewable in the grid:

 foreach (GBundlingTradeOutput item in gridTradePackages.Items)
{
projects.Add(item);
}


When the code runs now I receive an error of the following:

Additional information: Unable to cast object of type 'Telerik.Windows.Data.AggregateFunctionsGroup' to type 'PostContract.Common.Classes.GBundlingTradeOutput'.

Why the change and how do i return to the functionality originally intended?

2) I have two datetime properties on objects bound to a grid. When i click on the cell I get the calendar picker and I can select a date which enters the value correctly in the cell. If I enter a value manually such as 01/02/2012 the value doesn't get bound to the property. Is this related to culture? I have a line of code:

this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag);

The grid columns are as follows in the xaml:

                <telerik:GridViewDataColumn Width="200"
                                                DataMemberBinding="{Binding Path=AppointmentDate,
                                                                            UpdateSourceTrigger=PropertyChanged}"
                                                Header="Latest Appointment Date" DataFormatString="{} {0:d}"
                                                TextWrapping="Wrap" >
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn Width="140"
                                                DataMemberBinding="{Binding Path=StartDate,
                                                                            UpdateSourceTrigger=PropertyChanged}"
                                                Header="Start on Site Date" DataFormatString="{} {0:d}"
                                                TextWrapping="Wrap" >

Many thanks.

Rob

Vera
Telerik team
 answered on 22 Oct 2013
2 answers
275 views
Hi I'm having a strange issue with the RadComboBox popup menu not appearing. The project is designing a number of WPF applications to be used for a utility company's control center. They're using a Barco application to screen scrape the images from the image buffer and push them to the video wall controller. We had a similar problem where the application was not being detected by the Barco application and could not be pushed to the video wall. We found that if we set the <Window> element 'AllowsTransparency' property to false in the MainWindow.xaml  that the Barco would properly display the application.

The newest problem to occur is that the RadComboBox popup box isn't detected by the Barco while everything else on the application is. We're using the RadComboBox within a custom user control, so there is no 'AllowTransparency' property available. 

Is there some setting available on the RadComboBox that might be causing this issue? This problem is very unique and luckily we stumbled upon the 'AllowsTransparency' property originally. 

Thanks
Alan
Top achievements
Rank 1
 answered on 21 Oct 2013
6 answers
408 views
We have an application where we want to programatically scroll and select an item in the list. We are using ScrollIndexIntoViewAsync passing in an Action delegate. Sometimes the code doesn't get into the Action method. We know this because we have put in logging both in the method that calls ScrollIndexIntoViewAsync and into the delegate. It gets into the first but not the latter. So the grid scrolls but no item gets selected.

I have tried to reproduce this in a sample app but am not able to. Our application is quite complex, using a Virtual collection and dynamic columns. But I wouldn't think that these should affect whether the callback method is called. Is there something that could explain why the Action delegate does not always get called?

Thank you,
Valerie
Igor
Top achievements
Rank 1
 answered on 21 Oct 2013
1 answer
151 views

Hi I am looking for an sample application which uses WPF GridView and DataForm using MVVM to edit a single table.   I have seen an example of a data from within the table row but this is not really what and is not really practical for larger forms.    

Just a simple example that shows add/update/Delete etc.  I'm using entity framework if that matters.
Yoan
Telerik team
 answered on 21 Oct 2013
1 answer
186 views
I have the following two classes:
public class Gender
{
    public int Id { getset; }
    public string Name { getset; }
}
public class Person
{
    public string Name { getset; }
    public int? GenderId { getset; }
    public bool IsActive { getset; }
}

And I have the following RadGridView, bound to an ObservableCollection<Person>, wanting to use a ComboBox to choose their gender:

<telerik1:RadGridView x:Name="Grid"                              
                        ItemsSource="{Binding Persons}"
                        IsSynchronizedWithCurrentItem="True"
                        AutoGenerateColumns="False" 
                        ShowGroupPanel="False" 
                        ShowInsertRow="True"
                        CanUserInsertRows="true">
    <telerik1:RadGridView.Columns>
        <telerik1:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" Width="*" />
        <telerik1:GridViewComboBoxColumn
                Name="Gender"
                Header="Gender"  
                DataMemberBinding="{Binding GenderId}"
                DisplayMemberPath="Name"
                SelectedValueMemberPath="Id"
                ItemsSourceBinding="{Binding Genders}"
                EditTriggers="CellClick"
                IsReadOnly="False"
                Width="80"  />
        <telerik1:GridViewCheckBoxColumn
            DataMemberBinding="{Binding IsActive}"
            Header="Active"
            IsReadOnly="False" />
    </telerik1:RadGridView.Columns>
</telerik1:RadGridView>

I followed one of Telerik's examples I found somewhere to define the Combo column, and it has values
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        DataContext = this;
 
        Genders = new ObservableCollection<Gender>
            {
                new Gender {Id = 0, Name = "Female"},
                new Gender {Id = 1, Name = "Male"},
                new Gender {Id = 2, Name = "Withheld"}
            };
 
        Persons = new ObservableCollection<Person>
            {
                new Person {Name = "Andy", GenderId = 1, IsActive = false},
                new Person {Name = "Mary", GenderId = 0, IsActive = true},
                new Person {Name = "Peta", GenderId = 2, IsActive = true},
                new Person {Name = "Gerald", GenderId = 0, IsActive = true}
            };
    }
 
    public ObservableCollection<Gender> Genders { getset; }
    public ObservableCollection<Person> Persons { getset; }
}

So, I'm convinced I'm setting properties wrong on the GridViewComboBoxColumn or setting the wrong properties. 
What is wrong with the above scenario?



Maya
Telerik team
 answered on 21 Oct 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
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?