Telerik Forums
UI for WPF Forum
1 answer
111 views

Hi,

Not sure where to put this issue so general discussion perhaps the best place.

I'm using a MVVM model, with the telerik controls WPF TreeView, WPF GridView, WPF DataForm. 
As a data backend I'm using Entity Framework code first. This mock-up project works really great.

I'm having an issue with filtering the data of the QueryableEntityCollectionView which I use as a source of the WPF GridView and WPF DataForm.
Filtering is defined as FilterDescriptor filterDeleted = new FilterDescriptor("IsDeleted", FilterOperator.IsEqualTo, false); works just fine.

Now I want to filter on a property of a subobject; Person class has a property Club. Club is also a class.
As the FilterDescriptor is not able to filter on FilterDescriptor("Club.Id", FilterOperator.IsEqualTo, 10);
I've added an Additional propertie in the Model

[NotMapped]
[DisplayName("ClubId")]
public int ClubId         
{             
    get             
           {                 
               
return Club == null ? -1 : Club.Id;
           
}
}

Defining a FilterDescriptor FilterDescriptor("ClubId", FilterOperator.IsEqualTo, 10) is not working, result is no records at all.
Testing with for example PersonID instead of ClubId works fine.
I've also have a similar ClubId property for calculating Age of person. Filtering on age doesn't work as well. Seems that members not original referencing to table column are not working?

 

Eric

Eric
Top achievements
Rank 1
 answered on 18 Mar 2016
6 answers
213 views
Hi,

Is it possible to achieve the Self Reference Hierarchy (RadGridView) feature in TreeListView without using list. I mean I have a datatable with the columns like ID, Name, Parent ID, Location, etc.

I have directly binded the DataTable property to the RadGridView like that I have to do with TreeListView to avoid parent child column width, scrolling for child gird, etc.

Please help me to achieve this with TreeListView.

Thanks,
Ramasamy
Stefan Nenchev
Telerik team
 answered on 18 Mar 2016
3 answers
432 views

I'am trying to implement a data validation for the columns in my RadGridView. I would like to validate the data that is loaded into the grid, not the data that is entered by the user into the grid. To to this I've written a ValidationRule which returns a ValidationResult and implemented this rule in the binding of the column:

 

<telerik:GridViewDataColumn Header="Test" >
    <telerik:GridViewDataColumn.DataMemberBinding>
        <Binding Path="MyObject.MyProperty" Converter="{StaticResource TestConverter}" NotifyOnValidationError="True">
            <Binding.ValidationRules>
                <validators:TestValidator ValidatesOnTargetUpdated="True" />
            </Binding.ValidationRules>
        </Binding>
    </telerik:GridViewDataColumn.DataMemberBinding>
</telerik:GridViewDataColumn>

These are the settings I've set on my RadGridView:

<telerik:RadGridView telerik:StyleManager.Theme="Expression_Dark" AutoGenerateColumns="False" CanUserDeleteRows="True" CanUserInsertRows="False" ShowColumnHeaders="True" SelectionMode="Extended" EnableColumnVirtualization="False" RowIndicatorVisibility="Collapsed" RowDetailsVisibilityMode="Collapsed" EditTriggers="None" ClipboardCopyMode="None" ClipboardPasteMode="None">

The ValidationRule is called when loading data into the Grid and a negative ValidationResult is returned, but the error is not displayed in the Grid. What am I doing wrong?

Stefan Nenchev
Telerik team
 answered on 18 Mar 2016
4 answers
254 views
I have a datadormcombobox field in raddataform i have tried to set Items source property binding to Enum ""but it wont load contents from enum.Also if I set autogenerate fields property to true then it  loads enum in combobox.so whats wrong with manual setting?
Eric
Top achievements
Rank 1
 answered on 18 Mar 2016
3 answers
86 views

Hi,

