Telerik Forums
UI for WPF Forum
2 answers
129 views
Hi,
   I am looking for sample code for databainding outlookbar.

Thank you

Nick
Top achievements
Rank 1
 answered on 10 Sep 2010
0 answers
95 views
Hi!

I have a DLL assembly referenced into my project, this is a snapcode about a dependencyProperty named EsRegistroNuevo.

namespace App_WpfResources
{
public class App_PageKernel : PageFunction<object>
{
public static readonly DependencyProperty EsRegistroNuevoProperty = DependencyProperty.Register("EsRegistroNuevo", typeof(bool), typeof(App_PageKernel));

public bool EsRegistroNuevo
{
get { return (bool)GetValue(EsRegistroNuevoProperty); }
set { SetValue(EsRegistroNuevoProperty, value); }
}

MY main project can set EsRegistroNuevo = [true/false]; (this is a boolean property to set NewRecord state) and this main project has a details panel with textboxes. My intention is when I click on NewRecord Button, all textboxes got Empty automatically, so I made something like this:

1.<kernel:App_PageKernel <br>  x:Class="Solar.Formularios.Administracion.Sistema.frmModulos"<br>   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <br>  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" <br> xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <br> xmlns:d="http://schemas.microsoft.com/expression/blend/2008" <br>   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" <br>  xmlns:kernel="clr-namespace:App_WpfResources;assembly=App_WpfResources" <br>    xmlns:master="clr-namespace:Solar.App_LocalResources.Templates" <br>    xmlns:Telerik_MaskedTextBox="clr-namespace:Telerik.Windows.Controls.MaskedTextBox;assembly=Telerik.Windows.Controls.Input"<br>  xmlns:cl="clr-namespace:App_ControlLibrary;assembly=App_ControlLibrary"<br>    xmlns:wex="clr-namespace:Wex.Lib.Interactions;assembly=Wex.Lib"<br>    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"<br>    Title="Modulos" Width="1280" Height="800" Loaded="Page_Loaded"><br><p>...  <br></p><p><ScrollViewer x:Name="pnlContenedorContenido" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" RenderTransformOrigin="0.52,0.349"><br>        <Grid HorizontalAlignment="Stretch" Height="800" VerticalAlignment="Stretch" Width="1280"><br>            <i:Interaction.Triggers><br>                <wex:EventTrigger ElementName="btnInsertar" EventName="Click"><br>                    <wex:PropertyAction Property="Text" Value="" TargetName="txtEjecutable"><br>                        <wex:PropertyAction.Conditions><br>                            <wex:InvokingConditions><br>                                <wex:InvokingCondition Property="kernel:App_PageKernel.EsRegistroNuevoProperty" Value="True"/><br>                            </wex:InvokingConditions><br>                        </wex:PropertyAction.Conditions><br>                    </wex:PropertyAction><br>                </wex:EventTrigger><br></p><p>...</p><p><br><StackPanel x:Name="pnlBarraHerramientasDetalle" Height="55" Margin="0,0,3,0" Width="416"><br>                        <telerik:RadToolBar x:Name="tlbDetalle" Orientation="Horizontal" OverflowButtonVisibility="Hidden" Height="54" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" BorderBrush="#FFE9F2FF" BorderThickness="1" HorizontalAlignment="Right" Width="413"><br>                        <Button x:Name="btnInsertar" Tag="btnInsertar" Click="btnToolBar_Click"><br>                             <Image Source="/App_LocalResources/Imagenes/HojaNueva.png" Stretch="UniformToFill" Height="41" Width="41" /><br>                          </Button><br>                      </telerik:RadToolBar><br>                    </StackPanel><br>                 <Grid x:Name="pnlDetalle" Height="249" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"><br>                     <Grid Height="39" Margin="38,18,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="159"><br><Label x:Name="lblEjecutable" Content="Ejecutable" Margin="21,121,0,0" VerticalAlignment="Top" Width="77" Height="27"/><br>                     <TextBox x:Name="txtEjecutable" Style="{StaticResource Estilo1TextBox}" Text="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA003, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" HorizontalAlignment="Left" Margin="102,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" TabIndex="2" Width="301" Height="27"/></p>

...

My point is: wex:EventTrigger ElementName="btnInsertar" EventName="Click"> Catch Event Clik when button is pressed. this code:

wex:PropertyAction Property="Text" Value="" TargetName="txtEjecutable">
wex:PropertyAction.Conditions>
wex:InvokingConditions>
wex:InvokingCondition Property="kernel:App_PageKernel.EsRegistroNuevoProperty" Value="True"/>

Evaluates if kernel:App_PageKernel.EsRegistroNuevoProperty is true, then txtEjecutable is empty. But this is not working. I tried putting conditions on custom <Style, but not works. I need help

thanks
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 asked on 10 Sep 2010
3 answers
97 views
Hi,

I'm binding a XML file to a GridView into Blend

When i drag and drop the XML data source (from the data panel) to the Gridview into the "Objects and timeline" panel, i get a windows where i choose "Itemssource", but only two of the many rows are binded to the grid..

What i'm doing wrong or what i have to do for having a complete databinding of the XML file ? Is it because of too many datas ?

Otherwise, i just saw the existence of a comptability between Excel and GridView, so can one just create a GridView with rows titles, and then past the data directly from Excel into the Grid once the program has been built ?
Could you provide me with an example of this ?

Or is the only solution to load the Excel file like it has been suggested before ?


Thanks again for the support and the informations
ab1
bob
Top achievements
Rank 1
 answered on 10 Sep 2010
2 answers
242 views
Hello everybody :)

I want to know if there is a way to change the culture of a GridViewDataColumn.
For instance I have the following code:

GridViewDataColumn column = new GridViewDataColumn();
column.FormatString = "{0:c}";

I want to know how can I change the culture of the currency for example: from dollars to euros in C#.

I hope you can help me.

Best regards, Jorge
Jorge Alberto
Top achievements
Rank 1
 answered on 10 Sep 2010
1 answer
106 views
Hello everybody,
i'm working with a webservice. The classes can't be modified because i must send the same object to the webservice.

I have a gridview and when you click in a row this row will become editable (this is ok).
Now i would like to have a checkbox for each row and when I click delete i would like to delete the checked ones. Normally I add a boolean in the class and then it's easy but without a boolean I don't know how to do. Some helps?

Goncalo Margalho
Maya
Telerik team
 answered on 10 Sep 2010
9 answers
412 views
Hi!!!


i need to create a gridviewimagecolumn in code-behind, i add the reference to the assembly (telerik.windows.controls and telerik.windows.controls.gridview) but i cant find the class gridviewimagecolumn, i cant use it.


i am using the trival version of q3 2009 sp2 release


what can i do???

thanks for your help
my best wishes
Michael Blanchet
Top achievements
Rank 1
 answered on 10 Sep 2010
9 answers
260 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
48 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
406 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
359 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
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
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?