Telerik Forums
UI for WPF Forum
3 answers
887 views
I want to round the corners on a RadComboBox, but I don't want to go through and edit the template for it. Is there way to do that without going through the hassle of doing that? Potentially just using a setter property or something to do it on the xaml side?

thanks.
Nasko
Telerik team
 answered on 10 Mar 2015
4 answers
323 views
Hello,

I have a RadGridView, it has 7 columns with boolean data. I want to disable each cell with a true value.

I created a style and a converter, I add the style at runtime using the grid DataLoaded event:

<Style x:Key="myCellStyle" TargetType="{x:Type telerik:GridViewCell}">
            <Setter Property="IsEnabled" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource myConverter}}" />
        </Style>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            GridViewCell cell = (GridViewCell)value;

            if(cell.Value == null)
                return true;
            else
                return (bool)cell.Value;
        }

private void grid_DataLoaded(object sender, EventArgs e)
        {
            foreach (Telerik.Windows.Controls.GridViewColumn col in gridCheck.Columns)
            {
                    col.CellStyle = (Style)this.Resources["myCellStyle"];
                
            }
        }

In the converter I get a GridViewCell object in the value parameter, but the GridViewCell.Value property is always null.

How can I pass the value of the cell to the converter?

Thanks in advance,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 09 Mar 2015
2 answers
209 views
I have a spreadsheet control I am going to use for data input.  Some cells will need data validation which will pop up a message about the error, and put the red circle around it.  I have the spreadsheet control on the form and set my Imports statements, I do not have a ribbon bar on the form.  We do not want to allow the users to change the form, just input data.  When I put in the following line:

Dim context as new NumberDataValidationRuleContext...

I get type not defined.  I will need to apply different rule types to different cells, some whole numbers, some decimals, some letters all with ranges. For example 8-12 for hole numbers, .5-3.0 for decimal, A-B for letters. 

I looked through the documentation and must have missed something.  How do I apply Validation to cells to ensure they are within the ranges?
John
Top achievements
Rank 1
 answered on 09 Mar 2015
4 answers
92 views
Hello,

I am trying to add some control to the pane header, I saw this documentation about that, it seems that it's not very complicated using the TitleTemplate property.
The difference in my project is that I am creating the RadPane at runtime. Is it possible to programatically add a control to the pane header? Also I would like to add events to that control.

Thanks in advance,

Alberto 



 
Amige
Top achievements
Rank 1
Veteran
 answered on 09 Mar 2015
1 answer
311 views
I just updated to version 2015.1.225.45 and now I get these error messages:

The type reference cannot find a public type named 'PickerTextBox'. Line 2096 Position 74. D:\Source\WPFPartsCatalogUpload\WPFPartsCatalogUpload\Themes\Telerik.Windows.Controls.xaml 

 The name "RadRangeControl" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls". D:\Source\WPFPartsCatalogUpload\WPFPartsCatalogUpload\Themes\Telerik.Windows.Controls.xaml


I don't use either of these controls in my application. The errors are showing up in the dll's XML;  Telerik.Windows.Controls.xaml


Any clues on how to resolve this are greatly appreciated! 
jen
Top achievements
Rank 1
 answered on 09 Mar 2015
3 answers
125 views
Hello,

I have a RadTabControl. Inside every tab there is a UserControl with RadGridView. I want to add a RadDropDownButton with Column Chooser for the GridViews. Like this: http://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/show-hide-columns-outside-of-the-radgridview.html I tried placing it in RadGridView.ControlPanelItems and everything works fine, but it takes a whole row for just one control. Can I put it in RadTabControl.AdditionalContent? How should I bind the Columns property right?
Pavel R. Pavlov
Telerik team
 answered on 09 Mar 2015
9 answers
351 views
I have a RadGridView with SelectionMode="Extended". The bound items have an IsEnabled property, and the rows are enabled or disabled using this property by modifying the style as follows:

    <uxt:UxtWindow.Resources>
        <Style TargetType="{x:Type telerik:GridViewRow}" BasedOn="{StaticResource GridViewRowStyle}">
            <Setter Property="IsEnabled" Value="{Binding Path=IsEnabled}"/>
        </Style>
    </uxt:UxtWindow.Resources>

This is fine in so far as the disabled rows are correctly displayed greyed-out, if I click on a disabled row it is not selected and if I click on a disabled row with Control held down it is also not selected. The problem is that if I click on a row above a disabled row, hold down Shift and then click on a row below the disabled row, all the rows between the two clicked-on rows are selected including the disabled row.

Is this a bug and is there anything I can do about it?
Maya
Telerik team
 answered on 09 Mar 2015
5 answers
641 views
How to det selected row Detail i.e i want perform row selected event in which user select row that selected row detail display in textbox so how to get details pls help me

pls help me .............


plsssssssssssssssssssssssssssssssssssss..........
 

as early as possible...
Yoan
Telerik team
 answered on 09 Mar 2015
1 answer
71 views
Hello!

Is there a way to set cell B invalid in cell-A-validation?

For example:
cell A - customer-ID
cell B - country

1. User sets the country (B) to Germany
2. User changes the customer-ID (A) <- this customer-ID does not allow Germany
3. Cell B should now be set invalid

kind regards
Dimitrina
Telerik team
 answered on 09 Mar 2015
1 answer
299 views
Hey all.

I was just playing around with the new Office inspired templates (they look great !), and have a query.
When I set the Windows Theme to high contrast, the Telerik application does not follow suit, which is an issue where accessibility is concerned.

I've attached a screenshot to illustrate my point.
Evgenia
Telerik team
 answered on 09 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?