Telerik Forums
UI for WPF Forum
4 answers
633 views
Hi,

I have a grid, that I want to print, but is has to scale to fit the paper. I tried the printing example at http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx, but as my grid is too wide, it prints it on two pages.

So how can I scale the grid to the paper's width, so that the grid is not spread over multiple pages?

Thanks,
L
Vic
Top achievements
Rank 1
Iron
 answered on 22 Jul 2012
2 answers
206 views
Hi there,
I have bound the ItemsSource property of RadTileView to an ObservableCollection containing items with INotifyPropertyChanged interface implementation, and also I am using a ContentTemplateSelector that determines the template for the content of TileViewItems based on a property of the corresponding item named "Template".
The first time the RadTileView loads, it calls the template selector and sets the templates correctly, but if I change the "Template" property of any item in items source bound collection, the RadTileView does not call the template selector to determine the appropriate template again. It needs to set the ItemsSource of the RadTileView again to reflect the changes.
Is ther any solution to avoid setting the ItemsSource property every time I change the "Template" property of bound items?
Thanks
M
Top achievements
Rank 1
 answered on 21 Jul 2012
3 answers
153 views
Hi,
I had implemented the search as you type feature for gridview using CustomFilterDescriptor.
I followed the demo example.
after entering first search letter my grid will become empty. Even no exceptions are thrown.
I had debugged the whole code and cross checked with demo example.I could't find any problem.

What could be the possible problems while implementing search as type feature ?
Any suggestions ?

Thanks and Regards
Naresh Mesineni



Tim
Top achievements
Rank 1
 answered on 21 Jul 2012
1 answer
286 views
Just uninstalled all Telerik controls and installed the Control Panel. After downloading the latest version of WPF controls VS 2010 Extension Manager informs me an update is available. The version from the Control Panel is 2012.2.606.0, the VS Extensions version available is 2012.2.709.0.

Will the Control Panel eventually update? What happens if I let the Extension Manager update?

Thanks.

Update... I've now installed Silverlight and Asp.net Ajax and they are indicating updates as well.
Vesko
Telerik team
 answered on 20 Jul 2012
1 answer
136 views

Hi,

I'm using data bound Commands in my application. I'm using ReadonlyCollections storing the RoutedUICommands bound to ItemsSource of the Menu. This works fine when using the standard WPF context menu. However when i try to use RadContextMenu a NotSupportedException is thrown, saying that CommandConverter cannot convert RoutedUICommand to String. Why would it want do to this conversion anyway?

Any help would be appreciated.

This is the original code using ContextMenu (MyCommandList is of type ReadOnlyCollection<RoutedUICommand>) which is working:

<telerik:RadTreeView.ContextMenu>
<ContextMenu ItemsSource="{Binding Path=MyCommandList}"/>
</telerik:RadTreeView.ContextMenu>

Here is the code with RadContextMenu that is not working:

<telerik:RadContextMenu.ContextMenu>
 <telerik:RadContextMenu ItemsSource="{Binding Path=MyCommandList}"/>
</telerik:RadContextMenu.ContextMenu>

Hristo
Telerik team
 answered on 20 Jul 2012
3 answers
1.1K+ views
Hi,

I am binding the grid with datasource(that contains four tables and datarelation) . When I expand the grids in heirarchy,It takes lots of seconds .Please note that this grid hardly contain only one record at top level.Here is my code:

  <telerik:RadGridView RowIndicatorVisibility="Collapsed" AutoGenerateColumns="True" ItemsSource="{Binding}"
                             ScrollViewer.CanContentScroll="True" Name="radGridView2"  Height="500" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"
                                             LoadingRowDetails="radGridView2_LoadingRowDetails"
                                              RowLoaded="radGridView2_RowLoaded"  DataLoadMode="Asynchronous"
                                             CellLoaded="radGridView2_CellLoaded" Initialized="radGridView2_Initialized" DataLoading="radGridView2_DataLoading" CanUserReorderColumns="False"  VerticalAlignment="Stretch" EnableColumnVirtualization="True" EnableRowVirtualization="True">
                                            </telerik:RadGridView> 

,I have set the height of nested grids at runtime .this is the code behind for that:
  private void radGridView2_DataLoading(object sender, GridViewDataLoadingEventArgs e)
        {
              GridViewDataControl dataControl = (GridViewDataControl) sender;
           
              if (dataControl.ParentRow != null)
              {              
                  dataControl.ShowGroupPanel = false;
                  dataControl.ShowColumnHeaders = false;            
                  dataControl.RowLoaded += new EventHandler<RowLoadedEventArgs>(dataControl_RowLoaded);
                  dataControl.Height = 300;
           
              }
             
        }

Please let me know what is the issue ?

Thanks in Advance
Dimitrina
Telerik team
 answered on 20 Jul 2012
