Telerik Forums
UI for WPF Forum
3 answers
99 views
Hi,

The call to RadWindow.Alert("msg") crashes on Window XP PRO while it's working on Windows Seven boxes

We are using this telerik package RadControls_for_WPF_2010_1_0309_DEV.msi

Please find below the error stack we have during the crash 

{"La valeur '/Telerik.Windows.Controls.Navigation;component/Themes/GenericVista.xaml' ne peut pas être attribuée à la propriété 'Source' de l'objet 'System.Windows.ResourceDictionary'. La valeur '/Telerik.Windows.Controls.Navigation;component/themes/vista/CarouselDataFieldPresenter.xaml' ne peut pas être attribuée à la propriété 'Source' de l'objet 'System.Windows.ResourceDictionary'. La référence d'objet n'est pas définie à une instance d'un objet.  Erreur à l'objet 'System.Windows.ResourceDictionary' dans le fichier de balisage 'Telerik.Windows.Controls.Navigation;component/Themes/GenericVista.xaml'.  Erreur à l'objet 'System.Windows.ResourceDictionary'."} 


Thank you for your support.

Best Regards.

Luciano





Boyan
Telerik team
 answered on 14 Apr 2010
1 answer
119 views
I have a RadToolBar with some buttons.
Some of them are navigationbuttons which I want to Enable/Disable from codebehind:

<Button x:Name="btnFirst" Command="{Binding FirstCommand}" IsEnabled="{Binding IsLeftEnabled}" Width="26">
                <Image Width="16" Height="16" Source="/Star3;component/Images/16/navigate_beginning.png"/>     
</Button>     

It works not 100%: I had expected a gray image when disabled.
But the image just disappeares.
And it won't come back when enabled again...     

Marinus
Vladislav
Telerik team
 answered on 14 Apr 2010
3 answers
171 views
Hi,

Is there a way to export only the specified columns to excel. If not ;
<telerik:GridViewDataColumn IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" Header="Adet" Width="125"
                        <telerik:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <StackPanel Orientation="Horizontal"
                                    <TextBlock Text="{Binding ItemAmount}" FontWeight="Bold"/> 
                                    <TextBlock Text=" yerine "/> 
                                    <TextBlock Text="{Binding ArrivedAmount}" FontWeight="Bold"/> 
                                </StackPanel> 
                            </DataTemplate> 
                        </telerik:GridViewDataColumn.CellTemplate> 
                         
                    </telerik:GridViewDataColumn> 

As you see at the code above i am using e cell template at the grid column. While exporting it does not export the data inside the cell template. Is the a way to solve this.

Regards.
Vlad
Telerik team
 answered on 14 Apr 2010
3 answers
184 views
I am a little unclear on the scope of the RadPanelBar. I understand that the RadPanelBar contains a tree-like structure of RadPanelBarItems. Can these items be any content such as Grids, StackPanels of controls, etc.? Or are they just tree-like text as shown in the demo project? The documentation only mentions an Item property that is an 'object'.

Also, the documentation is called RadControls for Silverlight. I assume it also applies to WPF. Is there any functionality that is Silverlight or WPF specific?

Thanks.

Greg
Valentin.Stoychev
Telerik team
 answered on 14 Apr 2010
10 answers
151 views
Hi,

We cutover to the 2010 version (2010.1.309.35).

The combo box columns are not displaying as they were (in non edit mode the values are showing, not the display path value).

We are using collection view sources pointing to datatables as the source.

e.g:
 
...  
    <UserControl.Resources> 
        <CollectionViewSource x:Key="EmployeeSkillSource" Source="{Binding DataSet.Tables[Roster.EmployeeSkill]}"/>  
        <CollectionViewSource x:Key="Roster.Station" Source="{Binding DataSet.Tables[Roster.Station].DefaultView}"/>  
    </UserControl.Resources> 
 
...  
    <telerik:GridViewComboBoxColumn   
        Header="Station" 
        DataMemberBinding="{Binding StationID}" 
        UniqueName="Station" 
        ItemsSource="{Binding Source={StaticResource Roster.Station}}" 
        SelectedValueMemberPath="StationID" 
        DisplayMemberPath="StationName" 
        IsReadOnly="True" 
        /> 
 
 

I noticed the samples that came with the latest version does not have a single instance of GridViewComboBoxColumn in the code so I cannot verify any changes.

Can you please provide a demo project veerifying that this usecase is still supported.

Thanks,
Nic

Frank Bubenik
Top achievements
Rank 1
 answered on 14 Apr 2010
5 answers
286 views

Hi

I am using a PanelBar with HierarcicalDataTemplate, and would like to define different ItemTemplates, and use them based on some data bound to the control.

XAML:

