Telerik Forums
UI for WPF Forum
4 answers
145 views
heya,

i am porting an existing project to telerik and since i changed my window to derive from RadRibbonWindow i experience flickerings when i resize the window (no code or eventhandler is handling the resizing). additionally i specified 
ResizeMode="CanResizeWithGrip"
 on the window.

most of the time the border and title-bar is flickering, sometimes the whole window.
on my tryout with another wpf component suite just the areas flicker sometimes, where i created "new space" through resizing.

is there a way to prevent this?

thx

EDIT: this is especially nasty, because the flickering area is black :(
EDIT2: after a sleep of my notebook most of the drawing-area of the program was now black. unfortunately i didnt do a screenshot. ..  :(
Valentin.Stoychev
Telerik team
 answered on 29 Jun 2010
5 answers
121 views

Dear all,

I am in a very bad situation , 

coz , I have started a wpf project ...all is well except in the case of radgrid view in wpf ...

I am expecting all the functionality of windows radgridview in wpf. like adding rows etc.

is there any way to add the windows rad control to wpf ?.

If anybody know a solution please share it with me............

Thanks and Regards,

Firoz

Qatar

Yavor Georgiev
Telerik team
 answered on 29 Jun 2010
2 answers
265 views
Hello,

I need help (again) with the RadGridview please.

PROBLEM :
I use a RadGridView to display some informations. And one column have a Binding with an Integer attribute.
When I edit a row, and put a value which is not a number in the cell, my application crash (normal).

I tried to use GridViewMaskedTextBoxColumn with MaskType="Numeric" but it doesn't work or I does not succeed in using it.

CODE :
I have a gridview with an ObservableCollection as ItemSource :
        private ObservableCollection<IRoleUtilisateur> _userRole; 
        public ObservableCollection<IRoleUtilisateur> ListUserRole 
        { 
            get { return _userRole; } 
            set 
            { 
                _userRole = value; 
                OnPropertyChanged("ListUserRole"); 
            } 
        } 

In my RoleUtilisateur class (implements IRoleUtilisateur) I have an Integer :
        private int _rang; 
        public int Rang 
        { 
            get 
            { 
                return _rang; 
            } 
            set 
            { 
                _rang = value; 
            } 
        } 

XAML :
<telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Header="{Loc rank}" DataMemberBinding="{Binding Rang}" /> 
</telerik:RadGridView.Columns> 
(I deleted all columns except the one with the Binding with Integer attribute)

INFOS :
Visual Studio 2008
.NET Framework 3.5 SP1
Telerik 2010.1.603

How can I do to avoid crashing please ?

If you need more informations, please tell me.
Thank you in advance for your answer.

Regards,
G.B.
George Bill
Top achievements
Rank 1
 answered on 29 Jun 2010
4 answers
195 views
Hi,
I'm trying to implement a monitoring gridview that have a column of a time counter that increments in each second. 
For now the only solution that i came up with is to do a DispatcherTimer initiating foreach that increment each object and then rebind the grid, which of course is an awful performance hit.
Any suggestions?
Yavor Georgiev
Telerik team
 answered on 29 Jun 2010
1 answer
126 views
Hello,

i have a mainwindow and a button inside, when i click on the button i am opening a RadWindow

How i will be able to pass values or params from the MainWindow to the RadWindow?

Thanks,
Mike
Konstantina
Telerik team
 answered on 29 Jun 2010
4 answers
63 views
Hi All,
Can any one tell me hoe to restrict the drag and drop of the radtreeviewitems. (ie., it should not allow to be dropped as an child of another item). The drop should happen only before or after rootnodes.


TIA

Regards
Sampath
Sampath
Top achievements
Rank 1
 answered on 29 Jun 2010
5 answers
332 views
Hello telerik,

I am going to use RadTileView Control in my appliaction with XML-DataBinding.
But I have some problems:

1.) I have tried out to manage to current State of the control in the code-behind file. Here in forum I found out that I have to use following call ->
RadTileViewItem radTileItem = settingRadTileView.ItemContainerGenerator.ContainerFromItem(buissinesObject) as RadTileViewItem;

I do get a reference to each RaTileViewItem in the collection but do not get a reference to the RadFluidContentControl, if I do this call
RadFluidContentControl fluidControl = item.Content as RadFluidContentControl.
While debugging I see at quickwatch that the content of the RadTileViewItem is a XmlElement.

What should I do to get / wrap an XMLElement to RadFluidContentControl  ?

2.)  Another issue is, when I am setting the MinimizedHeight / MinimizedWidth - Property of each RadTileViewItem in the code -behind file e.g in the SizeChanged-Handler, I have always to click at the TileView - Control in order to update the current view then after loading TileViewItems allocate whole space the is available. Only after a e.g Click on TileView RadTileViewItems change height and width setted in the code-behind file.

How can achieve a refresh on TileViewControl in the code-behind file whithout cklicking / user interaction ?

3.) I am setting the MinimizedHeight / MinimizedWidth - Property of each Item in the code-behind file in SizeChanged-Handler depending on the ActualHeight of the grid, but if I am setting my desktop resolution to 800x600 pixel some minimized items disappear and I have only 7. I read that at the moment there is no scrollerView for minimized Items, does it mean that at the moment I can just show a few items ?

4.) Can just header be visible in in minimized state without any content?

