Telerik Forums
UI for WPF Forum
0 answers
104 views
Hi sir

In a radgridView that has been many level of hierarchial (Auto hierarchial), How we could remove the group panel from RadGrid(in all levels)?

Thanks
Hossein
Top achievements
Rank 1
 asked on 16 Sep 2013
4 answers
520 views
In all the built in .net WPF controls, you may override the default style, and specify your own custom template.  In my usage, it allows me to view a Textbox as a Label, have a button clicked to switch the mode to Edit mode, and switch the style to change the control back to a TextBox.

When I attempt to do the same thing for the Telerik - RadAutoCompleteTextbox, with this style, I get the following error (view mode)

<Style x:Key="RadAutoCompleteBoxViewMode" TargetType="{x:Type telerik:RadAutoCompleteBox}">
        <Setter Property="OverridesDefaultStyle" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:RadAutoCompleteBox}">
                    <Label Content="{Binding SearchText, RelativeSource={RelativeSource AncestorType=telerik:RadAutoCompleteBox}}" Style="{StaticResource FormFieldReadOnly}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.RadAutoCompleteBox.InitializeBoxesItemsControl() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\AutoCompleteBox\RadAutoCompleteBox.cs:line 1067

Is there something I'm missing?  Is there another way to accomplish this goal ?  Should not the concept of lookless controls be supported?  

thanks!
James
Top achievements
Rank 1
 answered on 16 Sep 2013
2 answers
299 views
I've been using the "WPFDialogManagement" controls for popup message windows previously and they allow for command like this: 

dialogWait = dialogManager.CreateWaitDialog("We're good to go. This message will self destruct in 3 seconds...", DialogMode.Ok);
dialogWait.Show(() => Thread.Sleep(3000));

This pops up the message and then auto closes after 3 seconds if the "ok" button isn't pressed.

Is it possible to get a similar behavior with the RadWindow.Alert or by another means?

Thanks...


Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
2 answers
103 views
hi ya,

Framework 4.5. VS 2012 Ultimate Update 3.

Telerik WPF 2013 Q1 NET 45

I embedded that control in a Window in my WPF desktop project and sometimes everything is stuck and I need to close my IDE throught Task Manager.

xaml:
<Window x:Class="Calculadoreta" ResizeMode="NoResize"
         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
         KeyDown="Window_KeyDown"
    Title="Calculadora" Height="350" Width="443"><Grid x:Name="Calculadora">
    <Grid.Background>
        <LinearGradientBrush EndPoint="0.985,0.415" StartPoint="0.053,0.415">
            <GradientStop Color="#FF99B4D1" Offset="0"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
    </Grid.Background>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
    <telerik:RadCalculator Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="115,25,117,29"/>
</Grid>
</Window>

code-behind:


Public Class Calculadoreta
 
    Private Sub Window_KeyDown(sender As Object, e As KeyEventArgs)
 
        If Key.Escape Then
 
            Me.DialogResult = True
            Me.Close()
 
        End If
 
 
    End Sub
End Class

Sometimes I can see this error:


"Error argument 9 NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
"Reference not established like object instance"

Thanks in advance,
Enric
Top achievements
Rank 1
 answered on 16 Sep 2013
3 answers
500 views
Hello,

I'm using the combobox in this example inside a grid as a celledittemplate:

http://www.telerik.com/community/forums/silverlight/combobox/multiselect-option-in-combo-box.aspx

I'm now stuck because I want to bind the comma separated values to the column dataitem, it is a string type.
I'm kind of new to wpf binding and I've tried a lot of things to get this done, but cannot achieve my goal.
please help.

Here's the column definition, Choices is the property I need to bind the results of the checked items.

