Telerik Forums
UI for WPF Forum
6 answers
329 views
I am implementing a RadDataForm and even though the data binds, the New button is disabled and the Cancel button (while editing) is disabled also.

I have tried creating Templates (with AutoGenerateFields="False") but it did not make a difference.
Marcelo
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
92 views
Hi,

I have a list of objects that has MaxValue = 680334468, MinValue = -680334468, I need to set a custom range on my axis to show rounded off value. Right now my axis is shown like this,

http://dl.dropbox.com/u/23500975/Telerik/chartaxis.png

I have a step value of 27213378 (MaxValue / (half of objects list)). I tried to round off the axis as,

max = ceil( maxValue / 500000 ) * 500000
min = ceil( minValue / 500000 ) * 500000
step = 500000

I'm assuming the chart will render if the axis is bigger than the data, and it gives me this axis results as,

http://dl.dropbox.com/u/23500975/Telerik/chartaxis2.png

I would like to know how to round-off my cusotm axis range to  properly visualize it. Please let me know any sample / code to do this.

-Fahad
Nikolay
Telerik team
 answered on 29 Aug 2011
1 answer
109 views
Since the last release (2011.2) the method for drop is not called anymore (drop=...).
In version 2010.3 it is working.

Are there any changes that needs to be done?

With kind regards,
Rob
        <telerik:RadTreeView Height="683" Margin="12,34,0,0" Name="ServicesTree" Width="342"
            Background="White"
            Foreground="Black"
            IsLineEnabled="True"
            AllowDrop="True"
            IsRootLinesEnabled="True" DragEnter="ServicesTree_DragEnter" Drop="ServicesTree_Drop"/>

Petar Mladenov
Telerik team
 answered on 29 Aug 2011
1 answer
183 views
Do telerik WPF controls support XBAP in medium trust mode? I found no info about it on telerik.com, neither XBAP online demos, only ClickOnce demos. However I've found some links in old forum threads leading to the XBAP demos (http://demos.telerik.com/wpf#Telerik.Windows.Examples.xbap for example), none of them working now.
Valeri Hristov
Telerik team
 answered on 29 Aug 2011
1 answer
112 views
I have a combobox displaying 3 separate fields from the data source (using data template)

I would like to have autocomplete search any of these fields as the user types.

Is there a way to customize the way autocomplete works or modify the source of data which it is searching through to get this to work?

For example I am displaying first name, last name, and id in the combo box

and I would like the user to be able to start typing the first name or the last name or the id and have autocomplete select hits from any of those fields as the user types.
Valeri Hristov
Telerik team
 answered on 29 Aug 2011
1 answer
69 views
I have a schedule view control that I have in timeline view, however, the slots are far too small to be of use.  I have noticed that the scheduler control had a property you could set on the timeline view called 'numberofslots'  This seemed to set the exact number of visible slots and they would grow to fill the space.  Is there a property that would accomplish the same thing for the schedule view control?
Yana
Telerik team
 answered on 29 Aug 2011
2 answers
204 views
I have a grid that I have set the IsReadOnly to true.  When I am in the grid on any cell, if I press the Enter key, I get the following error.

Unable to cast object of type 'System.Windows.Input.KeyEventArgs' to type 'FullyLoadedCostLibrary.BareDriveCosts'.