as you can see from the attached images, when i rotate the screen (i am on a surface pro 4 with 200% zoom but it's happening also with 100%) the radwindow (as a mainwindow) does not handle the rotation correctly

please check also the project here https://onedrive.live.com/redir?resid=D2C17D45B1412CBA!114&authkey=!AAkiuRoVn6n7nVo&ithint=file%2czip

the scenario is different if you start the window in landscape or portait mode.

but in both scenario the window can't completely maximize

Georgi
Telerik team
 answered on 17 Mar 2016
2 answers
200 views

Hi,

I have built an application with the Telerik WPF UI which is used to host other application using the Win32 SetParent function. Basically I can use it to host a number of other applications, similar as to how Chrome or Edge works. It works fine: I can host any application inside a number of radpanes. To achieve this, I have a WindowsFormsHost with a Panel on it. I use the Hwnd of the Panel to reparent the window of another process.

However, when I start undocking a pane by dragging it, the reparented window suddenly disappears and the pane is empty. I tried to handle this by listening to the PaneStateChange and PreviewPin events but that is not enough. I need to know that the pane will become undocked so I can park the parented window somewhere else while the pane is made to float. Is there a formal way to achieve this?

Thanks

Guido
Top achievements
Rank 1
 answered on 17 Mar 2016
3 answers
171 views

Hi,

I'm using the RadWindow as MainWindow for my app but when I try to maximize it, the RadWindow only takes half of the screen and buttons are hidden (see screenshot 1 and 2).

I can drag the RadWindow to get its size and buttons back.

This behavior happends also in the Demo application of UI for WPF (as shown in screenshots 3 and 4), so I think about a bug on Windows 10.

Is there any workaround for this issue ?

Regards

Georgi
Telerik team
 answered on 17 Mar 2016
3 answers
319 views

Hello,
I have a RadDocument and want to exchange a specific text against a table with the same HorizontalAlignment and other style properties. i.e.:

some text some text some text some text
some text some text some text some text
             "centered bold text"
some text some text some text some text
some text some text some text some text

(the text "centered bold text" have to exchange against my table withHorizontalAlignment = Center and FontWeight = Bold)

TextRange rt = search.FindAll("centered bold text").First();
document.CaretPosition.MoveToPosition(rt.StartPosition);
document.Selection.AddSelectionStart(rt.StartPosition);
document.Selection.AddSelectionEnd(rt.EndPosition);

How can I get information about the style settings of the text at the CaretPosition?

The insertion of the table isn't without styles works:

RadDocumentEditor editor = new RadDocumentEditor(document);
// How to get the styles
editor.Delete(false);
Table table = GetSomeTelerikTable();
// How to set the style - especially Horizontal alignment for center/right
// table.HorizontalAlignment = RadHorizontalAlignment.Center;
editor.InsertTable(table);
...
// I tried the following for a fixed value of HorizontalAlignment, but this didn't work:
//editor.ChangeTableHorizontalAlignment(RadHorizontalAlignment.Center);
...
document.MeasureAndArrangeInDefaultSize();

How can I set this style properties for my new table?

Thanks a lot

 

Mihail
Telerik team
 answered on 17 Mar 2016
1 answer
154 views
I want to use a busy indicator or progress bar or something to display a spinning wheel and not the rest of the content.  help!
Yana
Telerik team
 answered on 17 Mar 2016
2 answers
255 views
I am trying to provide custom label definition for dynamic line series.I could not set access LabelDefinitions for line series type  inside CategoricalSeriesDescriptor.Style . Can you please suggest how to do it ? 
<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding YourData}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <telerik:CategoricalSeriesDescriptor ItemsSourcePath="YourData" ValuePath="Value" CategoryPath="Category">
                <telerik:CategoricalSeriesDescriptor.Style>
                    <Style TargetType="telerik:LineSeries">
                        <Setter Property="LabelDefinitions">
                            <Setter.Value>
                                <telerik:ChartSeriesLabelDefinition HorizontalAlignment="Center" VerticalAlignment="Center" >
                                    <telerik:ChartSeriesLabelDefinition.Template>
                                        <DataTemplate>
                                            <TextBlock Foreground="DarkBlue" Text="{Binding DataItem.Value}" />
                                        </DataTemplate>
                                    </telerik:ChartSeriesLabelDefinition.Template>
                                </telerik:ChartSeriesLabelDefinition>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:CategoricalSeriesDescriptor.Style>
            </telerik:CategoricalSeriesDescriptor>
        </telerik:ChartSeriesProvider.SeriesDescriptors>
    </telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
Sivakumar
Top achievements
Rank 1
 answered on 17 Mar 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?