Telerik Forums
UI for WPF Forum
3 answers
95 views
It seems like there are a 2 problems if you try to validate your data by using IDataErrorInfo.

- The UI doesn't get updated properly. I set the background to red for a test and added a breakpoint at the validation part of the code. The code gets validated properly but the background stays red once the error is resolved.
- If you enter a wrong value the text gets moved to the top left corner of the cell and you aren't able to edit the cell until you press escape.
Nedyalko Nikolov
Telerik team
 answered on 01 Apr 2010
1 answer
53 views
Hi Telerik,

When I set tick line styles as follows:

<Style x:Key="AxisTickStyle" TargetType="Line">  
        <Setter Property="Stroke">  
            <Setter.Value> 
                <SolidColorBrush Color="{DynamicResource ColorDarkGray}" />               
            </Setter.Value>           
        </Setter> 
    </Style> 
chart.DefaultView.ChartArea.AxisX.AxisStyles.TickLineStyle = Application.Current.Resources["AxisTickStyle"as Style;  
chart.DefaultView.ChartArea.AxisX.AxisStyles.MinorTickLineStyle = Application.Current.Resources["AxisTickStyle"as Style; 

They dissappear completely, looks like the actually width of them decreases to 0 because the ItemLabels come to the edge of the axis

Any help would be appreciated

Rav
Vladimir Milev
Telerik team
 answered on 01 Apr 2010
6 answers
2.4K+ views
Hi,

We've got the following code in the application's App class's constructor (the fact that we're doing this in the App class appears to be related to the issue):

            bool allGood = false
            do 
            { 
                LoginWindow loginWindow = new LoginWindow(); 
                loginWindow.ShowDialog(); 
                 
                if (loginWindow.DialogResult.GetValueOrDefault(false)) 
                { 
                    try 
                    { 
                        // Try and do something... 
                        allGood = true
                    } 
                    catch (Exception) 
                    { 
                        lastLoginFailed = true
                    } 
                } 
                else 
                    return
            } while (!allGood); 

In the LoginWindow, there's a button whose Click handler ends with a call to Close(). The "Try and do something" code tries something that may possibly throw an Exception. If it does, then allGood stays false and the loop happens again. If it doesn't throw an exception, allGood is set to true and the job ends.

The problem is this - the first call to ShowDialog works fine. The second call does nothing.

Any idea what we're doing wrong here?

Thanks,
yonadav
Garry Clark
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
168 views
hi

am using rad tree view, i want to get the parent value, when am selecting a child
i mean, when i click on sub items in the tree i can get the values by selected items, but i want to get the  child value and corresponding parent value when am cliking the child. how i can do it
Tina Stancheva
Telerik team
 answered on 31 Mar 2010
4 answers
133 views
Hello,
I call Rebind to refresh my data. But I'm using the RowLoaded event to format my data conditionally.
It appears that the Rebind does not call this event.
How can I refresh my data and format it conditionally.
Thank You
Jon
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
151 views
My chart has 3 Bar series, the 3 bars are shown next to each other and there's a gap between it and the next group of 3 bars. Is there a way to set the size of this gap? In my case I need it to be 0 (no gap).
Giuseppe
Telerik team
 answered on 31 Mar 2010
2 answers
101 views
Hi,
I have a TabControl where a list of my view model objects are bound.
The ContentTemplate uses a UserControl:

<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Grid Margin="-30,0,10,10">
<Views1:ControlUnitView Margin="10" />
                                    
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
I had expected that each tab item gets its own copy of the user control. This seems not to be the case. Instead only one user control is created but the data context is switched between each tab selection. Is this the expected behavior?

Within my user control, I have a grid. I want to copy the selected items from my view model to the SelectedItems property of the grid after the tab changed. I tried to use the datacontext-Changed event. However, when i set the SelectedItems list during this event, the items are not highlighted. But that's the only event I get within my user control. Is there a better way to accomplish this?
Thanks
Kind regards
Hartmut
Dr. Hartmut Kocher
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
194 views
I am able to bind an 'IndicatorList Value' in XAML to a source. But if I try to bind 'Min' and 'Max' of a 'Linear/RadialScale', it throws an error. How can I do that, as in my project these three values come from a class.
Andrey
Telerik team
 answered on 31 Mar 2010
2 answers
84 views
Hi team !!

I use the following code to expand a group in my grid:

goalsDataGrid.ExpandGroup(goalsDataGrid.Items.OfType<IGroup>().ElementAt(1));

The groups are of type "Essential" and "Desired". But suppose i haven't added any record of type "Desired", ElementAt(1) refers to a record of type "Desired". 
Now, when i have not yet added an item of type "Desired", obviously the above-mentioned single line of code will throw an ArgumentOutOfRangeException. How do i manipulate the code to expand a group only if it is present?

Regards,
Jimit.
jimit r
Top achievements
Rank 1
 answered on 30 Mar 2010
9 answers
113 views
Mr.
In the TreeView Data Binding sample, I set IsDragDropEnabled="True". Then tried to drap and drop a Team from one Division to another Division, but it didn't work.

By the way, how could I change the post title. I want to change the post title to be "Problem of Drag and Drop in TreeView Data Binding".
Tina Stancheva
Telerik team
 answered on 30 Mar 2010
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
VirtualKeyboard
HighlightTextBlock
Security
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?