Telerik Forums
UI for WPF Forum
2 answers
809 views
How do you get a RadGridView's columns to expand to fill all of the available space of the RadGridView? Right now they are the size of the content inside and no larger and aligned left. I would like them to size fill in some manner.
Ristogod
Top achievements
Rank 2
 answered on 29 Oct 2010
2 answers
244 views
I do not want to modify default behaviour of escape key. When pressing escape key it does cancel edit correctly. I wanted to handle that event to perform another/additional function. how is it possible?
M
Top achievements
Rank 1
 answered on 29 Oct 2010
3 answers
140 views
I have a GridView using a ObservableColletion source.

The cells are dynamically updated after the row is added.

I am looking for an event that occurs on a cell/row that has the data updated.

Any suggestions?

I have tried cellselector and propertychanged cant find it.

BTW there is no 'cellediting' occuring, just receiving of a propertychanged notify from the collection.
Thanks
Vlad
Telerik team
 answered on 29 Oct 2010
3 answers
107 views
Hello,
I am trying for the cell formatting on condition of child grid view but it can't.
I have use the template selector class. can u help me?
Vlad
Telerik team
 answered on 29 Oct 2010
1 answer
129 views
Does RadControls for WPF Q3 2010 beta version has RichTextBox Control? I have been waiting for it...

Thanks,
Iva Toteva
Telerik team
 answered on 29 Oct 2010
1 answer
148 views
Hi,

 I have a few docked panes and floating panes in my application at any given time. I wish to have a menu option for user to AutoHide All and Show All panes.
For docked panes, I Can set Is Pinned property, but how to hide/ show the floating pane.
Konstantina
Telerik team
 answered on 29 Oct 2010
4 answers
102 views
We're adding our new rows from our datamodel using a shortcut keyboard command. Now I want the newly added row to be in editmode and selected with keyboard focus so I can just start typing.

I've gotten things to work the first time a row is added, however when I add any row after that using just the keyboard. The editmode wont release from the first row. The CurrentItem property wont update. I've tried doing canceleditmode commitedit setting current item etc. before selecting the new row and doing "beginEdit" however the edit will still be stuck at the first row.

Here is an example of what I've done in my event that is fired when I add a new row:
datamodel.AddedRow += delegate
                        {
                             
                            Grid.CommitEdit();
                            Grid.CancelEdit();
                             
                             
                            Grid.UnselectAll();
                            if(!Grid.IsKeyboardFocused)
                                Grid.Focus();
                             
                            Grid.CurrentItem = datamodel.Selected[0];
                             
                            Grid.SetIsCurrent( datamodel.Selected[0], true );
                            Grid.BeginEdit();
                        };

I'm doing more here than I need I know this, but I cannot get it to update the CurrentItem before I do BeginEdit.

I tried the beta version of the Q3 release and it is working there, but I'm wondering if I can get this to work with the released Q2 release.

I can force the behviour to work be using the Rebind method before I set focus and current item. However this comes with a severe performance hit.
Veselin Vasilev
Telerik team
 answered on 29 Oct 2010
1 answer
157 views
I have a DtaeTime Picker in my application as follows

<Input:RadDateTimePicker x:Name="dateTimePicker" Width="150" Margin="3,0,0,0" DateTimeWatermarkContent="DateTime" SelectedValue="{Binding StartDateTime, Mode=TwoWay}"   VerticalAlignment="Center" SelectionChanged="dateTimePicker_SelectionChanged" />

and in the code behind
  private DateTime _startDateTime = DateTime.Now;
       public DateTime StartDateTime
       {
           get
           {
               return _startDateTime ;
           }
           set
           {
                
               if (_startDateTime != value)
               {
                   _startDateTime = value;
                   OnPropertyChanged("StartDateTime");
               }
           }
       }
 
public event PropertyChangedEventHandler PropertyChanged;
       private void OnPropertyChanged(string propertyName)
       {
           if (this.PropertyChanged != null)
           {
               this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
           }
       }

But when I run the app, there is no value set for The DateTimePicker control
George
Telerik team
 answered on 29 Oct 2010
9 answers
295 views
Hi,

I'm having a problem with the grid view control.

During runtime my grid displays the content correctly, however when you scroll the grid up and down it throws exceptions in the VS output window.  They seem to slow the entire application down.

A first chance exception of type 'System.ArgumentException' occurred in Telerik.Windows.Data.dll



Enclosed is the XAML

<

 

UserControl x:Class="GridTeams"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" >

 

 

 

<UserControl.Resources>

 

 

 

 

</UserControl.Resources>

 

 

 

