Telerik Forums
UI for WPF Forum
1 answer
62 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
428 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
379 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
109 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
225 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
583 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
202 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
204 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
116 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
3 answers
116 views
Hello,
I want to have TabControl with two TabItems.
First TabItem will contain RadGridView (BROWSE TAB).
Second TabItem will contail UserControl with textboxes for currently selected/added/edited row (DETAIL TAB).
Detail textboxes will be editable only when row is in editable/append state, otherwise will be readonly.
Second TabItem (DETAIL) will contain toolbar with PREV, NEXT, EDIT, DELETE, ADD, COMMIT and CANCEL command, and buttons will be enabled only if needed (no rows - only ADD is enabled etc). Primary way how to change record will be by buttons on detail form ( not keys in the grid).
Result of all operations will be visible in grid (Grid can be read-only if needed). Primary source (ObservableCollection?, CollectionViewSource?) must be controlled by grid too (for example, source must be sorted when header in grid is clicked).

Does exist some example? Or some tip how to integrate RadGridView with this application logic?
Thank you very much.
Maya
Telerik team
 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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?