Telerik Forums
UI for WPF Forum
1 answer
281 views

How to change the Tooltip width in appointment and make text not wrapping?

Thanks,

-Jacky

 

Vladimir Stoyanov
Telerik team
 answered on 04 Sep 2018
2 answers
112 views

Hello Telerik,

I am getting following exception message: "the calling thread cannot access this object because a different thread owns it".

I have RadDesktopAlertManager inside a separate thread and this error shows up only when DesktopAlert closes itself.

Any idea how to solve it?

Best regards

kourosh

Martin Ivanov
Telerik team
 answered on 04 Sep 2018
7 answers
793 views

My diagram shape have  DropShadowEffect  which is setted by style 

<Style x:Key="SquidShapeStyle"
           TargetType="telerik:RadDiagramShape">     
        <Setter Property="IsResizingEnabled"
                Value="True" />
        <Setter Property="IsManipulationAdornerVisible"
                Value="True" />
  <Setter Property="Focusable"
                Value="True" />
        <Setter Property="MinHeight"
                Value="60" />
        <Setter Property="MinWidth"
                Value="60" />
        <Setter Property="VerticalAlignment"
                Value="Stretch" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />   
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="#595757"
                                  Opacity="0.6"></DropShadowEffect>
            </Setter.Value>
        </Setter>
    </Style>

When operate as follows

1 select several shapes 2 Zoom in the selection bound , 3 unselect the shapes,

sometimes some shape's  DropShadowEffect  is not display,it seems the DropShadowEffect  is covered by the shape

what is the reason for this? thanks

 

 

 

 

 

 

Martin Ivanov
Telerik team
 answered on 03 Sep 2018
1 answer
105 views

I have following code 

when I clicked something form combobox and have error and return value to old value in that case the selected item in combobox is the last selected 

01.public class MyClass
02.{
03.    public int ForeignId
04.    {
05.        get
06.        {
07.            return MyObject.ForeignId;
08.        }
09.         
10.        set
11.        {
12.            int oldValue = MyObject.ForeignId;
13.             
14.            try
15.            {
16.                MyObject.No = Helper.Help(value)
17.            }
18.            catch
19.            {
20.                MyObject.ForeignId = oldValue;
21.            }
22.             
23.            OnPropertyChanged(() => ForeignId);
24.        }
25.    }
26.     
27.    public MyObject MyObject{ getset; }
28.}

 

<telerik:RadComboBox ItemsSource="{Binding ItemList}" DisplayMemberPath="Name" SelectedValuePath="ForeignId"
                     SelectedValue="{Binding ForeignId, Mode=TwoWay, ValidatesOnDataErrors=True, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged}" />

     

Vladimir Stoyanov
Telerik team
 answered on 03 Sep 2018
1 answer
764 views

i want to change spacing between every letter ,like /expand in rtf format ,i can't find way to change that.

so as winform richtexteditor

please support it

 

Tanya
Telerik team
 answered on 03 Sep 2018
4 answers
335 views

I have a customized cell template.

<telerik:GridViewDataColumn Header="Contact" DataMemberBinding="{Binding CustAccountsLocationContact.FirstName}">
    <telerik:GridViewDataColumn.CellTemplate>
         <DataTemplate>
               <TextBox Text="{Binding SomeText, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" />
         </DataTemplate>
   </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

 

Now in Model class SomeText property there is a [required] attribute. Similar this, I created the error template as

<ControlTemplate x:Key="errorTemplate">
    <DockPanel>
        <Border BorderBrush="Red" BorderThickness="1">
            <AdornedElementPlaceholder x:Name="controlWithError"/>
        </Border>
        <TextBlock Foreground="Red" FontSize="20" FontFamily="Segoe UI" Margin="3,0,0,0"  MouseDown="Exclamation_MouseDown"  Tag="{Binding AdornedElement.(Validation.Errors)[0].ErrorContent, ElementName=controlWithError}">!</TextBlock>
    </DockPanel>
</ControlTemplate>

 

However I can not see the error template if validation failed. By the answer on stackoverflow, it seems need  to wrap some template with <AdornerDecorator>

Is it the solution to my case? If so, how to wrap it around telerik control?

Thank you.

Martin
Telerik team
 answered on 03 Sep 2018
1 answer
105 views

Hello,

In the SaveFileDialog, when the user selects "This PC" on the folders tree, the files list doesn't change.

On the windows save file dialog, the list of devices and drives is displayed.

Petar Mladenov
Telerik team
 answered on 03 Sep 2018
1 answer
217 views

Hi,

in the SDK sample, there is a "GridSorting" project which sort on the original collection

How can I implement sorting and filtering using ICollectionView (sort the parent task, and children task also)

The attached is the sample project with basic implementation of sort with ICollectionView, which is not working

 

Thanks and Best regards

Stefan
Telerik team
 answered on 31 Aug 2018
6 answers
678 views
Hello, is it possible to set a MaxLength to the RadNumericUpDown so the user can't input more than the allowed number? (Exactly like the WPF TextBox), I tried the code below but it didn't work since ContentText is readonly:

private

 

void textBoxWidth_KeyDown(object sender, KeyEventArgs e)

 

{

 

    if (textBoxWidth.ContentText.Length > 1)

 

    {

        textBoxWidth.ContentText = 9;

        textBoxWidth.Value = 9;

    }

}

Thanks.

Jayesh
Top achievements
Rank 1
 answered on 31 Aug 2018
3 answers
422 views
Can you explain to me the purpose of creating the lib directory during an upgrade?  This seems to be a new way of operating and it creates havoc with the projects that are shared between multiple solutions.  If I upgrade solution 1 it creates all the reference files then updates the references for project 1 pointing to that directory.  If I upgrade solution it creates another set of the same files but now project 1 points to the new directory.  Shouldn't it just point to the GAC reference?

Also, this means that every solution ends up adding the same files to Source control because "everything in this directory" belongs in there.
Nikola
Telerik team
 answered on 31 Aug 2018
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?