Telerik Forums
UI for WPF Forum
5 answers
536 views
I have a RadButton located on a RadGridView in order to delete rows.

I would prefer not to have the button display on each row by default.

Instead, I would like the "Delete" button only be visible when the row has been selected or on row mouse over. 

Is this possible?

Any assistance on this is Much Appreciated!


Vanya Pavlova
Telerik team
 answered on 25 Mar 2015
1 answer
362 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
362 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
293 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
335 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
292 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
440 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
144 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
137 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
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?