Telerik Forums
UI for WPF Forum
1 answer
194 views
in demo, set inputMode to DatePicker, it will show date only, but when binding DateTimeText to a c# DateTime value , the inputmode will auto change to DateTimePicker. I think it is a bug.

Georgi
Telerik team
 answered on 25 Jan 2013
1 answer
245 views
How to bind to calendar's DisplayDateChanged event?
 or How to refresh blackout dates when change display from January to February? 

When I don't use telerik, I found a solution according to set the DatePicker.CalendarStyle, and rewrite the Calendar'sTemplate. In the Template, a new calendar is created, and so the new calendar's DisplayDateChanged event can be gained. But when using telerik radDateTimePicker, it will cause error.

<telerik:RadDateTimePicker>
            <telerik:RadDateTimePicker.CalendarStyle>
                <Style TargetType="telerik:RadCalendar">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate>

                                <telerik:RadCalendar >
                                    <inter:Interaction.Triggers>
                                        <inter:EventTrigger EventName="DisplayDateChanged">
                                            <galaSoftMvvmLightCommand:EventToCommand PassEventArgsToCommand="True" Command="{Binding DisplayDateChangeCommand}" />
                                        </inter:EventTrigger>
                                    </inter:Interaction.Triggers>
                                </telerik:RadCalendar>

                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </telerik:RadDateTimePicker.CalendarStyle>
        </telerik:RadDateTimePicker>

NullReferenceException:
Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.RadCalendar.UpdateRowsAndColumns() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:line 3729
   at Telerik.Windows.Controls.RadCalendar.OnApplyTemplate() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:line 2062
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint) 
Vladi
Telerik team
 answered on 25 Jan 2013
29 answers
363 views
Hi, just wanted to know when your pivot table (like done in radarsoft for example) will be available ?

I want a pivot grid conected to an OLAP cube with SSAS.

It's just a shame that this component is not available yet :(

Do you know when it'll be available? 

Regards,
Rosen Vladimirov
Telerik team
 answered on 25 Jan 2013
0 answers
215 views
Hi,

I initialize dragging by following code:

DragDropManager.AddDragInitializeHandler(xToolBar1, OnDragInitialize);
DragDropManager.AddGiveFeedbackHandler(xToolBar1, OnGiveFeedback);

In GiveFeedbackHandler and DropHandler  Mouse.GetPosition(xToolbarTray) gives negative numbers, which is incorrect. Is this bug?
I attached sample project to demonstrate this behaviour: https://skydrive.live.com/redir?resid=51A46BBA4E9EF07E!1312&authkey=!ALflFx7eswlzjic


Basically, I need distinguish between dragging or dropping on/before/after element in drop target.

I'm using reorder behaviour very often and just inserting element after the element under mouse gives very negative user experience. I cannot move element on the first position this way.
Daniel
Top achievements
Rank 1
 asked on 25 Jan 2013
1 answer
343 views
I have an application where multiple RadGridViews are being used as well as a RadTreeView. I would like to override the ScrollBar style for all RadControls in the application so that it uses the default Windows ScrollBar style instead of the RadControls own "shiny" version as it creates an inconsistent UI when other normal WPF ScrollViewers are used in the application. Here's an example: http://i.imgur.com/EXCRbey.png (the top is the default Windows 8 ScrollBar, bottom is a RadGridView ScrollBar).

I've tried adding the following in the application's ResourceDictionary, but it didn't work:

    <Style TargetType="ScrollBar" BasedOn="{StaticResource {x:Type ScrollBar}}"/>
Dimo Mitev
Telerik team
 answered on 25 Jan 2013
1 answer
346 views
hi:
 I have a question when use GridViewDataColumn.BindingGroup,my core code as follow:

<telerik:GridViewDataColumn Header="Time" IsReadOnly="True" SortMemberPath="ScheduledProcedureStepStartDateTime">                        
                        <telerik:GridViewDataColumn.BindingGroup>
                            <MultiBinding Converter="{StaticResource timeRangeConverter}" ConverterParameter="HH:mm">
                                <Binding Path="StartDateTime"></Binding>
                                <Binding Path="EndDateTime"></Binding>
                            </MultiBinding>
                      </telerik:GridViewDataColumn.BindingGroup>
</telerik:GridViewDataColumn>

Please confirm syntax of binding is right?

When execute 
 public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture){} function,
I found values[0] and values[1] are DependencyProperty.UnsetValue. So can't convert successfully.

Please provide the right telerik demo. Tahnks.
Pavel Pavlov
Telerik team
 answered on 25 Jan 2013
1 answer
237 views
It seems that the CurrentCell and CurrentRow are not kept in sync.

I think this is similar to what's mentioned in this post:
http://www.telerik.com/community/forums/wpf/gridview/radgridview-observablecollection-and-currentitem.aspx

We fixed it with this code:
private void ContractProxyGridView_CurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e)
        {
            if (e.NewCell == null || e.NewCell.ParentRow == null) return;
            e.NewCell.ParentRow.IsCurrent = true;
        }

Is there a reason for this behavior?

Thanks,
Alex
Dimitrina
Telerik team
 answered on 25 Jan 2013
1 answer
331 views
Hi

I have a question on using the CellEditTemplate which has a TextBox in RadGridView.

I have a RadGridView, one of its columns is created like this in cs file:

gvColumn = new GridViewDataColumn();
gvColumn.CellEditTemplate = (DataTemplate)grid.TryFindResource("TextBoxEditTemplate");
gvColumn.DataType = typeof(string);
gvColumn.DataMemberBinding = new Binding(...)

In xaml file I define the template like this:

<telerik:RadGridView.Resources>
                <DataTemplate x:Key="TextBoxEditTemplate">
                    <TextBox Text="{Binding RelativeSource={RelativeSource Self}, Path=DataMemberBinding.PropertyPath}"/>
                </DataTemplate>
...

but the 'Text' of this text box is not bound to content of the cell, they are sperated, when user tries to edit, the cell's content is not
in the TextBox, and vice versa.

Thanks.

Henry

Henry
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
215 views
Hi,

Just trying to figure out if the RadRichTextBox has a shortcut key for assigning bullets? The standard Ctrl + Shift + L does not work.

Thanks
Anthony
Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 24 Jan 2013
4 answers
631 views
Hi guys,

I noticed that when using ExportFormat.ExcelML with columns containg tags, the generated file cannot be opened. I have a column which contains "<" and ">" and this basically breaks the format. I tried intercepting the value in the ElementExporting event but it doesn't look like it's helping me. A sample event log file froom Excel looks like this:

XML PARSE ERROR:  Missing end-tag
  Error occurs at or below this element stack:
    <ss:Workbook>
     <ss:Worksheet>
      <ss:Table>
       <ss:Row>
        <ss:Cell>
         <ss:Data>
          <ss:CompanyName>

The value for column CompanyName would be something like "<Acme Inc>"

How do I go about this? I
Nayaz
Top achievements
Rank 1
 answered on 24 Jan 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
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?