Telerik Forums
UI for WPF Forum
4 answers
416 views
In reviewing the post How do i make a label inside a gauge? it appears that the code sample may be for a previous version of the Gauge?

The sample does appear to sort of work by importing the 
clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge
namespace. However, the label location is always at the top left of the UserControl the RadRadialGauge is contained within.

Is there an updated sample that demonstrates how to use a custom label inside a gauge that will scale when the gauge is resized?

Thanks!
Milena
Telerik team
 answered on 25 Mar 2015
4 answers
235 views
Hello, 
How can all PropertyDefinition groups Collapse/Expand by XAML code or MVVM pattern ? I've tried IsExpanded property set to False but not work.


<telerik:RadPropertyGrid x:Name="propertyGrid1" AutoGenerateBindingPaths="False"
                         Grid.Column="2"
                         Item="{Binding}"
                         LabelColumnWidth="180"
                         AutoGeneratePropertyDefinitions="False" IsGrouped="True">
    <telerik:RadPropertyGrid.PropertyDefinitions>
        <telerik:PropertyDefinition Binding="{Binding bind}" OrderIndex="0" IsExpanded="False"
                                    GroupName="Group1"
                                    DisplayName="Enable"/>
        <telerik:PropertyDefinition GroupName="Group1" OrderIndex="1"
                                    DisplayName="DisplayName1"/>
        <telerik:PropertyDefinition GroupName="Group2" OrderIndex="2"
                                    DisplayName="DisplayName2"/>
        <telerik:PropertyDefinition GroupName="Group3" OrderIndex="3"
                                    DisplayName="DisplayName3" />                       
    </telerik:RadPropertyGrid.PropertyDefinitions>
</telerik:RadPropertyGrid>
Maya
Telerik team
 answered on 25 Mar 2015
5 answers
489 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
323 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
323 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
236 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
48 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
296 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
254 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
406 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?