StackTrace:
   at Telerik.Windows.Data.FuncExtensions.<>c__DisplayClass1`2.<ToUntypedFunc>b__0(Object item) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Core\Data\Extensions\FuncExtensions.cs:line 24
   at Telerik.Windows.Data.FunctionComparer.Compare(Object x, Object y) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Core\Data\FunctionComparer.cs:line 34
   at System.Collections.Generic.ArraySortHelper`1.InternalBinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
   at System.Collections.Generic.ArraySortHelper`1.BinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)

I'm using version 2011.2.712.40 WPF

My grid is defined
        <telerik1:RadGridView Name="bareDriveCostsListRadGridView"
               DataContext="{StaticResource bareDriveCostsListViewModelModelViewSource}" 
			   ItemsSource="{Binding ValidatesOnDataErrors=True, NotifyOnValidationError=True, ValidatesOnExceptions=True, NotifyOnTargetUpdated=True, NotifyOnSourceUpdated=True}" AutoGenerateColumns="False" CanUserDeleteRows="False"
               AutoExpandGroups="True" DataLoaded="bareDriveCostsListRadGridView_DataLoaded" SelectionUnit="Cell"
               IsReadOnly="{Binding Source={StaticResource bareDriveCostsListViewModelViewSource}, Path=CanEdit, Converter={StaticResource NotConverter}}">


I have some columns defined like this
<telerik1:GridViewMaskedTextBoxColumn Name="HistoryColumn4" DataFormatString="{}{0:n}"  MaskType="Numeric" Mask="n"  Header="{Binding Path=HistoryName4}" Background="LightGray" DataMemberBinding="{Binding Path=History4.Cost}" IsReadOnly="True" TextAlignment="Right"  IsFilterable="False" IsSortable="False" />
and some like this
                <telerik1:GridViewMaskedTextBoxColumn Name="BareDriveCostColumn" Header="Bare Drive Cost" DataMemberBinding="{Binding Path=Cost}" DataFormatString="{}{0:n}" TextAlignment="Right" MaskType="Numeric" Mask="n"  IsFilterable="False" IsSortable="False" >
                    <telerik1:GridViewMaskedTextBoxColumn.CellTemplate>
                        <DataTemplate>
                            <Grid MouseRightButtonDown="Cell_MouseRightButtonDown" DataContext="{Binding}"
                                  ToolTip="{DynamicResource toolTipTemplate}">
                                <TextBlock Text="{Binding Cost}"/>
                                <Border VerticalAlignment="Top" Width="5" Height="5" HorizontalAlignment="Right" Background="Red" Visibility="{Binding Comments,Converter={StaticResource MyConverter}}"/>
                            </Grid>
                        </DataTemplate>
                    </telerik1:GridViewMaskedTextBoxColumn.CellTemplate>                                    
                </telerik1:GridViewMaskedTextBoxColumn>
it errors on any of them.


David Brenchley
Top achievements
Rank 1
 answered on 26 Aug 2011
1 answer
211 views
All,

I have a calculated column in my grid. It works pretty fine but once I change one of the correspondig fields (Qt1...Qty18) the Total column doesn't update automatically. Is it supposed to calculate only once upon loading the grid or can I somehow accomplish to calculate on the fly once a depended column changes?

Thanks,
Lars

...
<telerik:GridViewExpressionColumn
                        Header="Total"
                        UniqueName="Total"
                        DataFormatString="{}{0:#,##0}"
                        />
...

In the constructor of the code behind I have the following lines:

    Expression<Func<ForecastInputItemViewModel, double>> expression = prod => prod.Qty1 + prod.Qty2 + prod.Qty3 + prod.Qty4 + prod.Qty5 + prod.Qty6 + prod.Qty7 + prod.Qty8 + prod.Qty9 + prod.Qty10 + prod.Qty11 + prod.Qty12 + prod.Qty13 + prod.Qty14 + prod.Qty15 + prod.Qty16 + prod.Qty17 + prod.Qty18;
            GridViewExpressionColumn column = ForecastGrid.Columns["Total"] as GridViewExpressionColumn;
            column.Expression = expression;
Dimitrina
Telerik team
 answered on 26 Aug 2011
1 answer
90 views
Hi Support

I have problem with RadDock when I change Flowdirection to RightToLeft, it doesn't work correctly while Drag and drop. any idea how to fix it? (I Use 2011.Q2 version)

All the best
Mehri

P.S. here is my xaml Code:

<telerik:RadDocking FlowDirection="RightToLeft" >
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,600"  InitialPosition="DockedTop">
                <telerik:RadPaneGroup TabStripPlacement="Top"  >
                            <telerik:RadPane Header="Pane 1"  />
                            <telerik:RadPane Header="Pane 2" />
                </telerik:RadPaneGroup>

            </telerik:RadSplitContainer>
 </telerik:RadDocking>


Boyan
Telerik team
 answered on 26 Aug 2011
1 answer
313 views
Hi,
a have a RadGridView with a bound ObservableCollection datacontext.
When the user selects a row and pushes the Delete key, the row disappears and the Deleted event is fired.
I have a menu item as well which allows to delete the selected row programmatically,
but when I call mygrid.Items.Remove(myselectedrow.DataContext) the row disappears, but the Deleted event is not triggered.
How can I get the grid to fire the Deleted event when removing a  row programmatically as well?

Is it something like
mygrid.RaiseEvent(new RoutedEventArgs(RadGridViewEvents.DeleteRow, my_row));
?
Thank you,
Bye
Maya
Telerik team
 answered on 26 Aug 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?