Telerik Forums
UI for WPF Forum
3 answers
147 views
I have GridView with Radiobutton column, but I don't know how to check/uncheck my radiobuttons programmatically. Could you help me?

 

 

 

 

<telerik:RadGridView Name="gridIVmodels" AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserFreezeColumns="False" CanUserSortColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" CanUserDeleteRows="False" CanUserInsertRows="False" RowIndicatorVisibility="Collapsed" SelectionChanged="gridIVmodels_SelectionChanged">
  
<telerik:RadGridView.Columns>
  
<telerik:GridViewDataColumn Header="On/Off">
  
<telerik:GridViewDataColumn.CellTemplate>
  
<DataTemplate>
  
<RadioButton GroupName="groupIVmodels" Checked="RadioButton_Checked" />
  
</DataTemplate>
  
</telerik:GridViewDataColumn.CellTemplate>
  
</telerik:GridViewDataColumn>
  
</telerik:RadGridView.Columns>
  
</telerik:RadGridView>

Alena
Top achievements
Rank 1
 answered on 21 Nov 2011
0 answers
77 views
I like to know how to do it in code once a gridview is binded to a dataset. Can anyone share some examples?
Oliver
Top achievements
Rank 1
 asked on 21 Nov 2011
0 answers
106 views
Hello all.

My current EF model looks like this:
Klanten 1----* KlantenOrders *----1 Orders

I have a datatemplate to show all the information on 1 template, looking like this:

<telerik:DataFormDataField Label="First Name" DataMemberBinding="{Binding KlantenSet.Naam, Mode=TwoWay}" />
                    <telerik:DataFormDataField Grid.Column="1" Label="Last Name" DataMemberBinding="{Binding KlantenSet.Voornaam, Mode=TwoWay}" />
                    <telerik:RadGridView Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" ItemsSource="{Binding Path=OrdersSet}"/>

I set the CurrentItem to the KlantOrders. Hower, the radgridview does not display the ordersset at all.
When i change the ItemsSource to, for example, the KlantenSet, it does display the tables.
If i set it to KlantenSet.OrdersSet, it also displays the data (but not the data that i need).

So how can i make my radgrid show all the Orders for the selected customer, straight from the Orders table, and not the data form the KlantenOrders table?

I use this code to retrieve the KlantenOrders:

Public Function GetKlantOrders(KlantID As Integer) As IEnumerable(Of KlantenOrders)
        Return DataContext.ST.KlantenOrdersSet.Where(Function(s) s.KlantID = KlantID)
End
Function

Many thanks, i'm stucked for a long time on this now...
steve
Top achievements
Rank 1
 asked on 20 Nov 2011
2 answers
220 views
Hi!

I have a grid which has another grid in its row details. Parent grid is not the context menu, and the child grid contains the context menu,however, if I right-click in the row details grid, it shows me the context menu and disappears immediately.
Artem
Top achievements
Rank 1
 answered on 19 Nov 2011
0 answers
231 views

Hi!


Something is happening to me, I appreciate any guide to follow. I have a XBAP main App Full trusted, it added telerik assemblies and my custom assemblies to the references. My custom assemblies referenced has entity classes and general functions and methods which are called from main App and classes (cs file from XAML), and its respective xaml view where to go by using NavigationService.navigate, but something that being taking so long time with no solution is happening to me.

I've constructed a DLL assembly containing XAML views, telerik references and other custom assemblies. Main goal to do it so is because I need to add this Assembly dynamically when is requiered, and that's why this assembly is not added into references into main App. To call a xaml view from main App is by using:

(MainApp)
Assembly dll = Assembly.Load("........dll"); <---- External Assembly not added as reference
object obj = dll.CreateInstance(".../../../mainMenu.xaml");
NavigationService.navigate(obj);

MainMenu.xaml containing telerik components and others is shown successfully, but for some reason when I bind DataContext's MainMenu to my class (ViewModel class) located into my external Custom Assemblies (TransitoMV.dll, and others), system throws an exception:

In spanish:

=== Información de estado anterior al enlace ===
LOG: Usuario = ENTERPRISE\Sistemas01
LOG: DisplayName = TransitoMV, PublicKeyToken=null
 (Partial)
AVS: Se proporcionó información de enlace parcial para un ensamblado:
AVS: Nombre de ensamblado: TransitoMV, PublicKeyToken=null | Id. de dominio: 2
AVS: Un enlace parcial tiene lugar cuando solo se proporciona parte del nombre para mostrar del ensamblado.
AVS: Esto puede dar lugar a que el enlazador cargue un ensamblado incorrecto.
AVS: Se recomienda proporcionar una identidad textual completamente especificada para el ensamblado,
AVS: que consta del nombre simple, la versión, la referencia cultural y el token de clave pública.
AVS: Vea las notas del producto http://go.microsoft.com/fwlink/?LinkId=109270 para obtener más información y soluciones comunes a este problema.
LOG: Appbase = file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/
LOG: PrivatePath inicial = NULL
Ensamblado de llamada : (Unknown).
===
LOG: Este enlace empieza en el contexto de carga default.
LOG: Utilización del archivo de configuración de la aplicación: D:\Proyectos\NET\Solar\Solar\bin\Debug\Solar.exe.config
LOG: Utilizando el archivo de configuración de host:
LOG: Utilizando el archivo de configuración del equipo en C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: La directiva no se está aplicando a la referencia en este momento (enlace de ensamblado privado, personalizado, parcial o basado en la ubicación).
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.EXE.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.EXE.

