Telerik Forums
UI for WPF Forum
3 answers
155 views
I'm using DataAnnotations for validation.  Built-in MS annotation such as [RequiredAttribute] works fine but custom annotation are firing and validating properly. However, the cell aren't getting the red border, only the error message tooltip. Any idea why?


 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
        public class MustBeUniquePostalCodeAttribute : ValidationAttribute
        {

            private bool v;

            protected override ValidationResult IsValid(object value, ValidationContext validationContext)
            {
                DcfItemViewModel instance = validationContext.ObjectInstance as DcfItemViewModel;

                v = true;
                if (instance.isNew)
                {
                    string postalCode = instance.PostalCode;
                    IList<Dcf> dcfList = instance.Parent as IList<Dcf>;
                    Dcf dcfEntity = instance.dcfEntity;


                    bool exists = dcfList.Any(d => !d.Equals(dcfEntity) && String.Equals(postalCode, d.PostalCode, StringComparison.OrdinalIgnoreCase));

                    if (exists)
                    {
                        v = false;
                        return new ValidationResult("Value must be unique");
                    }
                }
     
                return ValidationResult.Success;
        
            }

            public override bool IsValid(object value)
            {
                return v;
            }
         
        }
Nedyalko Nikolov
Telerik team
 answered on 21 Feb 2013
2 answers
159 views
Hi,

I'm using GridView biding with an collection property in my view model.

Now, I need to explode row details.
The content of my row detail depends on witch cell was clicked.

I will have another GridView, inside row detail, but this GridView need to be bindend with another property in the same view model.
This property will be populated with data that depends on wich cell was selected.

Can you help me?
Getulio
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
117 views
Hello,

I'm using the RadRichTextBox control with some predefined styles.

I have a 'Title' style. Is there any way to add the generated CSS this property : text-transform: uppercase;  ???

For example, I would like to get something like this:

<p style="text-indent: 0pt;padding: 0px 0px 0px 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;text-indent: 0px;line-height: 1.15;text-align: left;">
<span style="font-family: 'Arial';font-style: Normal;font-weight: normal;font-size: 12px;color: #000000;text-transform: uppercase;">Hello World!</span>
</p>

Thank you for your help!

Best Regards

Pierre
Mihail
Telerik team
 answered on 21 Feb 2013
6 answers
196 views
Hi,

When I edit cell values the new values don't get formatted.

For example, if I edit a value on a column which has a data format string of N2 and I enter the number 1.2345678 I would expect the number to be formatted to 1.23 but the full number is displayed.

I was wondering if there was a way to get the edited values to adopt the formatting specified on the column?

Thanks,

Steven
Steven
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
66 views
Hi,

I have list of Dates with Passed and Failed runs for each month. For Example, If February month  date 15th has Passed Runs, the date should be displayed with GreenColor font, as well date 16th has failed runs, then 16th should be displayed with Red Color.

Please suggest me how to implement this kind of scenario with Calendar control
Masha
Telerik team
 answered on 21 Feb 2013
1 answer
239 views
Hi
we are  trying to override RadAutoComplete default style. (right click on the control in Document outline window=> Edit Template => Edit A copy)
We would like that the RadListBox Popup that appears when a text is being typed in the RadAutoCompleteBox will have a different style.
(The new popup template will be => TextBlock as a Header than the RadListBox then TextBlock as a footer).
The  RadAutoCompleteBox is binded the to a ObservableCollection.
The problem is that the when we try to override the default style (we haven't change it yet, we just use it) no values appear in the  ListBox.
If we don't  override the default style the RadAutoComplete  works fine.
Can you help us solve the problem?

(this section will be overrided to achieve the desired behavior:
    <Popup x:Name="PART_Popup">
                                <Grid x:Name="PopupRoot">
                                    <telerik:RadListBox x:Name="PART_ListBox" CanKeyboardNavigationSelectItems="{x:Null}" IsTabStop="False" ItemTemplate="{TemplateBinding DropDownItemTemplate}" IsTextSearchEnabled="True" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding MinDropDownWidth}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" SelectedValueBinding="{x:Null}" TextBinding="{x:Null}" KeyboardNavigation.TabNavigation="Once">
                                        <telerik:StyleManager.Theme>
                                            <telerik:Office_BlackTheme/>
                                        </telerik:StyleManager.Theme>
                                    </telerik:RadListBox>
                                </Grid>
                            </Popup>


)





 

Masha
Telerik team
 answered on 21 Feb 2013
4 answers
98 views
Hello Support,
I have very serious issue with breadcrumb performance, I have created Windows file explorer like utility and displaying hierarchical structure in breadcrumb. It works fine until I browse a folder which contains more than 10K folder, the UI freezes every time and it takes lot of time to list folders in breadcrumb.

I am wondering why breadcrumb does not support virtualization out of the box? and what is the workaround forit.

Any help is appreciated.
thanks,
earthcaller
Stefan
Telerik team
 answered on 21 Feb 2013
1 answer
158 views
Hi there,

Is there a way to show the value of the pie slice along with the label in the RadPieChart.

Thanks,
wade
Evgenia
Telerik team
 answered on 21 Feb 2013
1 answer
64 views
I have been able to add the charttrackballbehavior, but all i get is a small rounded rectangle at the top of my page, when I mouse-over the chart. I read something about adorners, would it be possible that one of my own adorners is somehow interfering, or is this behavior simply not supported for the polarchart?
Nikolay
Telerik team
 answered on 21 Feb 2013
1 answer
95 views
I currently use the WinForms property grid with a RadPropertyStore - is there a simple migration path in order to be able to use the WPF one, or is it a case of modifying code and maintaining two separate code bases for the WPF and WinForms versions (as I will need to retain the WinForms functionality)?

Thanks

Matt
Vlad
Telerik team
 answered on 21 Feb 2013
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?