Telerik Forums
UI for WPF Forum
4 answers
381 views
i am working with version 2010.3.1110.35
i have this in the listbox itemTemplate

<

 

telerik:RadComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />

 

 



Field returns a class that implements

INotifyPropertyChanged



and Fields returns a List<Field>



now when i ran the application, if i set a breakpoint on get field, i can see it is trying to get it,
and that the value returned is correct

but when gui is finished loading

selectedindex is set to -1 and selecteditem and selectedvalue is set to null , and combobox doesn't show the selection of the field


but if i change the line into

<ComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />

and use the regular wpf combobox it will work


it only happens when it's loaded , after it's loaded if i change stuff , it will work , but the first time doesn't work


how can i solved this?

thanks
Vladi
Telerik team
 answered on 13 Jul 2012
16 answers
1.4K+ views
Hi

I've just downloaded Q1 2012 SP1, and note that there are two folders - one the usual Binaries - Wpf35/Wpf40 and another one called Binaries.NoXaml.

What's the difference between the binaries in each of these folders?

I always copy the binaries over to the lib folder in my application and check them into source control.

I am running VS Beta 11 + Net 4.5 in a Virtual PC. Just running an already compiled application that was complied on a PC without VS Beta 11, is giving me some very strange errors in RadComboBoxes - basically something bound to SelectedValue/SelectedValuePath always returns null for SelectedValue.

<telerik:RadComboBox Grid.Row="2"
                               Grid.Column="1"
                               Width="80"
                               Margin="0,0,10,0"
                               HorizontalAlignment="Left"
                               VerticalContentAlignment="Top"
                               DisplayMemberPath="DisplayMember"
                               ItemsSource="{Binding CurrenciesComboSource}"
                               SelectedValue="{Binding Path=EntityToInsert.Currency,
                                                       Mode=TwoWay}"
                               SelectedValuePath="Tag.Description"
                               Style="{StaticResource BaseRadComboBoxStyle}" />

where ItemsSource is a collection of 
  public class ComboSourceItem
    {
        public object SelectedValue { get; set; }
        public string DisplayMember { get; set; }
        public string Description { get; set; }
 
        /// <summary>
        /// Use the Tag property to hold any extra data
        /// </summary>
        public object Tag { get; set; }
}

and EntityToInsert is a simple get;set; property defined in the ViewModel.

private T _entityToInsert;
public T EntityToInsert
{
      get { return _entityToInsert; }
      set {
                _entityToInsert = value;
                RaisePropertyChanged("EntityToInsert");
            }
}


If I run the same app on a machine without VS Beta 11 installed I have no problems whatsoever. I was hoping that Q1 2012 SP1 would address this, but alas not. 

I noticed that prior to installing the internal build 2012.1.319 on the Virtual machine - the sizing of all Telerik RadControls was all over the place. 2012.1.319 fixed all the sizing issues but not the question of the SelectedValue.

I would love to run VS Beta 11 on my main machine, but dare not install it since it is obviously breaking some of your controls.

Regards
Jeremy Holt

I've attached two screen shots of Snoop looking at the form. In VS2010 the SelectedValue is correct, while in VS2011 it is null. This is exactly the same code base.
Mariusz
Top achievements
Rank 1
 answered on 13 Jul 2012
3 answers
162 views
Hello,

I don't suppose there is a way to handle a click on the header of a column, or even better a way to just sort the columns when you click on a column header?

Also, is there a way to register a click on the depence arrows so I can show more detailed info. when they are clicked?
Thanks,
Eric
Miroslav Nedyalkov
Telerik team
 answered on 13 Jul 2012
1 answer
128 views
Hello,

Unfortunately, I'm unable to provide a screenshot. Apologies.
I seem to be running into a problem with the Expression_Dark theme.

My Timeline is using MinuteInterval and SecondInterval.

