Telerik Forums
UI for WPF Forum
9 answers
251 views
We recently upgraded our solution to the Q2 2010 Sp1 version and now whenever the SelectedItem or SelectedIndex of our combo boxes is changed we recieve a null reference exception with the following call stack:

   at Telerik.Windows.Controls.RadComboBoxAutomationPeer.RaiseSelectionEvents(SelectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
   at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
   at System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Window.SetRootVisual()
   at System.Windows.Window.SetRootVisualAndUpdateSTC()
   at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   at System.Windows.Window.CreateSourceWindowDuringShow()
   at System.Windows.Window.SafeCreateWindowDuringShow()
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()



This isn't happening if we are binding to a Name/Value pair only when we are binding directly to objects and only using a DisplayMemberPath. 

Thanks for any suggestions!
Valeri Hristov
Telerik team
 answered on 10 Sep 2010
1 answer
43 views
i need to set binding of itemmapping columns using converter for radchart..how would i do that?
Evgenia
Telerik team
 answered on 10 Sep 2010
3 answers
392 views
Hi,

I'am a UX Designer (very lil or no coding experience ) using Expression Blend. I have a WPF GridView and trying to databind with some sample data . I need to embed images in one of the columns, have "image" has one of the data objects and pointing to a image folder in the solution. The images show up in the data binding dialog box (please see attachment) but do not appear in the Gird.

Don't know if it's the path to the images or something else is wrong, Appreciate any help.

Here's the code:
<telerik:RadGridView x:Name="radGridView" Margin="0,-2,0,0" VerticalAlignment="Top" ItemsSource="{Binding Collection, Mode=OneTime}" AreRowDetailsFrozen="{Binding Collection[0].Collection[0].Collection[0].Collection, Mode=OneTime}" RowDetailsVisibilityMode="VisibleWhenSelected" Height="380.337" ContextMenu="{Binding Collection, Source={StaticResource ContextMenu}}" telerik:Theming.Theme="Transparent" telerik:StyleManager.Theme="Transparent" ShowGroupPanel="False" ActionOnLostFocus="None" EditTriggers="None" EnableRowVirtualization="False" IsSynchronizedWithCurrentItem="False" Background="Transparent"  GridLinesVisibility="None">
                                <telerik:RadContextMenu.ContextMenu>
                                    <telerik:RadContextMenu DataContext="{Binding Source={StaticResource ContextMenu}}" ItemsSource="{Binding Collection}"/>
                                </telerik:RadContextMenu.ContextMenu>
                                <telerik:RadGridView.RowDetailsTemplate>
                                    <DataTemplate>
                                        <telerik:RadTabControl Background="#FF3E444A">
                                            <telerik:RadTabItem Header="Composition">
                                                <Grid>
                                                    <Image HorizontalAlignment="Left" Width="950.5" Source="Images/Composition.jpg" Stretch="Fill" Height="167" Margin="3,3,3,3" ToolTip="loremipsum"/>
                                                </Grid>
                                            </telerik:RadTabItem>
                                            <telerik:RadTabItem Header="Attribute Detail">
                                                <Grid>
                                                    <Image HorizontalAlignment="Left" Width="950.5" Source="Images/Composition.jpg" Stretch="Fill" Height="167" Margin="3,3,3,3" ToolTip="loremipsum"/>
                                                </Grid>
                                                </telerik:RadTabItem>
                                               <telerik:RadTabItem Header="Account Detail">
                                                <Grid>
                                                    <Image HorizontalAlignment="Left" Width="950.5" Source="Images/Composition.jpg" Stretch="Fill" Height="167" Margin="3,3,3,3" ToolTip="loremipsum"/>
                                                </Grid>
                                            </telerik:RadTabItem>
                                            <telerik:RadTabItem Header="Location Detail">
                                                <Grid>
                                                    <Image HorizontalAlignment="Left" Width="950.5" Source="Images/Composition.jpg" Stretch="Fill" Height="167" Margin="3,3,3,3" ToolTip="loremipsum"/>
                                                </Grid>
                                            </telerik:RadTabItem>
                                        </telerik:RadTabControl>
                                    </DataTemplate>
                                </telerik:RadGridView.RowDetailsTemplate>                      
                            </telerik:RadGridView>

Vanya Pavlova
Telerik team
 answered on 10 Sep 2010
10 answers
342 views
Hello!
I need an event for changing the docking orientation of a RadPane.
The purpose of it is that I need to have a layout if the RadPane is docked left or right and a different layout if it is docked on top or bottom, and I want to rearrange it (or at least change the orientation of the content)  whenever the user feels to modify the position of the pane.
How can I achieve this?

Thank you!
Roxana
Kaloyan
Telerik team
 answered on 10 Sep 2010
2 answers
95 views
Hi,

as I noticed RadDataPager now supports "Unbound Mode".
This in Fact means that is initially bound to Telerik.Windows.Controls.RadDataPager.UnboundPagerSource

And this broke my app - before I checked if I have to bind via
if(rdpMyPager.Source == null) //needs to bind

But now the Source is never null. A check with
if(rdpMyPager.Source is Telerik.Windows.Controls.RadDataPager.UnboundPagerSource)
also fails - Protection level doesn't allow access.
I also found no property like "IsBound / IsUnbound".

I could (in this case) work around the problems since I know what it is bound to.
But this is not always possible.

So is there a way to check if the pager is bound in a way like i did before with ...Source==null?

Manfred
Rossen Hristov
Telerik team
 answered on 10 Sep 2010
2 answers
206 views
Hello,

I have a RadGridView for which the columns are generated dynamically at run-time.

I need to have the columns be as wide as they need to be for the cell's content but wrap on the column headers so the header text does not define the column width.

I have seen a similar post on these forums but the columns were defined in the Xaml, and the headers contained TextBlock.

In my case, the columns are created during the AutoGeneratingColumn event. As for the headers they are created this way:

private void dg_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)   
{
    e.Column.Header = GetHeaderName(e.Column.UniqueName); 
}

