Telerik Forums
UI for WPF Forum
1 answer
203 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
478 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
181 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.0K+ 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
115 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
79 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
158 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
86 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
77 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
1 answer
221 views
Hi,

I have downloaded the trial version and would like to purchase the lisence if you can solve my Multiple column combox with header problem.

I need a simple combox with multiple columns say for eg
Name
LastName
Age
in a WPF UserControl and not WPF window please .
 
Now the condition is that I want the headers to be displayed as well when the combobox drops down and opens up and also on selection or say on click of any row or column it should toggle back means combox should close and display the selected items on the combobox.text property.

I have tried couple of ways but can get the header..if i get the header it doesn't toggle back on selection it remains open ..
Can anybody help me on this one please.

was not able to attach code as well as Sample access database for the same.Is there any place else where i can send you the code if you need for refrence.
Konstantina
Telerik team
 answered on 15 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?