Telerik Forums
UI for WPF Forum
2 answers
140 views
Hello,
     I set the background color of a grid column to red but it did not appear to work. When I scrolled down the cells began to appear read. When I scrolled back up to the top the cells that did not have a red background now had a red background.
Note. I have virtualizing turned on.

I switched off virtualizing  and the command to change the background of the column red did not work at all. Here's the command:

gridname.Columns[<column to turn red>].Background = Brushes.Red;

Any help would be appreciated.

Thanks
Pavel Pavlov
Telerik team
 answered on 19 Jan 2010
1 answer
253 views
Hi,
i need that my last row in grid will be always selected and that the first cell in this row will be in edit mode.
BeginEdit() doesnt work for me becouse my ItemSource is not obserableCollection, its a custom collection:
 public interface ICustomObservableCollection<T> : ICollection<T>, INotifyCollectionChanged, INotifyPropertyChanged  
        where T : EntityBase2, IEntity2  
    { }  
 
    public class CustomObservableCollection<T> : ICustomObservableCollection<T> 
        where T : EntityBase2, IEntity2  
{} 


Thanx

Masha
Milan
Telerik team
 answered on 18 Jan 2010
11 answers
514 views
Hello

I want to search for a value in one of the columns in my grid and then select the row
I used this code to run on the items
foreach (GridViewRowItem griParent in RadGridView1.ChildrenOfType<GridViewRowItem>())  
                    {  
                        if (griParent.DataItem != null)  
                        {  
                            if ((griParent.DataItem as DataRowView).Row["ActivityName"].ToString().Contains(sSearch))  
                            {  
                                gvriParent.Add(griParent);   
                            }           
                        }  
                    }  
..........  
 
if (iParentSearch < gvriParent.Count)  
                {  
                    if ((gvriParent[iParentSearch] as GridViewExpandableRow) == null && ((gvriParent[iParentSearch].ParentOfType<GridViewExpandableRow>()))!=null)  
                    {  
                        ((gvriParent[iParentSearch].ParentOfType<GridViewExpandableRow>())).IsExpanded = true;  
                    }  
                    gvriParent[iParentSearch].IsSelected = true;  
                    this.RadGridView1.BringDataItemIntoView(gvriParent[iParentSearch]);  
                    iParentSearch++;  
                }  
...... 

the problem is
that if there is a scroll in my grid
the "foreach (GridViewRowItem griParent in RadGridView1.ChildrenOfType<GridViewRowItem>())   "
does not get the rows that are not shown in the screen

by the way
I use - this.RadGridView1.BringDataItemIntoView
but it looks like nothing happen

Thanks
Orit
Top achievements
Rank 1
 answered on 18 Jan 2010
5 answers
221 views
Hi
I've been using widly RadGauges in my application, which acts as a monitoring dashboard.
I have found how to create very stylish radial and linear gauges, but I'm not successed in Numeric ones.
How you something like layout examples of Numeric gauges that can be desined (if there will be code - that's would be great :))? (except those ones in demo project).

Maybe some links, or screenshots, or examples - any help in this would be very appreciated.

I'm probably looking for creating 3D-Look Numeric Gauge (already I've made so that the text in gauge has a 3D shadow) - is that possible?

Thanks
Andrey
Telerik team
 answered on 18 Jan 2010
8 answers
1.1K+ views
I'm trying to replace the standard RadPane header with one of my own. I have followed a blog example but can't get it to work. The close button appears when the pane is hidden but when it is visible the default header is shown. What am I doing wrong?

<Window xmlns:my="clr-namespace:WpfTelerikDocking"   
        x:Class="WpfTelerikDocking.MainWindow" 
        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" 
        Title="Docking Test" Height="600" Width="1024"
     
    <DockPanel LastChildFill="True"
         
        <Menu DockPanel.Dock="Top"
            <MenuItem Header="_File"/> 
            <MenuItem Header="_Help"/> 
        </Menu> 
         
        <StatusBar DockPanel.Dock="Bottom"
            <StatusBarItem Margin="5,0,5,0" Content="Status Info"/> 
        </StatusBar> 
         
        <Grid> 
            <telerik:RadDocking Name="radDocking1" HasDocumentHost="False"
                 
                <telerik:RadDocking.Resources> 
                    <DataTemplate x:Key="PaneWithCloseButton_HeaderTemplate"
                        <StackPanel Orientation="Horizontal"
                            <ContentPresenter Content="{Binding}" /> 
                            <Button Content="X" Width="18" Height="18" 
                                /> 
                        </StackPanel> 
                    </DataTemplate> 
                </telerik:RadDocking.Resources> 
 
                <telerik:RadSplitContainer Name="LeftContainer" InitialPosition="DockedLeft"
 
                    <telerik:RadPaneGroup> 
                        <telerik:RadPane Header="PANE" 
                                HeaderTemplate="{StaticResource PaneWithCloseButton_HeaderTemplate}"
                            <TextBlock Text="Text content" /> 
                        </telerik:RadPane> 
                         
                    </telerik:RadPaneGroup> 
 
                </telerik:RadSplitContainer> 
 
                <telerik:RadSplitContainer Name="RightContainer" InitialPosition="DockedRight"
 
                    <telerik:RadPaneGroup> 
                        <telerik:RadPane Header="Map"
                        </telerik:RadPane> 
                    </telerik:RadPaneGroup> 
                     
                </telerik:RadSplitContainer> 
 
            </telerik:RadDocking> 
        </Grid> 
 
    </DockPanel> 