Where GetHeaderName returns a string.
Gilles
Top achievements
Rank 1
 answered on 09 Sep 2010
10 answers
514 views
Hi..
I'm trying to use the Transition Control with the RadPanel.. but I get this error

Specified element is already the logical child of another element. Disconnect it first.

Any ideas what I'm doing wrong?

thanks

 

 

 

<Grid VerticalAlignment="Stretch" Grid.Row="1" Margin="3,10,3,3">

 

 

 

 

 

<telerik:RadTransitionControl x:Name="TransitionControl"

 

 

 

Grid.RowSpan="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.Column="0"

 

 

 

HorizontalAlignment="Stretch" VerticalAlignment="Stretch"

 

 

 

Content="{Binding SelectedItem, ElementName=radPanelBar}"

 

 

 

 

Duration="10">

 

 

 

 

</telerik:RadTransitionControl>

 

 

 

 

 

 

<Border BorderBrush="#000000" BorderThickness="1" Background="#d5d8dc" Margin="0 0 0 0">

 

 

 

 

 

<telerik:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" telerikControls:StyleManager.Theme="Windows7" ExpandMode="Multiple">

 

 

 

 

<telerik:RadPanelBarItem IsExpanded="True" BorderBrush="#FF000019">

 

 

 

 

 

 

<telerik:RadPanelBarItem.Header>

 

 

 

 

<StackPanel Orientation="Horizontal" Margin="0 ,-3,0,0">

 

 

 

 

<Image Source="/CRM;component/Images/clipboard.png" Margin="0,2,0,0" Height="32" Width="32" />

 

 

 

 

<TextBlock Text="Training Sheet" FontFamily="Verdana" Foreground="Blue" FontSize="14" Margin="5 4 5 5" />

 

 

 

 

</StackPanel>

 

 

 

 

</telerik:RadPanelBarItem.Header>

 

Jon
Top achievements
Rank 1
 answered on 09 Sep 2010
1 answer
171 views
We are using a telerik radgrid and would like to be able to expand - and then load - the details for each row on demand. On the radgridView, we added a ToggleDetailsColum, like this:

        <telerik:RadGridView.Columns>
              <telerik:GridViewToggleRowDetailsColumn />

Then we try to capture the IsExpandedChanged Event on the gridviewRow. I.e. this event:
IsExpandedChanged (Occurs when GridViewRow changes its GridViewRow.IsExpanded state)


But what happens is that everytime we click on the rowdetailsexpander (+), the system throws an exception:
A first chance exception of type 'System.ArgumentException' occurred in Telerik.Windows.Data.dll
And the event never seems to occur.

Is this a bug in 2010.2.812.40?
Veselin Vasilev
Telerik team
 answered on 09 Sep 2010
3 answers
115 views

hi!,

I would like to know if it's possible to show a radWindow Dialog into page (xbap)? also is it possible to show window alert?

thanks

Konstantina
Telerik team
 answered on 09 Sep 2010
2 answers
92 views
i need to set tooltip for radialrange in radialscale ...right now i am doing it by setting property like

 rs.Ranges.Add(New RadialRange With {.Background = Brushes.Blue, .Min = 0, .Max = 200, 
.StartWidth = 0.1, .EndWidth = 0.1, .TooltipFormat = "critical {0:F0}", .Tooltip = "critical"}})
but couldnt get to show tooltip with this..please help me out

Thanks,

Kapil Garg
Kapil
Top achievements
Rank 1
 answered on 09 Sep 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
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?