Telerik Forums
UI for WPF Forum
2 answers
212 views
Hi,

I have a GridView with RowDetailsVisibilityMode set to "VisibleWhenSelected" and a RowDetailsTemplate in which I put a DataTemplate with a Grid panel. In this Grid I have several Buttons for row actions.

Whenever I select a line in code and then use ScrollIntoView for the selected Item (which is mostly not in view and at the bottom of the list), the row is indeed scrolled into view. But not the complete row details (which are expanded due to RowDetailsVisibilityMode ); only the "upper" part (the selected line) is visible and not my buttons. They are still down below.

I expect ScrollIntoView brings the complete line including row details into view.

Tested with RadControls 2010.3.1110.40

Greetings,
Daniel
Sergej Mertens
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
57 views
I'm using RadControls_for_WPF35_2010_3_1314_Dev in VS.NET 2010.

When I drop a SplitContainer in brand new empty Window, I get one of two errors (it seems to randomly do one or the other):

Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown

or

Value cannot be null
Parameter name: viewItem is null

The latter error shows twice in the same message box. Once like that and a second time in quotes.

Any ideas?

George
Telerik team
 answered on 21 Feb 2011
18 answers
365 views
Dear Telerik Users

Improving our Plugin we "trying" to make use of the wpf Treegridview Object.
Problem is, that VS 2008 during  InitializeComponent();   always comes up with the following "XamlParse Exception"
****
'/Telerik.Windows.Controls.GridView;component/themes/office/black/GridViewToggleButton.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls.GridView;component/Themes/GenericOfficeBlack.xaml'.
****
The Gridview (Treegridview) is placed inside a normal grid in xaml:

<telerik:RadTreeListView Margin="20,12,12,46" Name="radTreeListView1" telerikControls:Theming.Theme="Windows7" />
The containing WPF - Window is launched like this:

 

 

Window1 gridViewWPFWindow = new Window1();
var WPF = new System.Windows.Interop.WindowInteropHelper(gridViewWPFWindow);
WPF.Owner = Application.DocumentManager.MdiActiveDocument.Window.Handle;
gridViewWPFWindow.Show();

It's a pity as the WPF RadTreegridview would be the perfect fit for an application we've been developing until recently in Windows Forms.
Thank you for your help.

Markus



Iftakhar
Top achievements
Rank 1
 answered on 20 Feb 2011
0 answers
190 views
Hello,
Does someone can help with reading and writing filestream file from the database. How to do it with the Telerik controls? Which control to use?
Huremagic
Top achievements
Rank 1
 asked on 18 Feb 2011
6 answers
835 views
Hi ,

I am using Telerik, Q3 2010, blend 4 vs 2010.
i am using RadGridview, i have 10 columns, in the header i have toggle button for all 10 columns, how can i know which column is checked and on checked i want to select all the cell checkbox in that particular coloumn
please check the attached image.

thanks
sarag
sarag
Top achievements
Rank 1
 answered on 18 Feb 2011
2 answers
209 views
Hi,

I have a RadGridView and need to provide a keyboard short cut to allow the user to change the sort order using the keyboard.

How would you suggest, for example, the best method to set a keyboard shortcut of alt+N to change the sort for the Name column, i.e. mimic clicking on the column header.

Here is a small sample:

<telerik:RadGridView x:Name="mygridView" 
                     ItemsSource="{Binding MyItemsView}"
                     SelectedItem="{Binding MySelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                     IsSynchronizedWithCurrentItem="True"
                     SelectionMode="Single"
                     SelectionUnit="FullRow"
                     AutoGenerateColumns="False" 
                     IsReadOnly="True"
                     IsFilteringAllowed="False"
                     ShowGroupFooters="False"
                     ShowGroupPanel="False"
                     EnableRowVirtualization="True">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Number" DataMemberBinding="{Binding Number}" IsSortable="True" Width="Auto" IsGroupable="False" />
        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsSortable="True" Width="*"  IsGroupable="False" />
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.SortDescriptors>
        <telerik:SortDescriptor Member="Name" SortDirection="Ascending" />
    </telerik:RadGridView.SortDescriptors>
</telerik:RadGridView>

 

 

 

Thanks,

Andy

Ivan Ivanov
Telerik team
 answered on 18 Feb 2011
4 answers
129 views
How can i select the row just inserted if the gridview has a pager?

How to know which page the inserted row will be placed?

Thanks

Gilberto

Milan
Telerik team
 answered on 18 Feb 2011
6 answers
529 views
Hi all,

in my current project i have some loosely coupled modules. Let´s say in module A we have a RadGridView with a region to extend the context menu.

        <telerik:RadGridView x:Name="radGridView" IsReadOnly="True" AutoGenerateColumns="False" ShowGroupPanel="false" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding States}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
             
            <!-- CONTEXTMENU -->
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="MachineStateContextMenu"  cal:RegionManager.RegionName="MachineStateContextMenu" Opened="RadContextMenu_Opened">
                    <telerik:RadMenuItem Header="Export" Click="RadMenuItem_Click">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/Joma.Workbench.Core;component/Images/page_excel.png" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem IsSeparator="True"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
</telerik:RadGridView>

A other module (let`s call it B) extends region `MachineStateContextMenu` with one or more Items bound with commands.

<StackPanel>
    <telerik:RadMenuItem Header="Machinehistory" Command="{Binding MachineHistoryCommand}" />
</StackPanel>


How can i get the current slected row when `MachineHistoryCommand` is executed? My only idea at the moment is to fire an event via the eventaggregator to inform other modules about a changed selected row.

Are there any approaches that are more reasonable?

Greetings

Ralf
Maya
Telerik team
 answered on 18 Feb 2011
3 answers
170 views
WPF does it support Reflection... silver light does it. I tried to find in wpf control but i couldn't ... Is there one?
Petar Mladenov
Telerik team
 answered on 18 Feb 2011
7 answers
497 views
Hi
I am binding 800000 records to the radgridvew control and one way of doing is as follows as normally.

List<Company> companyList = new List<Company>();
for (int i = 0; i < 800000; i++)
{
    companyList.Add(
        new Company()
        {
            Id = i,
            Name = "test name " + i,
            Address = "test address " + i,
            Revenue = 88888888,
            BusinessAres = "test area " + i,
        });
}
radGridView1.ItemsSource = companyList;

So with Q3 I try to optimize the performance like below.

List<Company> companyList = new List<Company>();
for (int i = 0; i < 800000; i++)
{
    companyList.Add(
        new Company()
        {
            Id = i,
            Name = "test name " + i,
            Address = "test address " + i,
            Revenue = 88888888,
            BusinessAres = "test area " + i,
        });
}
 
var viewList = new VirtualQueryableCollectionView(companyList) { LoadSize = 10 };           
radGridView1.DataContext= viewList;

my xaml code is like this

<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="Window_Loaded">
    <Grid>
        <telerik:RadGridView HorizontalAlignment="Stretch"
                             Margin="0,43,0,0"
                             Name="radGridView1"
                             ItemsSource="{Binding}"
                              
                             VerticalAlignment="Stretch" />
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="23,12,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
    </Grid>
</Window>

this increases the rendering speed little but I am still looking something better. So if anyone can suggest a way please reply. Thanks in advance.

Nishan
 
Sam Ur
Top achievements
Rank 2
 answered on 18 Feb 2011
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?