Telerik Forums
UI for WPF Forum
1 answer
37 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
336 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
166 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
789 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
183 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
100 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
489 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
135 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
464 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
3 answers
139 views
Hi,

   I am using Redgridview control in my project ,i tried your example http://www.telerik.com/help/wpf/gridview-how-to-create-external-filtering.html ,i done everything but its giveing an error at class "CustomFilterDescriptor"
protected override Expression CreateFilterExpression( ParameterExpression parameterExpression )
   {
       
if ( string.IsNullOrEmpty( this.FilterValue ) )
       {
           
return Expression.Constant( true );
       }
       
return this.compositeFilter.CreateFilterExpression( parameterExpression );<----------here
   }

i am getting error message like this "Source type must be an enumerable type." at Return value

my reqirement when i enter data in textbox,its filter rows in gridview

i need urgent this


please help me out


thanks,
satish

satish
Top achievements
Rank 1
 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
PersistenceFramework
DataPager
Styling
TimeBar
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?