Sometimes, the data will be displayed such that there is a single header at the top of the widget. To show the zoom scale (ie: minutes, or seconds). There isn't a problem here. The dark background is displayed properly with the light colored text.

The problem occurs when the data is displayed such that there is a double header (one for minutes AND one of seconds). The top most header (hours) is missing the themed background color. It shows in light color while the text is also in light color.

I suspect this is a bug, but I'm interested in finding a way around it.

Robert
Tsvetie
Telerik team
 answered on 13 Jul 2012
1 answer
189 views
Hi,

we use Telerik V2012.1.326.35. On my Window 7 computer with "Auto-Hide Taksbar=True", when I maximize my RadWindow, I cannot have my Taskbar back. I move my move pointer at the bottom of my screen without any succes. It's occur alson with XP.

Thank's
Georgi
Telerik team
 answered on 13 Jul 2012
1 answer
59 views
Are there plans for porting Map control into Windows 8?
Andrey
Telerik team
 answered on 13 Jul 2012
5 answers
115 views

I am creating a form where the columns will be created and recreated dynamically.
The user selects a predefined view with sorting, filtering and grouping.
He then enters filter criterias and retrievs data from a service.
The problem occurs when the user selects another view which may contain other columns.
At that point the column collection is cleared and the ItemsSource is set to null but this
seems to cause exceptions in the filtering mechanism. I can't figure out how to get around this problem.
I am using the new FilterRow but I think the problem also affects the popup mode.

The code below illustrates the problem when theButton is pressed TWICE.

        private void theButton_Click(object sender, RoutedEventArgs e)
        {
            radGridView1.Columns.Clear();

            // Create grid columns
            radGridView1.Columns.Add(new GridViewDataColumn() { Name = "A", DataType = typeof(string),
               DataMemberBinding = new Binding("A") });

            radGridView1.Columns.Add(new GridViewDataColumn() { Name = "B", DataType = typeof(string),
               DataMemberBinding = new Binding("B") });           

            // Create dummy data
            DataTable dataTable = new DataTable();
            dataTable.Columns.Add("A", typeof(string));
            dataTable.Columns.Add("B", typeof(string));
            dataTable.Rows.Add(new object[] { "0A", "0B" });
            dataTable.Rows.Add(new object[] { "1A", "1B" });
            radGridView1.ItemsSource = dataTable;

            // Filter data
            radGridView1.Columns["A"].ColumnFilterDescriptor.FieldFilter.Filter1.Value = "0";
            radGridView1.Columns["A"].ColumnFilterDescriptor.FieldFilter.Filter1.Operator =
               Telerik.Windows.Data.FilterOperator.Contains;

        }

The second time the button is pressed the following exception occurs:

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.GridView.FieldFilterControlViewModel.RefreshEditorIsEnabled()...

Konstantina
Telerik team
 answered on 13 Jul 2012
7 answers
157 views
ok...this "throw away line" in teh documentation for custom appoitnemnts in radcheduleView has me tearing my hair out

Now that we have our custom IsDone property, let's add a CheckBox for it and bind to it. First, you need to generate the code for the EditAppointment dialog from Expression Blend. Then, add the following snippet in the ControlTemplate of the dialog: 


Well the themes fail to load in blend, complaining about the reference to 
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"

So what's the easiest way to extract the metro style EditAppointment dialog?


[Even a sample project of the FULL code described in the documentation would help]
Vladi
Telerik team
 answered on 13 Jul 2012
1 answer
175 views
When I included the Telerik RAD components into my current project I started getting some new folders rendered into the output directory (see attached image).

I have a custom (XML-based) localization solution running so I don't need this feature. How can I configure Telerik libraries NOT to produce these folders?
Maya
Telerik team
 answered on 13 Jul 2012
1 answer
104 views
I'm having some issues implementing this in general, so I was wondering if the RDP had some support for this built in?  How can I configure it so that, for example, left/right moves to the previous record/next record?
Nick
Telerik team
 answered on 13 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?