Telerik Forums
UI for WPF Forum
1 answer
337 views
I am using a WPF radgridview control to display some data. I am looking for a way to change the background color of a cell during runtime. I see how I can do it when I load data but how can I do it after the data is loaded?  I have some code that gets executed after some input from the user and I need to change some cells background color based on the users input. Ex: Row 3 , cell 5.
Dimitrina
Telerik team
 answered on 25 Mar 2015
8 answers
331 views
i have wpf tileview.

i am binding list of usercontrols as a itemsource to tileview

like below
<radtileview itemsource="{binding viewelements,mode=twoway}"/>

here viewelement is just usercontrol.

and i am binding list of viewelements.

what features i have to enable for tileview to provide drag and drop feature.

please try to provide the solution asap.
sai
Top achievements
Rank 1
 answered on 25 Mar 2015
6 answers
250 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
55 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
309 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
262 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
413 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
105 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
118 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
78 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
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?