Telerik Forums
UI for WPF Forum
1 answer
111 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
87 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
83 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
326 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
230 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
496 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
80 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
1 answer
166 views
We're using a customized RadDocking, having a RadSplitContainer > RadPaneGroup which is having TabStripPlacement="Top". This inherits the style of TopTemplate (the only one we need in our design/layout).

When we're undocking a RadPane to become a new/single RadPaneGroup, the TopTemplate won't be automatically assigned after dock in, instead the BottomTemplate (which is the default Template of RadPaneGroup without using TabStripPlacement) is assigned.

Question: Is this a bug?
George
Telerik team
 answered on 20 Jan 2011
4 answers
202 views
Hi,
I have requirement on select of Todays Date in RadDatePicker , it should return string "Today".
Same as For Tommorows date, should return string as Tommorow.
Is it possible such type of behaviour in Telerik.
Please do the needul.
Kaloyan
Telerik team
 answered on 20 Jan 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?