</Window> 
 

Cheers

Steve
Steve Chadbourne
Top achievements
Rank 1
 answered on 17 Jan 2010
0 answers
143 views
Hello,
     I finally figured out how to prevent a user from re-ordering the first column in my grid. 

Here's how I did it:

In the DataLoaded event of my grid I typed in this line (for the first column in grid):
((Telerik.Windows.Controls.GridView.GridViewDataControl)(sender)).Columns[0].IsReorderable = false;

What's kind of strange about this command is that I can't reorder the first column but I can move other columns in front of it. Here's what I did to prevent this problem:

In the  ColumnReordered event of the grid I typed in the following lines of code:

private void ColumnReordered(object sender, GridViewColumnEventArgs e)
        {
            if (e.Column.DisplayIndex == 0)
                for (int i = 1; i < gridname.Columns.Count ; i++)
                    if (e.Column.Header == gridname.Columns[i].Header)
                        e.Column.DisplayIndex = i;
        }

Note. e.Column.DisplayIndex indicates where the user tried to move the column to.

If the user attempts to move a column to the position of the first column, the code above will search for the original location of the column being moved and set e.Column.DisplayIndex  back to it's original value.  Essentially I am moving the column back to its original location.

Jorge Gonzalez
Top achievements
Rank 1
 asked on 15 Jan 2010
0 answers
104 views
Hello,
     I finally figured out how to prevent a user from re-ordering the first column in my grid. 

Here's how I did it:

In the DataLoaded event of my grid I typed in this line (for the first column in grid):
((Telerik.Windows.Controls.GridView.GridViewDataControl)(sender)).Columns[0].IsReorderable = false;

Note. What's kind of strange about this command is that I can't reorder the first column but I can move other columns in front of it.

In the  ColumnReordered event of the grid I typed in the following lines of code:

private void ColumnReordered(object sender, GridViewColumnEventArgs e)
        {
            if (e.Column.DisplayIndex == 0)
                for (int i = 1; i < gridname.Columns.Count ; i++)
                    if (e.Column.Header == gridname.Columns[i].Header)
                        e.Column.DisplayIndex = i;
        }

Note. e.Column.DisplayIndex indicates where the user tried to move the column to.

If the user attempts to move a column to the position of the first column, the code above will search for the original location of the column being moved and set e.Column.DisplayIndex  back to it's original value.  Essentially I am moving the column back to its original location.

Jorge Gonzalez
Top achievements
Rank 1
 asked on 15 Jan 2010
1 answer
184 views
Hi there
Is there any way to get the NumericUpDownControl to work from a custom theme dll?

I have created my own Custom theme for my Telerik control, and have applied it successfully to the Scheduler Control.  Basically i want to style the numeric control so that the borders/arrow etc are my website colours rather than the standard orange. ( i wanted an application default rather than changing the style for each Numeric UpDown Control that i used). 

I assumed it was a similar approach to the Scheduler Theming, i.e. if i altered the NumericUpDown.xaml in the Input folder of Themes, that these changes would be applied to the NumericUpDownControl,  But i have made many colour changes, and none are applied to the control, i always see the default style.

Can anyone help me or point me in the right direction?
Is is possible to apply a custom theme to the NumericUpDownControl?

Thanks
Gillian

Konstantina
Telerik team
 answered on 15 Jan 2010
3 answers
101 views
Hi,

I've been tasting and working with RadControls_for_WPF_2009_3_1208_TRIAL,
And I wanted to know what items telerik going to focus, something like roadmap for 2010.

Any new controls?
Any new features for the current controls?

I've found a few things that in my opinion would be great if it will be in the next version:
1. Printing - print from major controls: grid, scheduler, tree... 
2. Layout control - change view in runtime.
3. Grid View - Card View layout.
4. Grid View - Runtime change layout.
5. Themes for ALL standard controls, not by explicitly set to each control.

Keep on the good work!!

Thanks
Yohai

Nikolay
Telerik team
 answered on 15 Jan 2010
1 answer
108 views
hello,

i am using telerik's datepicket; however, i need time too along with date. but i dont see any control which lets me pick date and time. please advice on how to let user pick date and time.

thank u
sandy
Konstantina
Telerik team
 answered on 15 Jan 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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?