<Grid>

 

 

 

<telerik:RadGridView ItemsSource="{Binding Source={StaticResource DataTeams}}"

 

 

Margin="10">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding XPath=TN}"/>

 

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

</Grid>

 

</

 

UserControl>

 




I'm using RadControls_for_WPF_2009_3_1208_TRIAL.msi

When I run another demo with the same content it doesnt seem to cause the same effect.   Therefore I am confused as to where the problem is coming from.  Any help would be appreciated.

Kind regards
Neil
Vlad
Telerik team
 answered on 29 Oct 2010
2 answers
216 views
hello,

I am learning RadChart to display a pie,when I place a RadChart and ChartLegend in RadDocking,the pie chart can be drawn,but the chartlegend items are missing!

I have built a sample application to show the bug,please help me!

Any help will be appreciated!

Jerry

Screen shot

xaml:
<Grid>
   <telerik:RadDocking Background="Transparent" d:IsHidden="True" >
         <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,150" MaxWidth="600"
                              Name="leftContainer" InitialPosition="DockedLeft">
                <telerik:RadPaneGroup DropDownDisplayMode="Collapsed">
                    <telerik:RadPane x:Name="featurePane" Header="Featrues" >
                        <Controls:RadTreeView SelectionMode="Extended" IsLineEnabled="False"
                                                 ItemsOptionListType="CheckList"
                                                 IsOptionElementsEnabled="True"
                                                 IsRootLinesEnabled="True"
                                                 VerticalAlignment="Stretch" Margin="0"
                                                 x:Name="featureTree"
                                                 IsTriStateMode="True"
                                                 >
                        </Controls:RadTreeView>     
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            <telerik:RadDocking.DocumentHost>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="100"/>
                        <RowDefinition Height="310*"/>
                    </Grid.RowDefinitions>
                    <Controls1:RadChart x:Name="radPipe" Grid.Row="0"
                                      UseDefaultLayout="False">
                        <Charting:ChartArea x:Name="pipeArea" >
 
                        </Charting:ChartArea>
                    </Controls1:RadChart>
 
           
                    <Controls1:RadChart x:Name="radStatistics" Grid.Row="1"
                                      UseDefaultLayout="False"
                                      BorderBrush="Transparent">
                        <Grid >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="165*" />
                                <ColumnDefinition Width="120" />
                            </Grid.ColumnDefinitions>
 
                            <Charting:ChartLegend  Grid.Column="1" Name="pieLegend"  />
                            <Charting:ChartArea x:Name="pieArea" Grid.Column="0"
                                               LegendName="pieLegend" />
 
                        </Grid>
                    </Controls1:RadChart>
                </Grid>          
            </telerik:RadDocking.DocumentHost>           
        </telerik:RadDocking>
        <Button Content="Button" Height="27" HorizontalAlignment="Left" Margin="62,105,0,0"
                Name="button1" VerticalAlignment="Top" Width="96" Click="button1_Click" />
    </Grid>


Behind code:
public partial class MainWindow : Window
{
    public MainWindow()
    {
        this.InitializeComponent();
 
    }
     
    private static DataSeries GetPieData()
    {
        DataSeries series = new DataSeries();
        for(int i=0;i<5;i++)
        {
            DataPoint dataPoint = new DataPoint("aa"+i, i);
            dataPoint.LegendLabel="aa"+i;
            series.Add(dataPoint);
        }
        return series;
    }
     
    private void ConfigurePie()
    {
        DataSeries doughnutSeries = GetPieData();
        doughnutSeries.LegendLabel = "Doughnut Series";
 
        doughnutSeries.Definition = new DoughnutSeriesDefinition();
        doughnutSeries.Definition.InteractivitySettings.HoverScope = InteractivityScope.Item;
        doughnutSeries.Definition.InteractivitySettings.SelectionScope = InteractivityScope.Item;
        doughnutSeries.Definition.InteractivitySettings.SelectionMode = ChartSelectionMode.Single;
 
        ((DoughnutSeriesDefinition)doughnutSeries.Definition).LabelSettings.LabelOffset = 0.8d;
        doughnutSeries.Definition.ItemLabelFormat = "#Y";
        pieArea.DataSeries.Clear();
        pieArea.DataSeries.Add(doughnutSeries);
        pieArea.SmartLabelsEnabled = true;
        pieLegend.Header = " ";
 
    }
 
 
    private void button1_Click(object sender, RoutedEventArgs e)
    {
          ConfigurePie();
    }
     
     
}
Jerry
Top achievements
Rank 1
 answered on 29 Oct 2010
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?