Telerik Forums
UI for WPF Forum
1 answer
117 views
Hi,

i use the radschduleview like this:
<scheduleView:RadScheduleView
           AppointmentsSource="{Binding Appointments}" Margin="10"
           ResourceTypesSource="{Binding ResourceTypes}"
           telerik:StyleManager.Theme="Windows7"
           TimeMarkersSource="{Binding TimeMarkers}"
           CategoriesSource="{Binding Categories}"
           x:Name="MyScheduleView"
           GroupHeaderContentTemplateSelector="{StaticResource   GroupHeaderContentTemplateSelector}"
           FirstDayOfWeek="Monday"
           FirstVisibleTime="6:0:0"
           ActiveViewDefinitionIndex="1"                                               
           DialogClosing="MyScheduleView_DialogClosing"
           SpecialSlotsSource="{Binding SpecialSlots}"                                                  
           SpecialSlotStyleSelector="{StaticResource SpecialSlotStyleSelector}"
           ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}"
           Drop="MyScheduleView_Drop">

I want to fire a function to save the new date of the appointment in a database. But how to i fire this function on Drop?

Thanks
Regards

Rene
Kalin
Telerik team
 answered on 04 Nov 2013
1 answer
83 views
Hello
If you place your cursor at the beginning of the field and hold down the space bar your text would appear spaced out and the font changes.

Steps:
  • Place your cusor at the beginning of the name field
  • Hold down and press the space bar
  • Notice text has space between them and the font text changes
  • See attached screenshot


<Window x:Class="IndexOutOfRangeExceptionMaskedNumeric.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:a="clr-namespace:IndexOutOfRangeExceptionMaskedNumeric"
        xmlns:maskedInput="clr-namespace:Telerik.Windows.Controls.MaskedInput;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        

        <Style x:Key="RadMaskedInputBaseStyle" TargetType="telerikInput:RadMaskedInputBase">
           
            <Setter Property="TextMode" Value="PlainText"/>
            <Setter Property="IsClearButtonVisible" Value="False"/>
            <Setter Property="Placeholder" Value="_"/>
            <Setter Property="Mask" Value=""/>
            <Setter Property="UpdateValueEvent" Value="PropertyChanged"/>
           
        </Style>
       
    </Window.Resources>
    <StackPanel>
        <telerikInput:RadMaskedTextInput x:Name="edtTextBoxControl" Style="{StaticResource RadMaskedInputBaseStyle}"
                                      HorizontalAlignment="Left"
 VerticalAlignment="Center"
                                      Value="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
 
/>
        <TextBox Text="{Binding Value}"/>
    </StackPanel>
</Window>


Thank you
Petar Mladenov
Telerik team
 answered on 04 Nov 2013
1 answer
57 views
Hello,
The column resizing can be made at the right of the column for all themes, excepted the Office2013 theme, where it can also be made to the left of the funnel.
Patrick
Vera
Telerik team
 answered on 04 Nov 2013
1 answer
50 views
Hello,
when there are group panel items in the group panel, the close button is visible as soon as the mouse cursor is over the button for all themes, excepted the Office2013, where we must go to the right of the button to see it. This is confusing for users, because they don't know how to stop grouping, excepted when they move the mouse cursor to the small, right, place.
Patrick
Vera
Telerik team
 answered on 04 Nov 2013
2 answers
99 views
Hi,
is it possible to add a vertical gridline annotation when the user clicks in the plot area?

Regards Markus
Klemens
Top achievements
Rank 1
 answered on 04 Nov 2013
4 answers
528 views
Hi,

We have an office word template project which opens up a wpf form when the user tries to launch it. 

The WPF form has one or more telerik Richtextbox controls. When the user start typing inside the textbox they get the above error.
ie."The dispatcher process has been suspended,but messages are still being processed.".

Even though this error occurs more when user tries to type fast inside the textbox, there are cases this happened even otherwise.

There is no event in our code that gets fired on TextChanged or anything similar.

Has anyone else experienced this?  Could someone help me to resolve this?

Many thanks,

Anu
Anu
Top achievements
Rank 1
 answered on 04 Nov 2013
1 answer
110 views
I have a rich text document which I have gone through and put "<<" and ">>" around keywords that I want to have a Mail Merge fields. I have tired to put in the merge fields in the XAML, but does not work well. What is the best way to programatically search through the text of a RadDocument and replace some text with MailMerge fields.
Boby
Telerik team
 answered on 04 Nov 2013
