Telerik Forums
UI for WPF Forum
5 answers
129 views
My project requires that the user should be able to create an appointment with a matching start and end time.  The scheduleview does not complain about doing this but it will not display.  Obviously because there is no time span to display.  However, I do need these to show up.  Outlook shows these 0 time appointments, so must I.  I've tried setting min height/widths on appointments but it seems to get ignored.  Any help?

Thanks,
Greg
Rosi
Telerik team
 answered on 05 Jul 2011
3 answers
134 views
Hi.

I need to use variable label (categorical) spacing in one of my charts. Ex; Space between LabelA and LabelB should be 1 unit, LabelB and LabelC has 1.5 units between them. How can I achieve this?

Thanks.
Evgenia
Telerik team
 answered on 05 Jul 2011
0 answers
220 views

Hi Support

We implement
IDataErrorInfo for our Data, when we enter invalid data in edit mode it shows red box but when we update it to old data it doesn't change and still shows invalid data and error message and let us pass the cell.

We don't use cell validation and we use MVVM pattern.

thanks in advance,
Mehri
 
 

 

public partial class DataDictionary : IDataErrorInfo 

{

#region IDataErrorInfo Members
public string Error  

get  

{

return null;  

}

}

public string this[string columnName]  

{

get

if (columnName == "Name")  

{

if (Name == null || Name == string.Empty) 

return "Name cannot be null or empty";  

else if (columnName == "Code"

{

if (Code == 0)

return "Code Cannot be zero";

}

return "";

}

}

#endregion

}
//****************

<telerik:RadGridView ItemsSource="{Binding AllDataDictionary}"

                    SelectedItem="{Binding SelectedDataDictionary}"

                    HorizontalAlignment="Left" Margin="3,28,0,47" 

                    Name="radGrid" ShowGroupPanel="False" Width="Auto" 
                    AutoGenerateColumns="False" 
                    ShowInsertRow="True" CanUserDeleteRows="False"

                    IsSynchronizedWithCurrentItem="True"

                    RowHeight="25" Height="405" >

<telerik:RadGridView.Columns>

            <telerik:GridViewDataColumn Header="Code" Width="70" DataMemberBinding="{Binding Code}"
                                        ValidatesOnDataErrors="Default" />

            <telerik:GridViewDataColumn Header="Name" Width="*" DataMemberBinding="{Binding Name}"
                                        ValidatesOnDataErrors="Default" />
</telerik:RadGridView.Columns>

</telerik:RadGridView>  

Mehri
Top achievements
Rank 1
 asked on 05 Jul 2011
6 answers
1.3K+ views
I have two updowns and a label.  The label is updated with the sum of the values entered into the two updowns.  I wired up the ValueChanged event to both updowns to call a method that does the calculation and then put the sum into the label.

It works, but it appears to behave like a text input in IE such that it only fires when the control loses focus.  The client needs to be able to see the values calculate as they type.

I tried using KeyDown, but it doesn't work because the UpDown still has focus and the value isn't evulated as changed until the control loses focus.

Is there a way to work around this?
Sébastien
Top achievements
Rank 1
 answered on 04 Jul 2011
0 answers
79 views
Hello.
How I can hide the Header in "RadClock" control? 
Like in "RadCalendar" control is a property "HeaderVisibility".
Thank you!
Lubch
Top achievements
Rank 1
 asked on 04 Jul 2011
