Telerik Forums
UI for WPF Forum
6 answers
299 views
We have several paged grids that should hold many records.  I am doing a test for a grid to hold our 2 million invoice records.  At first I was bringing all of the records into memory using a .ToList() on the Linq query that feeds the grid.  That was taking a long time and giving an "out of memory" exception.  Then I read " If you provide IQueryable for QueryableCollectionView  all operations will be executed directly on your data-base server using the query provider".   Again, it is a business requirement that we use paging (page size of 8), so when I bring up the first page, it is fine, and if I page through the first 2 or 3 pages it seems to work pretty well.  However, when I click the "Last Page" button, it takes almost 30 seconds (and I have even seen it time out several times).  That seemed funny to me, so I wrote a SQL query that essentially does the same thing as going to the last page, and it took less than a second. 

So, my first question is ... Can I get hold of the actual T-SQL that it is running on my database?

My 2nd question is ... Can I somehow optimize this query to run faster?
Dimitrina
Telerik team
 answered on 24 Mar 2015
2 answers
74 views
Hello,

I use InsertAnnotationRange for add CustomAnnotationRange to my document and after want to get CustomAnnotationRange associated document from on of its methods. How can I do it? 
I have some trouble with GetRootDocument method. It sometimes returns null. I tryed call editor.UpdateEditorLayout() but nothing has changed.

Thanks in advance.

Alexander
Top achievements
Rank 1
 answered on 24 Mar 2015
3 answers
341 views
I am setting the Path Property in my code. I have found that  It is not accepting the  value I set.

I picking up the values directly from the TreeView Control. 

How can I validate the value before I set it?

  
  private void onJobBreadcrumbCurrentItemChanged(object sender, Telerik.Windows.RadRoutedEventArgs e)<br>    {<br>      this._radTreeView.BringPathIntoView(this.jobBreadcrumb.Path);<br>      this._radTreeView.SelectedItem = this.jobBreadcrumb.CurrentItem;<br>    }<br><br>    private void onJobTreeSelectionChanged(object sender, SelectionChangedEventArgs e)<br>    {<br>      if (e.AddedItems.Count > 0 && this._radTreeView.ContainerFromItemRecursive(e.AddedItems[0]) != null)<br>      {<br>        var path =  this._radTreeView.ContainerFromItemRecursive(e.AddedItems[0]).FullPath;<br>        this.jobBreadcrumb.Path = path;<br>      }<br>    }

 
  
  <telerik:RadBreadcrumb x:Name="jobBreadcrumb"<br>                               HorizontalAlignment="Stretch" <br>                               VerticalAlignment="Top" <br>                                  Grid.Row="0"<br>                                   CurrentItemChanged="onJobBreadcrumbCurrentItemChanged"<br>                                 IsTextModeEnabled="False"<br>                               Header="{Binding CurrentBid.Text}"<br>                               ImagePath="ImageSource"<br>                               IsIconVisible="True"<br>                                ItemContainerStyleSelector="{StaticResource JobTreeItemStyleSelector}"<br>                               ItemsSource="{Binding CurrentBid.Scenarios}"><br>    </telerik:RadBreadcrumb><br><br><br><br>  <telerik:RadTreeView  <br>                          x:Name="jobTreeView" <br>                          ItemsSource="{Binding CurrentBid.Scenarios}" <br>                          ItemTemplateSelector="{StaticResource JobTreeItemTemplateSelector}" <br>                          IsDragDropEnabled="True" <br>                          telerik:TextSearch.TextPath="Text"<br>                          Grid.Row="1"><br>    </telerik:RadTreeView> <br>

Assuming, 
Bassam
Top achievements
Rank 1
 answered on 24 Mar 2015
3 answers
298 views
I have created a simple grid that has group header rows following the Aggregates example.

<Style TargetType="telerik:GroupHeaderRow">               
  <
Setter Property="ShowGroupHeaderColumnAggregates" Value="True" />               
  <
Setter Property="ShowHeaderAggregates" Value="False" />           
</
Style>

Now the issue I have is that I want my users to be able to select the cells in this grid and paste them into Excel.  The issue is that I can select, copy and paste the regular data rows fine but I can't select the cells with the aggregate data.  Is there a way to make the aggregate rows selectable?


Stefan
Telerik team
 answered on 24 Mar 2015
3 answers
442 views
Right now I have the ShowColumnFooters option set to "True" on my RadGridView.  It is showing totals for various columns as expected in a special row at the bottom.  How do I move this row to the top of the grid just below the column headers row?  

Thanks
Ryan
Vanya Pavlova
Telerik team
 answered on 24 Mar 2015
