Telerik Forums
UI for WPF Forum
1 answer
249 views

Hello,

I have problem with setting custom position of rectangle shapes on the diagram using server-side data binding with SQL DataSource.

these are diagram settings:

<telerik:RadDiagram ID="brackets" runat="server" Width="100%" Height="450" BorderWidth="1" BorderColor="#dddddd" DataSourceId="IntegratedDiagramDS" ConnectionDataSourceId="IntegrationDiagramsConnDS"                               OnItemDataBound="brackets_ItemDataBound" EnableViewState="false">                                   
<ClientEvents OnLoad="diagram_load" OnMouseEnter="mouseEnter" OnClick="OnShapeClick" />
<ConnectionDefaultsSettings Editable="false" Selectable="false"></ConnectionDefaultsSettings>
<ShapeDefaultsSettings Editable="false" Selectable="false" Height="40" Width="160">
    <StrokeSettings Width="2" />
</ShapeDefaultsSettings>
<BindingSettings>
     <ShapeSettings
                DataFillColorField="BCGColor"
                DataStrokeColorField="BorderColor"
                DataContentTextField="IntegratedObject"                                           
                DataIdField="FieldTableID"                                           
                DataXField="XVal"
                DataYField="YVal"/>
     <ConnectionSettings                                       
                 DataFromShapeIdField="RelatedID"
                 DataToShapeIdField="FieldTableID"/>
</BindingSettings>
</telerik:RadDiagram>

 

There are no problems with displaying and connections, everything is working fine. since I want to display diagram shapes on custom position (not randomly) I've set DataXField and DataYField to set specific position for each shape, but as a result I have same display as if those attributes are not set. It looks like they are somehow ignored.

Attached files:

  • sample data from DB - samledata.png
  • what I get as a result - defaultPreview.png
    • position on page source - defaultXYValues. As You can see these are default values, starting from position 50,50...

Can someone advice what I'm doing wrong?

Thanks in advance,

Stefan

Peter Milchev
Telerik team
 answered on 01 May 2020
6 answers
1.7K+ views

Hi 

I am binding RadCombobox ItemSource with  IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> type enum Values and SelectedItem with one of the viewModel property of type enum but it is not working.

 

How to bind Radcombobox with Enum Values and property of type Enum as selectedItem.

 

Regards,

Nagasree

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
7 answers
1.2K+ views

I have a problem with my RadGridView not updating when new items are added to the source collection. 

The ItemSource for my RadGridView is bound to a QueryableCollectionView which is created using a Caliburn.Micro BindableCollection e.g. new QueryableCollectionView(myBindableCollection).

I have several filters that I add as FilterDescriptors and CompositeFilterDescriptors to the QueryableCollectionView. And the filters works as they should.

The problem comes when I want to add a new item. The item is added to the BindableCollection and should show up in the RadGridView. However, this does only work when there is no FilterDescriptors on the QueryableCollectionView. 

What I have tried:

1. To NotifyOfPropertyChanged on the QueryableCollectionView 

2. To NotifyOfPropertyChanged on the BindableCollection

3 To run QueryableCollectionView.Refresh()

But none of the above has worked. 

What seems to work though is to remove all the FilterDescriptors and add them back again. Then the new item appears. But it doesn't seem like a good solution.

Is there anything else that I can try?

 

 

 

Martin Ivanov
Telerik team
 answered on 01 May 2020
8 answers
448 views

We have the Problem, that the Users can't Paste Plain Text from Clipboard (Cut out from our old Delphi Win32 Applikation) in the RichTextBox.

If it is RTF or HTML Text it Works, but not with Plain Text, what we are missing ?

As Workaround the User can Cut the Text out in the old Application, paste it e.g. in an new eMail (HTML) Body, Mark it again to put in Clipboard and then they can Paste it in the RichTextBox, but that can't be the way.

In the section 'Clipboard' in the RichText Documentation stands that first the insert try RTF second HTML and third Text, but this doesn't work.

Can you please help me ?

Greetings

T. Schmitz

Martin
Telerik team
 answered on 30 Apr 2020
2 answers
122 views
I have cell and row validation happening on my grid which works fine. But when I have a cell or row that has invalid data, it locks out all my buttons on the window and prohibits the user from clicking them. I suppose that is alright for my 'OK' and 'Apply' buttons because I don't want to submit bad data. But I also have a 'Cancel' button which just closes the form without saving anything. I want that button always enabled even if the GridView is not valid.
John
Top achievements
Rank 1
 answered on 30 Apr 2020
2 answers
170 views

