Telerik Forums
UI for WPF Forum
5 answers
239 views
Hello,

How is it possible to specify columns for child table?

I don't want columns for hierarchical grid to be auto generated.

I'm reading http://www.telerik.com/help/wpf/gridview-basic-hierarchies.html but it does not seam to be there

Thank You
Vlad
Telerik team
 answered on 13 Sep 2010
3 answers
213 views
Do Adorners work with Docking?
I have a floating rad Pane and I have added an adorner in RadPane_Loaded event

private void RadPane_Loaded(object sender, RoutedEventArgs e)
        {
            AdornerLayer layer = AdornerLayer.GetAdornerLayer(MyImage); /// IS NULL
           
        }

But it is always null.

Xaria D
Top achievements
Rank 1
 answered on 13 Sep 2010
3 answers
147 views
I was wondering is it possible to change the TileViewItem TileState= Max.Min, and Restore with Button click Code From behind?

Thanks
Rick Mueller
Top achievements
Rank 1
 answered on 11 Sep 2010
2 answers
136 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
104 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
101 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
253 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
113 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
426 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
278 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
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?