Telerik Forums
UI for WPF Forum
3 answers
122 views

We are using a RadDataFilter to let the user create simple filter expressions. How can we modify the Members shown in the combobbox PART_SimpleFilterMemberComboBox?

Assume we filter on a list of employees where the employee class has three properties ID, Name and Age and we only want Name and Age to appear in the
PART_SimpleFilterMemberComboBox?
Dimitrina
Telerik team
 answered on 19 Aug 2014
5 answers
339 views
I got following error while running a coded ui automation against WPF windows application with Telerik control.

Test method XXXX threw exception: System.ArgumentException: The following is not a valid technology name: Telerik.UIA. To search for a control, you must specify a valid technology name.Parameter name: TechnologyName

The code generated by coded UI is like following...

        #region Properties
        public UITestControl UI_caseIdTextBoxEdit
        {
            get
            {
                if ((this.mUI_caseIdTextBoxEdit == null))
                {
                    this.mUI_caseIdTextBoxEdit = new UITestControl(this);
                    #region Search Criteria
                    this.mUI_caseIdTextBoxEdit.TechnologyName = "Telerik.UIA";
                    this.mUI_caseIdTextBoxEdit.SearchProperties[UITestControl.PropertyNames.ControlType] = "Edit";
                    this.mUI_caseIdTextBoxEdit.SearchProperties["AutomationId"] = "_caseIdTextBox";
                    this.mUI_caseIdTextBoxEdit.SearchProperties["HelpText"] = null;
                    this.mUI_caseIdTextBoxEdit.WindowTitles.Add("Glidewell Office");
                    #endregion
                }
                return this.mUI_caseIdTextBoxEdit;
            }
        }

The automation can run on my dev machine but failed to run on test machine without VS.

I copied the Telerik.VisualStudio.TestTools.UITest.Extension.ExtensionsCore.dll together with my automation binaries. Also I installed Telerik UI for WPF and Testing Framework on the test machine. But I still got the same error.






Paul
Top achievements
Rank 1
 answered on 18 Aug 2014
4 answers
307 views

Hi all,

I think i'm missing something obvious...

I want to have some friendly names on my mail merge fields. (namely spaces in the field names)
So i have a class for instance


Public Class someclass
{
<DisplayName("This is the complex description of the field")>
Public property thisfieldnamehasacomplexdescription as string
  
Public property anothercomplexfield as string
  
}


This is the only way i know to get "Friendly" names in the dropdown that is the mail merge.
So the two fields turn up okay as :
"This is the complex description of the field" 
"anothercomplexfield"

but only 
anothercomplexfield  actually populates with data when you do the merge.

Am i going to have to template the raddropdownbutton that holds the mail merge fields?
Is there an example of this somewhere?


Also a sub question. How do i add a scroll bar??

Petya
Telerik team
 answered on 18 Aug 2014
3 answers
94 views
I've a RadGridView in few of my property pages.
The grid works fine, but I have a strange "rectangle" in the middle of the grid that I have no idea where it came from:
It looks like a scroll bar position marker, but it doesn't respond to anything, and it just "floats" there.
If I remove the grid, it is gone as well. 

(image attached)

Here is the grid code (binding names and header were replaced...)

<telerik:RadGridView Name="gdScoreGrid" DockPanel.Dock="Bottom" AutoGenerateColumns="False" IsScrolling="True" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                           IsReadOnly="True"  ClipboardCopyMode ="All" SelectionMode="Extended"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowColumnFooters="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding a}" Header="a" IsEnabled="False">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="aaa:"></telerik:CountFunction>
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aa}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ab}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ac}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ad}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ae}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding af}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ag}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ah}" Header="a a" IsEnabled="False"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aai}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aj}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ak}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding al}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding am}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding an}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ao}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ap}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aq}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ar}" Header="a?" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding as}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding at}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding au}" Header="?a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding av}" DataFormatString="{} {0:dd/MM/yyyy}" Header="ddd" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ax}" Header="a a" IsEnabled="False" />


            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