3 answers
145 views
Hi,

I'm using Telerik version 2015.1.225.40 and I have a question regarding a rendering speed issue. In my ScheduleView, I display from monday to friday, from 8h00AM to 9h00PM with a MinorTickLength of 15 min. I receive multiple appointments from a database. For each appointment I receive, I have to display it in the ScheduleView and each appointment contain a UserControl. After that, I have to fill the rest of the grid with SpecialSlots and each Special Slot contain also a UserControl. All UserControls for the appointments and the SpecialSlots contain a border and when a user click on a cell, I need to change the color of the border and I need an interaction with the UserControl.

To fill all the grid, the rendering take between 500ms and 700ms each time and I would like to know if it's possible to reduce the rendering time?!?

Thank's
Alain
George
Telerik team
 answered on 24 Mar 2015
1 answer
140 views
Hi,

I want to implement something like TileView that has multiple maximized items.
The ways we get multiple maximized are:
1. Dragging minimized item to maximized items area.
2. Clicking on the "All" button that shows all the items in the maximized area, with eqaul space for every item.
(Concept attached)

I'd like to mention that the minimzed items list (which will be located at the bottom) shouldn't remove the dragged and dropped item.
Any item from the maximized area should be removed by 'X' button (and will stay at the minimized items list at the buttom).

I tried to define RadTileView as the content template in order to enable the re-ordering by dragging behavior, and because it's already handling the equal space allocation for the items.


<Grid>
        <Grid.Resources>
            <Style TargetType="telerik:RadTileViewItem">
                <Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />
            </Style>
        </Grid.Resources>
 
        <telerik:RadTileView x:Name="tileView1" BorderBrush="#6BC6FF" BorderThickness="2" Margin="10"  MinimizedItemsPosition="Bottom" MaximizeMode="ZeroOrOne">
            <i:Interaction.Behaviors>
                <behaviors:TileViewItemDropBehavior/>
                <behaviors:TileViewItemDragBehavior/>
            </i:Interaction.Behaviors>
            <telerik:RadTileView.ContentTemplate>
                <DataTemplate>
                    <telerik:RadTileView BorderBrush="#6BC6FF" BorderThickness="2" Margin="10">
                        <i:Interaction.Behaviors>
                            <behaviors:TileViewItemDropBehavior/>
                            <behaviors:TileViewItemDragBehavior/>
                        </i:Interaction.Behaviors>
                    </telerik:RadTileView>
                </DataTemplate>
            </telerik:RadTileView.ContentTemplate>
             
        </telerik:RadTileView>
        </Grid>



Is there an out-of-the-box solution for my needs?
Am I in the right way, or what I'm tryind to do is overkill (TileGridView as ContentTemplate)?
Maybe I should do something like that: Define one and only fixed maximixed item that it's ContentTemplate will be RadTileView (or maybe RadDocking) and override its header style to be empty (we will set the Template property with empty ControlTemplate)? 


Thanks for your support!
Pavel R. Pavlov
Telerik team
 answered on 24 Mar 2015
1 answer
99 views
Our application involves the DragAndDrop of items from a Grid (inside a RadOutlookBar) into a RadTreeView. DragAndDrop is also allowed within the RadTreeView. However a certain set of code is executed only when the item is dragged from the Grid and not within the RadTreeView and the only way we can figure out when to execute said code is to find out where the drag is performed from (drag source). Such is the code structure and can't be tweaked much. I was wondering if there was a way to figure the drag source. 
TIA,
Deepika
Pavel R. Pavlov
Telerik team
 answered on 24 Mar 2015
3 answers
89 views
Hi ! 
I am implementing  gridview cell merge with UI For WPF Q1 2014 SP1 in WPF Application.
 
 but  there is no cell merge function in UI For WPF Q1 2014 SP1 version.
 ( there is cell merge function in UI For WPF Q3 2014)
 
 Unfortunately, our telerik product license was expired at last year(2014) in May
 
 Please, What is the solution of  this problem ?
 Could you give me references of gridview cell merge function?
 
I will be waiting your hopeful answer.
Thank you very much.
JUNGGON
Top achievements
Rank 1
 answered on 24 Mar 2015
4 answers
701 views
Hello,

I am using a ToolTip Template to show some information related to the items in a Timeline control.

I'd like to increase the amount of time that a tooltip remains visible, I am using the property ToolTipService.ShowDuration but when I change its value it seems it doesn't have effect on the time that the tooltip remains visible.

Is there a way achieve this?

Thanks,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 23 Mar 2015
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?