Telerik Forums
UI for WPF Forum
4 answers
288 views
Is it possible to do a trend line on a scatter chart?
Vladimir Milev
Telerik team
 answered on 21 Jan 2011
4 answers
579 views
Hi

I want to Know, How can implement the Show and Hide of the particular Column / s at Runtime through checkbox.

Regards 
Milan
Telerik team
 answered on 21 Jan 2011
1 answer
107 views
   
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2011
4 answers
207 views
Hi,
I'm trying to display the value in a cell when editing double values without displaying decimals, see screenshot -> the edit cell format seems to be overridden.

So my question is can I easily format the editable cell ?

All my GridViewDataColumn's have this dataformat:
col.DataFormatString = "{0:N0}";

Thanks
Kristján
Maya
Telerik team
 answered on 20 Jan 2011
5 answers
84 views
I have not tried WPF version in a real project, but would a WPF grid perform well with a dataset of about 40,000 records?
The datasource could be a dataset or List <> collection of 40,000 records.

Thanks
Sunil
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 20 Jan 2011
1 answer
81 views
Hi there,

I have in my Grid a GridViewComboBoxColumn and want to show there the Name of a type from the table which is shown in the grid.

This is the column:
<telerik:GridViewComboBoxColumn Header="Typ" IsFilterable="False" IsGroupable="False" IsSortable="False" ShowDistinctFilters="False" UniqueName="Typ" DataMemberBinding="{Binding Typ}" />

This is how I fill the Names into the Combobox:

private void FillTypItems()
    {
      List<TypItem> TypListe = new List<TypItem>();
      TypItem _TypItem = new TypItem();
 
      _TypItem.Typ = 1;
      _TypItem.TypText = "Ganzzahl";
      TypListe.Add(_TypItem);
 
      _TypItem = new TypItem();
      _TypItem.Typ = 2;
      _TypItem.TypText = "Dezimalzahl";
      TypListe.Add(_TypItem);
 
      _TypItem = new TypItem();
      _TypItem.Typ = 3;
      _TypItem.TypText = "Zeichenkette";
      TypListe.Add(_TypItem);
 
      _TypItem = new TypItem();
      _TypItem.Typ = 5;
      _TypItem.TypText = "Logisch";
      TypListe.Add(_TypItem);
 
      ((GridViewComboBoxColumn)this.rgvUebergabeparameter.Columns["Typ"]).DisplayMemberPath = "TypText";
      ((GridViewComboBoxColumn)this.rgvUebergabeparameter.Columns["Typ"]).ItemsSource = TypListe;
 
    }

And this is the DataItem for the TypeNames (TypText):
public class TypItem
  {
    int _Typ;
    public int Typ
    {
      get
      {
        return _Typ;
      }
      set
      {
        _Typ = value;
      }
    }
 
    string _TypText;
    public string TypText
    {
      get
      {
        return _TypText;
      }
      set
      {
        _TypText = value;
      }
    }
  }

The Combobox is filled correctly, but the Item to the number from table, will not be shown.
What do I have done wrong?
Maya
Telerik team
 answered on 20 Jan 2011
1 answer
308 views
I have a treeview (see image attached) that does not refresh when I add an item. We use the WPF MVVM framework.
When the tree loads the first time, the treeview works perfectly. When clicking on each item, it successfully loads its sub item correctly. Now if i decide to add a sub_item to a level that I selected, For example let's say i want to add a Client vist date to treatments. So my treatment Level would be selected, I would click an add button and will create a Client Visit. After completion, I want the tree to refresh (using that load-on-demand functionality) and show me my new added Client Visit under the treatment I selected. unfortunately, this does not work. with the Load-On-Demad functionality. It seems to work only ONCE and that is when the tree is first loaded. After that it never triggers any of item_prepared, load_on_demand events until restart the application to see my changes. Please could you help in showing me, using MVVM WPF (not silverlight) how:
1) to store the item path
2) After adding an item to the treeview, refresh the tree (using load on-demand) to display the new item that was added
Thank you. This is needed so urgently. I would appreciate a fast response. Thank you again
Petar Mladenov
Telerik team
 answered on 20 Jan 2011