11 answers
250 views
Hi,
I have followed the Open Access dsw tutorial (http://www.telerik.com/help/openaccess-orm/getting-started-root-quickstart-wpf-overview.html) so that I have generated only a single .generated.cs from one view on my SQL server.

How do I link this to the RadGridView? I have tried following your tutorials, however, a severe lack of skills on my part, has proven this to be a difficult task to carry out. If would also be great if I could display the filters for each heading as well.

Cheers. Any help is appreciated.

Regards, Al.
PetarP
Telerik team
 answered on 04 Jul 2011
1 answer
163 views

Hello

Is there option to span the header of the grid on two columns?

Best regards

Ehud

Pavel Pavlov
Telerik team
 answered on 04 Jul 2011
4 answers
109 views
Hi,
I've got an error when i try to group my data by using the drag an drop of one of the columnheader. The only thing noticeable is there is two grids binded over one ListCollectionView because the same data are displayed in several place in my application.
I've made a little sample to reproduce the problem, just drag the Name colum header to the group panel or click on it to sort the datas.

I don't understand what's happen :(

- Ced -
public class MainViewModel : ViewModelBase
{
    public MainViewModel()
    {
        this.Items = new ObservableCollection<Toto>();
        this.Items.Add(new Toto { Name = "AAAA", Num = 0 });
        this.Items.Add(new Toto { Name = "BBBB", Num = 1 });
        this.Items.Add(new Toto { Name = "CCCC", Num = 1 });
        this.Items.Add(new Toto { Name = "DDDD", Num = 0 });
        this.Items.Add(new Toto { Name = "EEEE", Num = 1 });
        this.Items.Add(new Toto { Name = "FFFF", Num = 0 });
 
        this.ItemsList = new ListCollectionView(this.Items);           
    }
 
    private ObservableCollection<Toto> Items { get; set; }
    public ListCollectionView ItemsList { get; private set; }
}
 
public class Toto : ViewModelBase
{
    private string name;
    public string Name
    {
        get { return name; }
        set { name = value; this.RaisePropertyChanged("Name"); }
    }
 
    private bool isSelected;
    public bool IsSelected
    {
        get { return isSelected; }
        set { isSelected = value; this.RaisePropertyChanged("IsSelected"); }
    }
 
    private int num;
 
    public int Num
    {
        get { return num; }
        set { num = value; }
    }
         
}
 
<Window x:Class="MvvmLight1.MainWindow"
        Title="MainWindow"
        Height="300"
        Width="400">
    <Window.Resources>
        <ResourceDictionary>
            <Style TargetType="{x:Type telerik:GridViewRow}"
                   x:Uid="Style_6">
                <Setter x:Uid="Setter_19"
                        Property="IsSelected"
                        Value="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                <Style.Triggers>
                    <Trigger x:Uid="Trigger_3"
                             Property="IsSelected"
                             Value="True">
                        <Setter x:Uid="Setter_20"
                                Property="Background"
                                Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
 
    <StackPanel>
        <Grid x:Name="LayoutRoot"
              HorizontalAlignment="Stretch"
              VerticalAlignment="Stretch">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <telerik:RadGridView AutoGenerateColumns="true"
                                 HorizontalContentAlignment="Stretch"
                                 VerticalContentAlignment="Stretch"
                                 Name="Grid1"
                                 SelectionMode="Extended"
                                 ScrollViewer.IsDeferredScrollingEnabled="True"
                                 EnableRowVirtualization="True"
                                 RowDetailsVisibilityMode="Collapsed"
                                 ItemsSource="{Binding ItemsList}"/>
 
            <telerik:RadGridView Grid.Column="1"
                                 AutoGenerateColumns="true"
                                 HorizontalContentAlignment="Stretch"
                                 VerticalContentAlignment="Stretch"
                                 Name="Grid2"
                                 SelectionMode="Extended"
                                 ScrollViewer.IsDeferredScrollingEnabled="True"
                                 EnableRowVirtualization="True"
                                 RowDetailsVisibilityMode="Collapsed"
                                 ItemsSource="{Binding ItemsList}"/>
        </Grid>
    </StackPanel>
</Window>
Cedric
Top achievements
Rank 1
 answered on 04 Jul 2011
0 answers
101 views
RadGridView is showing the unwanted horizontal scroll bar when it is empty and then maximize or restore my application in original size, a horizontal scroll bar appears or when i am try to scroll it then it disappears.....
Zaheer
Top achievements
Rank 1
 asked on 04 Jul 2011
0 answers
111 views
RadGridView is showing the unwanted horizontal scroll bar when it is empty and then maximize or restore my application in original size, a horizontal scroll bar appears or when i am try to scroll it then it disappears.....
Zaheer
Top achievements
Rank 1
 asked on 04 Jul 2011
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?