8 answers
388 views
I am facing an issue whereby I have 184 columns and I just bind to 10 of those. The rest exist in the background and are not shown on the UI. I have noticed that when I switch from a certain element to another in order to populate the data grid with the respective information of the corresponding element the performance is really slow. I have also fixed the width and height of the data grid, therefore it doesn't seem that there's any issue with respect to the telerik data grid drawing out infinite dimensions. Any insight and suggestions about improving the performance of the radgridview would be really helpful. 

PS: Would it be possible to do a live web session with you guys since if things don't work for us, our clients are getting impatient and we might replace the telerik grid view with the default wpf grid control.

Code Snippet:

<Grid HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>
         
        <!--ListBox ItemsSource="{Binding Path=PdsTrancheResults,
            Converter={StaticResource RowTemplateConverter}}"
                 ItemTemplate="{StaticResource RowTemplate}"
                  
                 >
             
        </ListBox>-->
 
        <!--<DataGrid ItemsSource="{Binding Path=PdsTrancheResults, Converter={StaticResource RowTemplateConverter}}"
                  AutoGenerateColumns="True"/>-->
        <telerik:RadGridView IsFilteringAllowed="False" Grid.Row="1"
                                     x:Name="ResultOutPutGrid"
                                     HorizontalAlignment="Stretch"                           
                                     IsReadOnly="True"                                    
                                     ItemsSource="{Binding Path=PdsTrancheResults, IsAsync=True}"                            
                                     AutoGenerateColumns="False"                                                                                                                                           
                                     AlternationCount="2"                                   
                                     EnableRowVirtualization="True"                             
                                     EnableColumnVirtualization="True"
                             DataLoadMode="Asynchronous"
                                        MaxWidth="600"
                             MaxHeight="900"
                                     SelectionMode="Extended"                                     
                                     ShowGroupPanel="False"                                      
                                     telerik:StyleManager.Theme="Windows7"
                              
                                     >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Period}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Period" TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Season}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Seasoning"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>               
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Coupon}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Coupon"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Balance}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Balance"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding OrigBalance}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Original Balance"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding MoodysRating}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Moodys Rating"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding AvgOcPct}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Avg Acct Pct"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
    </Grid>
Dimitrina
Telerik team
 answered on 20 Jul 2012
3 answers
293 views
Hi,
I got a serious problem when I using TimeBar with multiple RadLinearSparklines.
data points = 3 x 24 x 60 = 4320.
the movement is too slow.

What's the best way to use TimeBar with multiple lines?


<
Window x:Class="WpfApplication4.MainWindow"
        xmlns:example="clr-namespace:WpfApplication4"
        Title="MainWindow" Height="350" Width="1024">
    <Window.DataContext>
        <example:ExampleViewModel StartDate="2012-01-01 00:00:00" EndDate="2012-01-04 00:00:00" />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="AUto"/>
        </Grid.RowDefinitions>
        <telerik:RadTimeBar Margin="6" VerticalAlignment="Top"  telerik:StyleManager.Theme="Metro"
                            PeriodStart="2012-01-01 00:00:00"         PeriodEnd="2012-01-04 00:00:00"
                            VisiblePeriodStart="2012-01-01 00:00:00" VisiblePeriodEnd="2012-01-01 06:00:00"
                            SelectionStart="2012-01-01 02:00:00"     SelectionEnd="2012-01-01 03:00:00"
                            MinSelectionRange="00:01:00"
                            IsSnapToIntervalEnabled="False"
                            FontSize="9"
                            SelectionTitleFormatString="{}{0:yyyy'-'MM'-'dd HH':'mm':'ss} - {1:yyyy'-'MM'-'dd HH':'mm':'ss}">
            <telerik:RadTimeBar.Intervals>
                <telerik:DayInterval />
                <telerik:HourInterval  IntervalSpans="1,6,12,20" />
                <telerik:MinuteInterval IntervalSpans="1,10,15,30" />
            </telerik:RadTimeBar.Intervals>
            <StackPanel>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Red" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Blue" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Green" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8"  LineStroke="Cyan" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Brown" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Magenta"/>
                <Border Height="1" Background="LightGray"/>
            </StackPanel>
        </telerik:RadTimeBar>
    </Grid>
</Window>



Tsvetie
Telerik team
 answered on 20 Jul 2012
4 answers
277 views
Hi guys,

I have described my problem with hosting a Win32 OSG (built on OpenGL) control in RadDocking for WPF here:
http://stackoverflow.com/questions/10544938/hosting-a-win32-window-in-a-wpf-floating-tear-off-tab

Do you have any ideas what might cause the problem?

Thanks,
Seth
Miroslav Nedyalkov
Telerik team
 answered on 20 Jul 2012
3 answers
219 views
Hello,
On my window I have RadGridView, and defained default key events:
Escape : close window
Enter    : try commit data and close window
The problem is, when somebody open filter control, try enter value to it and press Enter key to apply filter.
It cause commit and close event on my window. How to handle key events on filter control, and disable routing to my window, when filter control is open??
 
Rossen Hristov
Telerik team
 answered on 20 Jul 2012
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?