11 answers
323 views
Everything ran fine, then I updated to Q3 2013, did an update Wizard, ran my application and setting 

static MainWindow()
{
    RadRibbonWindow.IsWindowsThemeEnabled = false;
}

Renders my RadRibbonWindow as completely white now.  Setting it to true, I can see everything as expected.  
Tina Stancheva
Telerik team
 answered on 04 Nov 2013
1 answer
71 views

Hi,

we would like to switch our DataGrid loading mechanism to use the QueryableDataServiceCollectionView (on top of DataServiceContext), to mainly take advantage of paging, maybe filtering.

However due to some rich functionality in the grid, we are wrapping each 'RowModel' (record) with a 'RowViewModel', supporting the functionality in the grid. So the collection we currently bind the DataGrid.ItemsSource is of type IEnumerable<RowViewModel> rather than IEnumerable<RowModel>. This is done simply by running something like PageViewModel.GridItemsSource = data.Select(m => new RowViewModel(m));

The question is how to achieve the same result with QueryableDataServiceCollectionView? The records loaded will obviously be of type RowModel, however we would like to 'convert' them to 'RowViewModel' instances and bind those to the grid.

Any ideas?

Stevo

 

Nick
Telerik team
 answered on 04 Nov 2013
1 answer
200 views
Hi!
We are amazed with your controls for WPF, specially with RadDataForm.
But, we have one problem.
We need ComboBoxField to choose which Company has produced the Product.
And it's working well, but when we add new product and click OK, a NullReferenceException pops out.
Our code:
Company.cs
    class Company : IDataErrorInfo
    {
        public int _id;
        public int id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
 
        public string _name;
        public string name
        {
            get
            {
                return _name;
            }
            set
            {
                _name= value;
            }
        }
 
        public string Error
        {
            get;
            set;
 
        }
 
        public string this[string columnName]
        {
// . . .
        }
 
        public static void Add(Company ist)
        {
// . . .
        }
 
        public static void Edit(Company ist)
        {
// . . .
        }
 
        public static void Delete(Company ist)
        {
// . . .
        }
 
        public static List<Company> Get()
        {
// . . .
          }
}
Product.cs
    class Product: IDataErrorInfo
    {
        public int _id;
        public int id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
  
        public string _name;
        public string name
        {
            get
            {
                return _name;
            }
            set
            {
                _name= value;
            }
        }
 
        public Company _comp;
        public Company comp
        {
            get
            {
                return _comp;
            }
            set
            {
                _comp= value;
            }
        }
  
        public string Error
        {
            get;
            set;
  
        }
  
        public string this[string columnName]
        {
// . . .
        }
  
        public static void Add(Product ist)
        {
// . . .
        }
  
        public static void Edit(Product ist)
        {
// . . .
        }
  
        public static void Delete(Product ist)
        {
// . . .
        }
  
        public static List<Product> Get()
        {
// . . .
          }
}
And our AutoGeneratingField event of RadDataForm:
private void DataForm1_AutoGeneratingField_1(object sender, Telerik.Windows.Controls.Data.DataForm.AutoGeneratingFieldEventArgs e)
{
    if (e.PropertyName == "Error" || e.PropertyName == "id")
    {
        e.Cancel = true;
    }
    else if (e.PropertyName == "comp")
    {
        e.DataField = new DataFormComboBoxField()
        {
            ItemsSource = viewModel.companies,
            DisplayMemberPath = "name",
            SelectedValuePath = "id",
            DataMemberBinding = new Binding("comp.id")
            {
                Mode = BindingMode.TwoWay
            },
            Label = "Company"
        };                       
    }
    e.DataField.DataMemberBinding.ValidatesOnDataErrors = true;
    e.DataField.DataMemberBinding.NotifyOnValidationError = true;
}
And once again, this is working OK, but when we proceed with adding new product, NullReferenceException pops out because Company property of Product for adding is null.
Where we sin?
P.S: Sorry for our terrible English, we're from Serbia, and we implemented all CRUD operations with RadDataForm events (EditEnded, AddedNewRecord...).
Thanks in advance!
DMSoft
Maya
Telerik team
 answered on 04 Nov 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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?