With telerik assemblies I have no problems, but with mine I do. How can I do to have no problems with TransitoMV.dll and others mine to be referenced by my external dynamic DLL (containing xaml view) assembly?

thanks
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 asked on 18 Nov 2011
2 answers
80 views
Telerik,

I want to show Button(whose content is an image and text) when a RadTileViewItem is maximized and Show only the Image in the button when minimized.  I have created a property which is bind to the Visibility of the button. How can I get the TileState inside this property?

Thanks,
-Methil
Nemo
Top achievements
Rank 1
 answered on 18 Nov 2011
2 answers
119 views
I have some validations that are dependent on other controls.  As an example, let's say I have a textbox where I want the traditional tab off (lost focus) behavior of the textbox to validate ... as well as when a checkbox is selected.  In the checkbox_checked event I can do the following to force an update:

BindingExpression be = tb.GetBindingExpression(TextBox.TextProperty);
be.UpdateSource();


I would like to do something similar with a RadComboBox.  There is a situation where I'd like to force a validation from a different component as well as doing the lost focus of the RadComboBox in question.  I've attempted something similar to the above, but to no avail:

BindingExpression be = rcb.GetBindingExpression(Telerik.Windows.Controls.RadComboBox.TextProperty);
be.UpdateSource();

I've also tried: 
Telerik.Windows.Controls.RadComboBox.SelectedItemProperty
etc.


It appears that no matter what property I try to grab, the returned BindindExpression is always null.  Is there a way to accomplish what I'm trying to do?
Hugh
Top achievements
Rank 1
 answered on 18 Nov 2011
8 answers
293 views
I'm using the RadGridview with the Metro theme applied. I want to change, and only change the background color of the HeaderCell. I can do this easily if I'm defining each data column, like below:

XAML:
 <telerik:GridViewDataColumn Header="Type" Width="150" DataMemberBinding="{Binding TypeDisplay}" HeaderCellStyle ="{StaticResource raHeaderCellStyle}"/>

Style:
    <Style x:Key="raGridViewHeaderCellControlTemplate" TargetType="telerik:GridViewHeaderCell">
        <Setter Property="Background" >
            <Setter.Value>
                <SolidColorBrush Color="Blue" />
            </Setter.Value>
        </Setter>
    </Style>

However, if I AutoGenerate columns  I can't figure out how to set this cellheader style. Thanks.
Shaun
Top achievements
Rank 1
 answered on 18 Nov 2011
2 answers
170 views
It seems as though the current WPF demo application will not run. I just tried it, it told me there was a new version, it loaded but won't execute. The version is 2011.3.1116.35 I have uninstalled and reinstalled but it always fails.

The system application log reports:

Faulting application name: WPF Demos.exe, version: 1.0.0.0, time stamp: 0x4ec3f9e2
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17625, time stamp: 0x4de8781e
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0x738
Faulting application start time: 0x01cca569b8e4d4f4
Faulting application path: C:\Users\xxx\AppData\Local\Apps\2.0\6GNG0VC5.4GG\1N029QJT.QB9\wpfd..tion_1dcf05cf98ac3011_07db.0003_1a601d23e40abbf7\WPF Demos.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: f6a11cc8-115c-11e1-86af-68b599ebba9e

Followed by:

Application: WPF Demos.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.UnauthorizedAccessException
Stack:
   at System.Deployment.Internal.Isolation.IActContext.SetApplicationRunningState(UInt32, UInt32, UInt32 ByRef)
   at System.ActivationContext.SetApplicationState(ApplicationState)
   at System.AppDomain.SetupDomainForApplication(System.ActivationContext, System.String[])
   at System.AppDomain.SetupApplicationHelper(System.Security.Policy.Evidence, System.Security.Policy.Evidence, System.ApplicationIdentity, System.ActivationContext, System.String[])
   at System.AppDomain.InitializeDomainSecurity(System.Security.Policy.Evidence, System.Security.Policy.Evidence, Boolean, IntPtr, Boolean)

Thanks
Claude
Top achievements
Rank 1
 answered on 18 Nov 2011
3 answers
99 views

Hi,

in my application I have a RadBook which receive as an ItemsSource a collection of memo's. I would like to know if it's possible to have on the first page only the flexibility to edit the memo?

Thank's
Tina Stancheva
Telerik team
 answered on 18 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?