<Border Margin="0">
<Border.Resources>
<DataTemplate x:Key="CheckItem">
<StackPanel Orientation="Horizontal" Margin="10 0 0 0">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Margin="0 0 5 0" Click="Checkbox_Click" />
<TextBlock Name="txtCriteria" Text="{Binding Description}" HorizontalAlignment="Left" MouseDown="TextBlock_MouseDown" Cursor="{Binding LinkCursor}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="TextItem">
<StackPanel Orientation="Horizontal" Margin="10 0 0 0">
<TextBlock Text="{Binding Description}" HorizontalAlignment="Left" />
<TextBox Width="50" HorizontalAlignment="Right" />
</StackPanel>
</DataTemplate>
<HierarchicalDataTemplate x:Key="Category" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource CheckItem}">
<StackPanel Orientation="Horizontal" Margin="0">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" IsThreeState="True" Margin="0 4 5 6" Click="CategoryCheckbox_Click" />
<TextBlock Text="{Binding Description}" Height="13" Margin="5 4 5 6" HorizontalAlignment="Left"/>
</StackPanel>
</HierarchicalDataTemplate>
</Border.Resources>
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10">
<telerik:RadComboBox Name="rcbDefinition" Margin="0,0,0,0" Height="20"
HorizontalAlignment="Stretch" VerticalAlignment="Top"
SelectionChanged="rcbDefinition_SelectionChanged" FontSize="12" />
<telerik:RadPanelBar BorderThickness="1" BorderBrush="#FF6699CC" Name="rpbSearchCategories" Margin="0,80,0,0" Width="250" HorizontalAlignment="Left"
ExpandMode="Single" ItemTemplate="{StaticResource Category}" Expanded="rpbSearchCategories_Expanded" Background="White" />
</Grid>
</Border>

codebehind:
...

rcbDefinition.ItemsSource = SearchConfig.Items;
...

        private void rcbDefinition_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SearchDefinition srchDef = (SearchDefinition)rcbDefinition.SelectedItem;
            if (srchDef.Items == null)
                srchDef.LoadItems();
            rpbSearchCategories.ItemsSource = srchDef.DisplayItems;
            txtSubHeader.Text = srchDef.Instructions;
            UpdateQuery();
        }

 

I defined two DataTemplates, one called CheckItem and one TextItem.
What I would like to accomplish is to define which one to use, based on a field on the SearchDefinition.DisplayItem class.

Taking a wild shot, I would write something like this:

<HierarchicalDataTemplate x:Key="Category" ItemsSource="{Binding Items}" ItemTemplate="{Binding CategoryType}">

But realizing this was too wild a shot.

The "CategoryType" field on the Categories in the list Items would then return either "CheckItem" or "TextItem", depending on whether the underlying items should have a checkbox or a textbox for input by the user.

I hope my question i clear enough for someone to give me a hint on how to do this!

Regards
Jonas

Rappen
Top achievements
Rank 1
 answered on 13 Apr 2010
1 answer
165 views
Hi.

I have an question about the focus of Cell.
Immediately after adding a new line, It does not work, although he would like to move the focus of Cell to the specified column of added line.
For example, item will be null in The following codes.

(at Button1_Click method)
radGridView.UnselectAll();
radGridView.SelectedItem = radGridView.Items[insertingRowIndex];
radGridView.CurrentItem = radGridView.Items[insertingRowIndex];

var m_ColumnIndex =1;
var item = (GridViewRow)radGridView.ItemContainerGenerator.ContainerFromIndex(insertRowIndex);
// item is null
item.Cells[m_ColumnIndex].Focus();
// NullReferenceException

Version:
Telerik RadControls for WPF 2010 Q1 309 Trial
Visual Studio:2010 RC

Please help me.

Regards,
athasian.
Nedyalko Nikolov
Telerik team
 answered on 13 Apr 2010
1 answer
77 views
Hi,
i want to use the new Q1 2010 RadMap for WPF in a winforms project. Is this possible?
Can you give me a little step-by-step tutorial, because in my project i get no map.

I have use the same code in a wpf project, and there everything is alright.

Regards
Benjamin
Andrey
Telerik team
 answered on 13 Apr 2010
2 answers
143 views
I have GridViewComboColumn in a GridView. How can I programatically set focus the combox in the current row and open it?
I have button on a form that addes a new row... so I want to set focus to the combobox so the user can begin entereing.... thanks again

<
telerikPresentation:GridViewComboBoxColumn DisplayMemberPath="prod_name" SelectedValueMemberPath="prod_name" DataMemberBinding="{Binding comm_name}" Header="Product" Width="175" />
Jon
Top achievements
Rank 1
 answered on 12 Apr 2010
3 answers
165 views
I created a TreeView by programmatically adding items.

I try to remove an item like this:

 

 

Dim item = treDataSources.GetItemByPath(entiyPath)

 

treDataSources.Items.Remove(item)

The item is found.
But not removed from the tree.
Items.Count does no decrease after the .Remove.

What am I doing wrong.

Tina Stancheva
Telerik team
 answered on 12 Apr 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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?