My chart draws a CartesianCustomAnnotation showing an ellipse that is meant to skirt up the curve in my profile line  I bind the annotation's HorizontalValue and VerticalValue properties to the center point of the ellipse.   I've attached an image to show what it looks like.  

The problem is that if my profile curve is gradual, the ellipse gets so big that it the center point is actually outside of the chart axis Minimum/Maximum values.   As soon my annotation's HorizontalValue or VerticalValue is outside the boundaries, the chart stops drawing it at all.  Even if its radius means that it *would*, in fact show up in part on the display (which is what I want).

Is there a way to force the chart to draw my annotation regardless of where its origin lies?

Martin Ivanov
Telerik team
 answered on 29 Apr 2020
0 answers
88 views

Hi,

 

I am using RadScheduleView for WPF. While trying to schedule appointments in the appointment dialog, I would like to get the date displayed as  12 Apr 2020 in date picker . However after setting Display format as Long, it gets displayed as 12 April 2010. I require month to be displayed in 3 letter format and should work in every region. Please suggest. If I set custom format, will it work correct depending on the region.?

 

Thanks,

Divya

Divya
Top achievements
Rank 1
 asked on 29 Apr 2020
4 answers
892 views

Hi to all,

I configured a Listbox with single Group, but if I change a GroupStyle, Group item not longer appears.

my XAML/C# code is this, and I attached a screenshots (where I put a red rectangle, it not shows my value), where I wrong?

01.FastSearchItems = new ObservableCollection<FastSearchItem>();
02.var view = new CollectionViewSource();
03.view.GroupDescriptions.Add(new PropertyGroupDescription(propertyName: "Tipo"));
04.view.Source = FastSearchItems;
05.FastSearchItemsFound = view;
06. 
07.//Add several items
08.FastSearchItems.Add(new FastSearchItem(/*parameter values*/));
09.//[..]
01.<telerik:RadListBox x:Name="FastSearchRadListBox" ItemsSource="{Binding FastSearchItemsFound.View}"
02.                    Grid.Row="2" Width="300" Grid.Column="2"
03.                    MouseDoubleClick="FastSearchRadListBox_MouseDoubleClick"
04.                    VerticalAlignment="Top"
05.                    Height="400" Visibility="{Binding FastSearchIsDropDownOpen,Converter={StaticResource VisibilityConverter}}"
06.                    ScrollViewer.VerticalScrollBarVisibility="Auto"
07.                    ScrollViewer.HorizontalScrollBarVisibility="Disabled">
08.    <telerik:RadListBox.ItemsPanel>
09.        <ItemsPanelTemplate>
10.            <StackPanel Orientation="Vertical" />
11.        </ItemsPanelTemplate>
12.    </telerik:RadListBox.ItemsPanel>
13.    <telerik:RadListBox.ItemTemplate>
14.        <DataTemplate>
15.            <StackPanel>
16.                <TextBlock Text="{Binding Caption}" />
17.            </StackPanel>
18.        </DataTemplate>
19.    </telerik:RadListBox.ItemTemplate>
20.    <telerik:RadListBox.GroupStyle>
21.        <GroupStyle>
22.            <GroupStyle.HeaderTemplate>
23.                <DataTemplate>
24.                    <StackPanel Orientation="Vertical" Background="#FAFAFA">
25.                        <TextBlock Text="{Binding Caption}" FontWeight="Bold"/>
26.                    </StackPanel>
27.                </DataTemplate>
28.            </GroupStyle.HeaderTemplate>
29.        </GroupStyle>
30.    </telerik:RadListBox.GroupStyle>
31.</telerik:RadListBox>
Nicholas
Top achievements
Rank 1
 answered on 29 Apr 2020
1 answer
233 views

Hi, good morning

I'm trying to change the theme to a RadOpenFileDialog, but I can't do it,

I've used these directions:

 Telerik.WinControls.UI.RadOpenFileDialog opfDialog = new Telerik.WinControls.UI.RadOpenFileDialog();
 opfDialog.OpenFileDialogForm.StartPosition = FormStartPosition.CenterScreen;
 opfDialog.OpenFileDialogForm.ThemeName = "Fluent";

StartPosition if it works, but ThemeName doesn't.

Could you help me?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Apr 2020
7 answers
513 views

Hi

currently i'm trying to integrate Intellisense support to rad richtextbox. i was able to display word list when press Ctrl+Space. but could not replace the word. is there any one who try such a thing. i have attached a screen shot which was develop using visual studio richtextbox. can not use that code for RadRichTextBox.

Dimitar
Telerik team
 answered on 29 Apr 2020
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?