5.) And at least, how can I change the size of the content e.g of the large content dynamically ? If I change the resolution of the desktop some visible area of the large content disappear, although the snaptodevicepixel is checked an the size of the border in the LargeContent is setted to auto ? Have I to change the width and heigt ot the content control itself dinamically ?

Thank you.

Here is my code:
    <Grid>               
        <telerikNavigation:RadTileView x:Name="settingRadTileView"  
                    MinimizedItemsPosition="Left"  
                    ItemsSource="{Binding Source={StaticResource ModulItems}, XPath=Modul}"                      
                    MaximizeMode="One" 
                    ItemContainerStyle="{StaticResource RadTileViewItemStyle}"                   
                    Background="{x:Null}"                            
                    SizeChanged="RadTileView_SizeChanged"                                        
                    >  
            <telerikNavigation:RadTileView.ItemTemplate>  
                <DataTemplate> 
                    <DockPanel Width="Auto" Height="Auto" LastChildFill="False"
                        <TextBlock Text="{Binding XPath=Name}"  
                        HorizontalAlignment="Center"  
                        Style="{DynamicResource TextBlockStyle}"  
                        VerticalAlignment="Center" Height="Auto"/> 
                    </DockPanel> 
                </DataTemplate>  
            </telerikNavigation:RadTileView.ItemTemplate>  
            <telerikNavigation:RadTileView.ContentTemplate>  
                <DataTemplate>  
                    <telerik:RadFluidContentControl SmallToNormalThreshold="128 128" NormalToSmallThreshold="128 128" 
                        NormalToLargeThreshold="600 600" LargeToNormalThreshold="600 600" State="Normal">  
                        <telerik:RadFluidContentControl.SmallContent>  
                            <Grid Width="64" Height="64">                                 
                            </Grid> 
                        </telerik:RadFluidContentControl.SmallContent>  
                        <telerik:RadFluidContentControl.Content>  
                            <Grid Width="128" Height="128">                          
                            </Grid> 
                        </telerik:RadFluidContentControl.Content>  
                        <telerik:RadFluidContentControl.LargeContent>  
                            <Border Width="Auto" Height="Auto" BorderThickness="3" BorderBrush="Blue">  
                                <StackPanel> 
                                    <TextBlock Text="Large" Foreground="White"/> 
                                </StackPanel> 
                            </Border>  
                        </telerik:RadFluidContentControl.LargeContent>  
                    </telerik:RadFluidContentControl>  
                </DataTemplate>  
            </telerikNavigation:RadTileView.ContentTemplate>  
</telerikNavigation:RadTileView>  
    </Grid> 





        private void RadTileView_SizeChanged(object sender, System.Windows.RoutedEventArgs e) 
        { 
 
            Grid parent = this.settingRadTileView.Parent as Grid; 
 
            int itemsCount = settingRadTileView.Items.Count - 1;  // beacause one is alwasy maximized 
 
            foreach (var item in settingRadTileView.Items) 
            { 
                if (item != null
                { 
                    // set the height of each item in order to show all items minimzed at the left. 
                    RadTileViewItem radTileItem = settingRadTileView.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem; 
                    radTileItem.MinimizedHeight = settingRadTileView.ActualHeight / itemsCount; 
                    radTileItem.MinimizedWidth = settingRadTileView.ActualHeight / itemsCount; 
                } 
            } 
        } 


Daniel Ruehle
Top achievements
Rank 1
 answered on 28 Jun 2010
4 answers
122 views
Hello telerikTeam,

is it possible to show Character in numericIndicator / Numberposition e.g FM 99,4 kHZ If yes how can I achieve it ?

Thank you

Daniel


Daniel Ruehle
Top achievements
Rank 1
 answered on 28 Jun 2010
2 answers
285 views
I am trying to add a new item to the GridView. When the user tabs past the last column of the last row I'm inserting a new row and placing it in edit mode. I do this by handling the KeyDown event like this:

        private void RadGridView_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Tab)
            {
                var grid = sender as RadGridView;
                var currentItem = grid.CurrentItem as OrderDetail;
                if ((currentItem != null) && (currentItem.IsValid))
                {
                    grid.BeginInsert();
                    grid.CurrentColumn = grid.Columns[0];
                }
                else
                {
                    e.Handled = true;
                }
            }
        }

I also handle the AddingNewDataItem event to add a new object:

        private void RadGridView_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
        {
            e.NewObject = OrderDetail.NewOrderDetail();
        }

The problem is that I need the new object to be added to the underlying collection that is bound to the ItemsSource property of the GridView so that a number of event handlers can be hooked up to events on the OrderDetail object. (These events bubble up list / property change notifications to the parent Order object for such things as calculating the Order total, sales tax, etc.).

The new row is being added and it gets set into edit mode but when I modify data in the columns for Quantity and UnitPrice no events are being published because the OrderDetail object is not inserted into the collection (which does the job of hooking up the events).

I tried to add the object to the collection but then I get two new rows added to the GridView. What I would like to do is add the OrderDetail to the underlying collection so that event handlers get hooked up but then set the row into edit mode on the first column. Is this possible or is there some other way to approach this?

Thanks,
Dave

Dave
Top achievements
Rank 1
 answered on 28 Jun 2010
3 answers
137 views
Hello Telerik,

I'm trying to put an TileView in a BusyIndicator but the tileview doesn't appear.

Do you have a sample code to do this ?

Thank you.

Teodor
Telerik team
 answered on 28 Jun 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
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
CardView
DataBar
WebCam
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? 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?