Any Ideas what might cause this to appear ? 

Ivan Ivanov
Telerik team
 answered on 18 Aug 2014
2 answers
150 views
I'm having a hard time finding an example of a gridview pulling data from a database. I've looked through the SDK, documentation, and google results for hours to no avail. This really should be easier to find as it has to be a very common request. While I'm at it, there should definitely be an example of this in the SDK (if it's already there, it's not obvious).

I want to do something that should be really easy:
1) Use a datagrid to view rows in a database
2) add/modify rows using buttons and another window
3) filter and sort

I found this overview to help explain what should happen, but I have no idea how to actually implement it: http://www.telerik.com/help/wpf/entityframework-overview.html

I don't fully understand all the differences between MVVM, code behind, etc., but the key statement from the link that I want to implement is this: "All operations such as paging, filtering, sorting, and grouping will automatically happen on the server without a single line of code." I'm guessing insert and update operations will require some code, but maybe not.

I have entity 6.1.x, telerik SDK, and an mssql database with example data already setup. I also have a project based on an example in the SDK that compiles and runs with no issues. All of the pieces should be in place, but I'm missing the critical component that explains how to transact data with entity/databases/whatever it's called.
Dimitrina
Telerik team
 answered on 18 Aug 2014
1 answer
182 views
Hi.

I have a RadCartesianChart with ScatterLineSeries like a polygon (closed figure) and i'd like fill result area like on the attached image.  RangeSeries is not suitable for this case. What ChartSeries class is better to use? How implement this feature correctly?

Sorry for my English.

Thanks.

Inna.
Petar Marchev
Telerik team
 answered on 18 Aug 2014
2 answers
300 views
Hi,

I want to show a RowDetails on a RadTreeListView but only when a row is selected AND only on spesifics rows.

So i try to bind the DetailsVisibility like this:

<telerik:RadTreeListView.RowStyle>
<Style TargetType="telerik:TreeListViewRow">
<Setter Property="DetailsVisibility">
<Setter.Value>
                            <MultiBinding Converter="{StaticResource ParameterStepSynchronizeRowDetailsVisibilityConverter}">
                                <Binding Path="HasDetails"></Binding>
                                <Binding Path="GridSelected"></Binding>
                            </MultiBinding>
                        </Setter.Value>
                    </Setter>
<Setter Property="IsSelected" Value="{Binding GridSelected, Mode=OneWayToSource}"></Setter>
</Style>
</telerik:RadTreeListView.RowStyle>

It works fine but when i scroll down until can't see this item and them i go top, i don't know why but when my selection change my converter is never call again.

How can i perform this?

Thank you in advance
Jerome
Top achievements
Rank 1
 answered on 18 Aug 2014
1 answer
145 views
Hi, the GridViewHeaderRow VerticalContentAlignment and VerticalAlignment properties don't seem to work. 

The VerticalContentAlignment and VerticalAlignment have no affect on the grid and the header text always appears aligned to the bottom.

I'm using your Office Black style as a base style and the xaml below.

Can you help me correct this issue please?


            <Style TargetType="telerik:GridViewHeaderRow">
                <Setter Property="Height" Value="18"/>
                <Setter Property="MinHeight" Value="18"/>
                <Setter Property="MaxHeight" Value="18"/>
                <Setter Property="VerticalContentAlignment" Value="Top"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="BorderThickness" Value="0,0,0,0"/>
            </Style>
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
146 views
Is there a way for me to highlight the cell with a background when it's selected?
By default, the row highlight is completely suppressed by setting the background (attached screenshot)

Thanks
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
161 views
Hi!

The new theme "VisualStudio2013" looks nice, but how do I apply it to my application?

Windows8 theme, I just added StyleManager.ApplicationTheme = new Windows8Theme(); before InitializeComponent(); But I cant find this for VisualStudio2013 Theme.

I get the color settings like: VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);

Is there any simple WPF C# example I look at?

Thanks!
Yana
Telerik team
 answered on 18 Aug 2014
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?