3 answers
224 views
Hi, I have a header template for my TabControl (code below), but when i try to set binding to Header property of a tab (at least i think so) I don't get nothing...
What i would like is when i create new tab (let say from code ... something like :

MainTabControl.Items.Add(new RadTabItem() {Header = "HeaderText", Content = new MyControl()});

), that property of this header would bi binded as i stated in xaml....

Thank you for all your help!

<telerik:RadTabControl x:Name="MainTabControl" DockPanel.Dock="Bottom" Margin="0">
                <telerik:RadTabControl.ItemContainerStyle>
                    <Style TargetType="telerik:RadTabItem">
                        <Setter Property="HeaderTemplate">
                            <Setter.Value>
                                <DataTemplate>
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*" />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                        <TextBlock Grid.Column="0"  Text="{Binding Header}"  />
                                        <Button Grid.Column="1" Margin="0 0 0 0" Content="x" Width="15"
                                            Height="15" HorizontalAlignment="Center"
                                            VerticalAlignment="Center" RE:EventHelper.EnableRoutedClick="True"
                                            />
                                    </Grid>
                                </DataTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:RadTabControl.ItemContainerStyle>
            </telerik:RadTabControl>
Sam Ur
Top achievements
Rank 2
 answered on 20 Jan 2011
16 answers
493 views
Hello,

we have a RadGridView that is bound (in an MVVM scenario) to a property containing the main data for the grid...
Furthermore three columns have an ItemsSourceBinding to three different properties respectively to specify the "SelectedValueMemberPath" and "DisplayMemberPath".

Unfortunately when we want to group these columns (Drag and Drop onto the top of the grid), the grid shows the Id, i.e. "SelectedValueMemberPath" rather than the Name (DisplayMemberPath).

The same problem can be seen when we want to filter the column and the "Filter Window" shows only the SelectedValueMemberPath rather than the desired DisplayMemberPath.

We currently use version 2010.1.603.35 of the telerik controls....

here is some of our current code:

 

 

 

 

            <telerik:RadGridView x:Name="radBerthingSlots" 
                AutoGenerateColumns="False" 
                IsEnabled="True" 
                ItemsSource="{Binding BerthingSlots}" 
                SelectedItem="{Binding SelectedBerthingSlot, Mode=TwoWay}"   
                CanUserDeleteRows="False" 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewComboBoxColumn Header="Shipper Name" DataMemberBinding="{Binding ShipperId}"   
                                                    SelectedValueMemberPath="Id" DisplayMemberPath="Name" 
                                                    ItemsSourceBinding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=my:BerthingSlotView, AncestorLevel=1}, Path=ViewModel.Shippers}" /> 
                </telerik:RadGridView.Columns> 
            </telerik:RadGridView> 

alternatively we tried to set some stuff in the code behind:

                    <telerik:GridViewComboBoxColumn Header="Shipper Name" DataMemberBinding="{Binding ShipperId}"   
                                                    SelectedValueMemberPath="Id" DisplayMemberPath="Name" 
                                                    Initialized="ShipperComboBox_Initialized"/> 
        private void ShipperComboBox_Initialized(object sender, EventArgs e)  
        {  
            var cbx = sender as GridViewComboBoxColumn;  
            cbx.ItemsSourceBinding = new Binding { Source = this.ViewModel, Path = new PropertyPath("Shippers") };  
        } 

Any help would be much appreciated to solve the issues with Grouping and the Filter window....

Many Thanks in Advance

M.



Pavel Pavlov
Telerik team
 answered on 20 Jan 2011
1 answer
76 views
Hi

I'm having troubles due to I can't change MinDropDownWidth because is read only. I'm using RadControls_for_WPF35_2010_3_1110_Dev

thanks
Boyan
Telerik team
 answered on 20 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?