<telerik:GridViewDataColumn Header="Choices"   
   DataMemberBinding="{Binding Choices, Mode=TwoWay}">  
   <telerik:GridViewDataColumn.CellEditTemplate> 
      <DataTemplate> 
         <telerik:RadComboBox x:Name="ChoicesCombo" 
            Loaded="OnChoicesComboBoxLoaded" SelectedIndex="0"   
            SelectedValue="{Binding Choices, Mode=TwoWay}" > 
            <telerik:RadComboBox.ItemTemplate> 
               <DataTemplate> 
                  <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}"   
                     Content="{Binding Text}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.ItemTemplate> 
            <telerik:RadComboBox.SelectionBoxTemplate> 
               <DataTemplate> 
                  <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ValueConverter}}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.SelectionBoxTemplate> 
         </telerik:RadComboBox> 
      </DataTemplate> 
   </telerik:GridViewDataColumn.CellEditTemplate> 
</telerik:GridViewDataColumn> 
Chango
Top achievements
Rank 1
 answered on 16 Sep 2013
3 answers
220 views
Hi,

I would like to know if it's possible to have the same application button than the RibbonBar?

Thank's
Myth
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
166 views
We are using a RadBusyIndicator and everything is working fine, except the fact, that the BusyIndicator disables editing of enclosed controls in Design Mode.

Imagine there is a window with some buttons and textboxes and the BusyIndicator encloses these buttons and textboxes. During runtime enabling and disabling these controls via BusyIndicator works fine, but in VS2010 design mode you cannot e.g. shift the buttons around. Of course you can manually change the xaml code, but this is cumbersome.

Question: If I have integrated a BusyIndicator like this, how do I disable it during design time?

<telerik:RadBusyIndicator 
IsBusy="{Binding IsBusy, FallbackValue=False, TargetNullValue=False}" ...>
Some Buttons and TextBoxes
</telerik:RadBusyIndicator>
 
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
2 answers
84 views
I have a RadGridView in a RadPane. The RadGridView has two fixed GroupDescriptors.

The pane is docked to the left by default and the first image shows the groupdescriptors working as intended. If I move the pane by dragging the header the groupdescriptors are instantly lost and I get the view in the 2nd attachment.

Is this normal behavior? If so is there a way to trap the event and stop this from taking place?

Thanks...
Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
181 views
Hello,
I'm creating a new WPF application and would like to use implicit styles. The application currently uses the Windows8 theme.
I've added the references to the Telerik assemblies, including Telerik.Windows.Themes.Windows8.
In App.xaml, I have:
<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>

In Window1.xaml, I just have added a RadButton.
When I run the application, the button is displayed with the right theme, but the Visual Studio 2012 designer doesn't show the content of the button, as if the theme was not loaded.
How can I have the Visual Studio designer display the button correctly?

Patrick
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
1 answer
196 views
Hello, I have problem with radgridview.
Im using mvvm pattern. In viewmodel i implemented observablecollection which contain rows with data. : 
xaml:
        <telerik:RadGridView ItemsSource="{Binding MyCollection}"
                             x:Name="RadGridViewElement"
                             FilteringMode="Popup"/>

viewmodel:

 private ObservableCollection<myrow> myCollection = new ObservableCollection<myrow>();

        public kolekcja()
        {

            generatedata();
        }
        
        private void generatedata()
        {
           myrow row = new myrow();
            row.Imie = "aa";
            row.Nazwisko = "bb";
            myCollection.Add(row);
            myrow row1 = new wiersz();
            row1.Imie = "cc ";
            row1.Nazwisko = "dd";
            myCollection.Add(row1);
        }

        public ObservableCollection<wiersz> MyCollection
        {
            get { return myCollection; }
            set { myCollection = value; }
        }

Is there any option to return filtered  radgridview data rows  (update myCollection ? or save rows to other collection ?) I would like create graph with the filtered data . I looking for the easiest way to create column header filter from GUI (Just like [DisplayAttribute( AutoGenerateField = false )] ) 
any idea ?
kind regards

 
Rossen Hristov
Telerik team
 answered on 16 Sep 2013
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?