Telerik Forums
UI for WPF Forum
1 answer
561 views

i have it inside in a grid but i cannot dock it to center

i want the document to resize with window size and take all the available width and height

can someone provide a sample?

thanks
Alex

p.s. (see the image for better understanding of the problem)
Martin Ivanov
Telerik team
 answered on 29 Feb 2012
1 answer
165 views
Hi,
There is a popular samplae called DrawCli in MFC for drawing different kind of shapes using drag and drop.
I want to know should you have any plan to rewrite this sample using WPF and RadDiagram?
here is the WinForm (C#) version of this sample.

Thank you in advance.
Miro Miroslavov
Telerik team
 answered on 29 Feb 2012
2 answers
134 views
I've found a strange corner case with the RadComboBox.  I am currently using the most recent controls (RadControls for WPF Q1 2012), but cannot comment on whether this issue existed previously.


The issue occurs in the actual drop down list when you click on the combo box.  All items in the list state "System.Data.DataRowView".  However the actual content seems to be bound properly since if you click on an item, the expected value will actually be selected and properly displayed once the list retracts.

What's most curious about this is that everything works fine using the other themes I've tried (Office_Blue, Office_Black, and Office_Silver), which leads me to believe there is an issue specifically within the Expression_Dark themed template for RadComboBox.


Expression Dark Example

Office Blue Example


As mentioned previously, this only appears to occur when binding to a CollectionViewSource who's source is a DataView.  Is there a workaround to get DataViews working?

Georgi
Telerik team
 answered on 29 Feb 2012
2 answers
225 views
Hello,

the behaviour of the SelectedItem propeties seems strange to me:

If inserting a new row in the grid, the SelectedItem is still the previous row. That's not what I expect, but it's ok, as far as the previous row is still mark in the grid.

After editing the first cell and clicking on the next cell, the SelectedItem changes to the new entry, but the grid still marks the previous row.

When the CellEditEnded event or RowEditEnded event is raised the SelectedItem differs from the property it is bound to! SelectedItem has been set back to previous item while the bound property is still the new item.

I tracked this behaviour with version 2011_2_0920. It is a bug or a missunterstanding on my side?

I also have two related questions:
1. Why has setting the CurrentItem no effect? The previous item is still marked on the grid.
2. Is there a possiblity to set the inserted item on top of the shown rows in the grid instead of the buttom?

Best greeetings
Florian Müller
Nedyalko Nikolov
Telerik team
 answered on 29 Feb 2012
0 answers
132 views
Hi,
There is a popular samplae called DrawCli in MFC for drawing different kind of shapes using drag and drop.
Anybody have already rewritten this sample using WPF?
here is the WinForm (C#) version of this sample.

Thank you in advance.
Libertad
Top achievements
Rank 1
 asked on 29 Feb 2012
1 answer
124 views
Hi,

I want to bind a DbDataReader (System.Data.Common) to my GridView.

I tried to bind it via INotifyPropertyChanged, but this is impossible with the DbDataReader. So I tried the following code:

GridViewMain.ItemsSource = reader;
GridViewMain.Rebind();

But there happens nothing. How can I bind the datareader to the gridview?

I'm using Visual Studio 2008, .NET 3.5 and RadControls_for_WPF35_2011_2_0920

Thank you for any suggestions!
Nicole
Top achievements
Rank 1
 answered on 29 Feb 2012
2 answers
799 views
I have a RadGridView with auto column generation on, and the data source is a DataTable whose dimensions are unknown at compile time. I would like to make all decimal fields in the grid use money format, like "$#,##0.00".  Notice that I can easily set the FontFamily for text fields.  If only I could set a simple "NumericFormat=..." value !!

When the columns are unknown I cannot write XAML to declare nor to format each column. I could use C# code-behind, but what event shall I catch, and which method sets the numeric formatting at the right time?  Thanks.

 

<telerik:RadGridView Margin="0,22,0,0" Name="radGridView1" DataLoadMode="Asynchronous" FontFamily="Century Gothic" FontSize="16" AutoExpandGroups="True" AutoGenerateColumns="True" >

 

 </telerik:RadGridView>

Dave
Top achievements
Rank 1
 answered on 28 Feb 2012
1 answer
59 views
Hi,
I have a gridview, and I would like to scroll it down every time I add an entry.

How can I do this?
Dimitrina
Telerik team
 answered on 28 Feb 2012
0 answers
251 views
Is there any good tutorial/example to create a splash screen using WPF?

tks in advance
FireStarter
Top achievements
Rank 1
 asked on 28 Feb 2012
3 answers
406 views
Is it possible to resize RadListBox items with a GridSplitter?

The following code doesn't work but shows what I want to achieve:

<telerik:RadListBox ItemsSource="{Binding MyCollection}">
    <telerik:RadListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </telerik:RadListBox.ItemsPanel>
     
    <telerik:RadListBox.ItemTemplate>
        <DataTemplate>
            <Grid>
                <TextBlock Text="{Binding MyTextProperty}" Margin="0,0,10,0"/>
                 
                <GridSplitter
                    Width="5"
                    Background="Red"
                    HorizontalAlignment="Right"
                    ResizeBehavior="CurrentAndNext"/>
 
            </Grid>
        </DataTemplate>
    </telerik:RadListBox.ItemTemplate>
</telerik:RadListBox>
Georgi
Telerik team
 answered on 28 Feb 2012
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)
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
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?