Telerik Forums
UI for WPF Forum
1 answer
58 views
Is it possible to use StyleSelector with RadDiagramContainerShape? When I try to add container shape I get an exception that the TargetType does not match RadDiagramShape. How can I go around this? 
Martin Ivanov
Telerik team
 answered on 04 Oct 2018
2 answers
132 views

There seems to be a problem with the column creation, when the ItemsSource is empty when the GridView is loaded.

My scenario is simlar to the xaml-sdk-master\GridView\BindingToICustomTypeDescriptor sample. But it can happen, that the ItemsSource contains no items, when the grid is loaded. When the items arrive later, the columns are not build up correctly.

- When AutoGenerateColumns is used, no columns will appear.

- When I create the columns in code (AutoGenerateColumns is set to false and GridViewDataColumns are created and added before the grid is loaded) the columns are shown and the data is displayed, but I am not able to sort or filter the data.

Only when at least one item exits in the ItemsSource when the Grid becomes visible, the grid works as expected. Is there something I have to do, when the first item is available?

Martin Ivanov
Telerik team
 answered on 04 Oct 2018
2 answers
88 views

Following your documentation Binding to Dynamic Data there is a code which shows how to bind dynamic object properties like "ID" and "Name" to column:

dynamic item = new MyDataRow();
item["ID"] = i;
item["Name"] = "Name " + i.ToString();
items.Add(item);     
Dilyan Traykov
Telerik team
 answered on 03 Oct 2018
1 answer
108 views

Hi,
I faced the issue with missing header row for all GridView contols within the app. Pretty much all of the grids have it's own style. Some of GridViews shares GridView header row style. I made some changes on one of the header row styles (some color changes, borders etc, something that should not affect on row visibility) but suddenly, all the GridViews in the app have header row missing.

I went through all GridView controls and set specific property for header row/column visibility but no effect. Any ideas?

Note: recently I updated Telerik dlls to the latest one.Also, I revert changes in the styles to the old one (when it was working fine) but no effect.

Dilyan Traykov
Telerik team
 answered on 03 Oct 2018
0 answers
76 views

Hello,

I've had no problem dragging from other containers to a RadDiagram control. But am stuck on how to drag back and forth between two RadDiagram controls. Do you have any sample code or suggestion for how to accomplish this?

Thanks in advance,

Scott

Scott
Top achievements
Rank 1
 asked on 02 Oct 2018
1 answer
273 views

I've just downloaded the Documentation and APiReference help files. However when I open them on my computer (which uses 200% scaling) they are unreadable with tiny text.  

Can someone tell the author(s) of these files to make them DPI aware? We're using Help&Manual for our own stuff and afaik it's just 1 setting in the .HHP file. Set the 'Font Size Encoding' to Pixels (not Points). I could be wrong on the exact setting but as said: our own Help files display fine and yours don't.

For now I found a trick to circumvent it but it's cumbersome and unneeded. The trick: copy HH.exe to a user folder. Set DPI compatibility for hh.exe to System(enhanced), then create shortcuts to the help files to use the compatible hh.exe)

A small change, a world of difference.

Jurgen

Dilyan Traykov
Telerik team
 answered on 02 Oct 2018
10 answers
585 views

Hi,

Short version of question:
What is the best way to enforce unique value in a column in an MVVM environment?

Long version of question:
I’m trying to enforce a unique value in a column using a custom attribute in the data model. I ended up with a solution very much like the last example in the old thread
https://www.telerik.com/forums/force-validation-on-new-record-insert

Direct link to the example provided by Telerik:
https://www.telerik.com/clientsfiles/375715_328546-TestApp-new.zip

However I see some problem with a solution like that.
At a first glance, the solution seems to work, but if you edit a value in a cell and the new value is the same as another cell in the same column, BOTH these cells would have an error. Not just the cell you edited.

I understand that not all cells can be validated whenever a single cell is edited, but is there any way to configure the RadGridView to “refresh” validations of all visible rows when a validation error is either set or removed?

Steps to visualize the problem.

  • Run the example above
  • When the application is running, reduce the window height (from the bottom) so that the scroll bar is visible and the top visible row shows “last name”=”Rockhead 0” and the bottom visible row shows “Rockhead 4”
  • Change last name “Smith 3” to “Smith 1”
  • Now there is a red border around the cell we edited (as expected) but nothing happens to row 2 (First name=Jane1)
  • Scroll to the bottom and back up to the top
  • Now there is also an error on row 2 (First name = Jane1)
  • Change “Smith 1” back to “Smith 3” (on the row where First name=Jane 3)
  • The error on the cell edited is now removed, BUT the error on row 2 (Jane 1) is still visible even as all values in the Last name column is now unique

 

So is there a way to prevent validation on cells when scrolling and as a result the error on row 2 will never be shown?
OR
Is there a way to force re-validation of all visible cells whenever the error-state changes in a cell?

 

I upgraded the example Project above to use version 2018.3.911, but the problem still exists.

Regards
/Stefan Vestin

Stefan
Top achievements
Rank 1
 answered on 02 Oct 2018
32 answers
298 views
Has anyone  got an example or tutorial of using SQL Tables to store Gantt View information?
Martin Ivanov
Telerik team
 answered on 02 Oct 2018
3 answers
149 views

Hi everyone,

I would like to customize the AppointmentDialog and the RecurrenceDialog in same time but I have a problem.

So, I made in two ResourceDictionary a ControlTemplate foreach Dialog.

  • <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerik:SchedulerDialog">...</ControlTemplate >
  • <ControlTemplate x:Key="EditRecurrenceTemplate" TargetType="telerik:SchedulerDialog">...</ControlTemplate >

After that, I create another ResourceDictionary where I define the Styles :

  •                     <Style BasedOn="{StaticResource EditRecurrenceDialogStyle}" TargetType="telerik:SchedulerDialog" x:Key="EditRecurrenceDialogStyle">
                            <Setter Property="Template" Value="{StaticResource EditRecurrenceTemplate}"/>
                        </Style>
  •                     <Style BasedOn="{StaticResource EditAppointmentDialogStyle}" TargetType="telerik:SchedulerDialog" x:Key="EditAppointmentDialogStyle">
                            <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}"/>
                        </Style>

Then, in the telerik:RadScheduleView I set the proprieties in the following way :

  •             <telerik:RadScheduleView
                                        ...
                                        AppointmentsSource="{Binding Appointments}"
                                        EditRecurrenceDialogStyle="{StaticResource EditRecurrenceDialogStyle}"
                                        EditAppointmentDialogStyle="{StaticResource EditAppointmentDialogStyle}"
                                        ...>

When I test the styles individually it works. However when I test with both styles define, I have this error:

  • ArgumentException: Item has already been added. Key in dictionary: 'Telerik.Windows.Controls.SchedulerDialog'  Key being added: 'Telerik.Windows.Controls.SchedulerDialog'

How can I fix that ?
Thanks in advance for your help.

Gael
Top achievements
Rank 1
 answered on 01 Oct 2018
9 answers
227 views
I currently provide columns and bar charts with a LinearAxis using a ScatterPointSeries with a custom PointTemplate and SmartLabelStrategy (as suggested in this forum). However, now I need to add functionality for Stacked and Stacked100 bars/columns that are supported by BarSeries.  I would prefer to have less, not more, code just to draw the bars/columns for a LinearAxis.  Are there any plans to support a BarSeries for LinearAxis?  Thanks - Mitch
Dinko | Tech Support Engineer
Telerik team
 answered on 01 Oct 2018
Narrow your results
Selected tags
Tags
+113 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?