Telerik Forums
UI for WPF Forum
1 answer
105 views

Hi,

I need to remove the delete button binding

So click on Del button will not delete rows in grid

Best regards

Ehud

Vlad
Telerik team
 answered on 22 Jun 2010
4 answers
361 views
Good day!
I have such a xaml:

<Window x:Class="CAP.AdminTool.Questions"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Вопросы" Height="700" Width="750" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Icon="/CAP.AdminTool;component/favicon.ico" FontFamily="Verdana" FontSize="13" Loaded="Window_Loaded" >
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MinHeight="60"></RowDefinition>
            <RowDefinition Height="auto" MinHeight="30"></RowDefinition>
            <RowDefinition Height="auto" MinHeight="60"></RowDefinition>
            <RowDefinition Height="auto" MinHeight="30"></RowDefinition>
        </Grid.RowDefinitions>
        <telerik:RadGridView Grid.Row="0"
             HorizontalAlignment="Left"
             Name="grQuestionSets"
             VerticalAlignment="Top"
             Height="auto"
             MinWidth="700"
             AutoGenerateColumns="False"
             SelectionChanged="grQuestionSets_SelectionChanged"  >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Раздел вопросов" UniqueName="Name" Width="auto" MinWidth="300"/>
                <telerik:GridViewDataColumn Header="Описание" UniqueName="Description" Width="auto" MinWidth="400"/>             
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>       
    </Grid>
</Window>


I want my RadGridView width to change when I change the width of the window.
How can I do it?
lina fetisova
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
495 views
1) When I bind the menu icon to an image which is defined as a StaticResource, the image does not appear but I can see the text "pack:" What am I doing wrong?

2) I want to bind the visibility to the underlying datasource using the BooleanToVisibilityConverter, so that when a menu item is selected the image is visible. I know how to use the converter but where in xaml do I set the binding.

Datasource:

public partial class Toolbar : UserControl 
    { 
        public Toolbar() 
        { 
            InitializeComponent(); 
 
            this.zoomMenu.ItemsSource = GetZoomMenuItems(); 
        } 
 
        private ObservableCollection<ZoomMenuItem> GetZoomMenuItems() 
        { 
            return new ObservableCollection<ZoomMenuItem>() 
            { 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=10, ZoomSettingText="10%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=25, ZoomSettingText="25%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=50, ZoomSettingText="50%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=75, ZoomSettingText="75%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=100, ZoomSettingText="100%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=200, ZoomSettingText="200%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=400, ZoomSettingText="400%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=600, ZoomSettingText="600%" }, 
                new ZoomMenuItem(){ IsSelected=false, ZoomSetting=800, ZoomSettingText="800%" }                 
            }; 
        } 
    } 

Menu:

<BitmapImage x:Key="tickImage" UriSource="../Images/tick.png" DecodePixelWidth="10"/> 
 
<Style x:Key="ZoomMenuItemStyle" TargetType="telerikNav:RadMenuItem"
            <Setter Property="Icon" Value="{Binding Source={StaticResource tickImage}}" />             
</Style> 
 
<HierarchicalDataTemplate  
            x:Key="zoomMenuItemTemplate" 
            ItemsSource="{Binding ZoomMenuItem}"
            <TextBlock Text="{Binding ZoomSettingText}" /> 
</HierarchicalDataTemplate> 
 
<telerik:RadDropDownButton  
                x:Name="RadDropBtnZoom" 
                Height="20" 
                Width="15"
                <telerik:RadDropDownButton.DropDownContent> 
                    <telerikNav:RadContextMenu 
                        x:Name="zoomMenu" 
                        Width="75"  
                        BorderThickness="0" 
                        ItemContainerStyle="{StaticResource ZoomMenuItemStyle}" 
                        ItemTemplate="{StaticResource zoomMenuItemTemplate}"
                    </telerikNav:RadContextMenu> 
                </telerik:RadDropDownButton.DropDownContent>                 
</telerik:RadDropDownButton> 



Pana
Telerik team
 answered on 22 Jun 2010
1 answer
103 views
By default each column can be sorted in 3 ways: Ascending, Descending, No Sort. How do I get rid of the third state, but have each the column can only be sorted either in ascending or descending order when I click the column header?

Thanks,
Yang
Ваня
Top achievements
Rank 1
 answered on 21 Jun 2010
3 answers
154 views
Hi All

I have bound the ItemSource of the RadBook to an ObservableCollection of classes, then I am using the item template to create a user control that binds it DataContext to the object. This is working well. I found however that I need to ensure that all the UserControls are loaded as soon as the ItemSource of the RadBook is Updated. Right now they only load when you navigate to that page.

Is there any method that I can call that does not require me to cause the book to iterate through all the pages?

Thanks for you help

Nick
Kiril Stanoev
Telerik team
 answered on 21 Jun 2010
1 answer
309 views

       Hello!  you may have a look at the attach.why the horizontal scrollbar can't auto hide? how to solve this problem ?

          

<Telerik:RadTreeView Name="_treeView" ScrollViewer.VerticalScrollBarVisibility="Auto"  ScrollViewer.HorizontalScrollBarVisibility="Auto"  SelectionMode="Extended" ExpanderStyle="{StaticResource Expander}" local:TreeViewHelper.EnableRightClickSelection="True" MouseRightButtonDown="_treeView_MouseRightButtonDown" PreviewMouseRightButtonDown="_treeView_PreviewMouseRightButtonDown">  
            <telerikNavigation:RadContextMenu.ContextMenu > 
                <telerikNavigation:RadContextMenu  x:Name="radTreeViewMenu">  
                    <telerikNavigation:RadMenuItem Header="View In Master Document" Tag="View in Master Document"/>  
                    <telerikNavigation:RadMenuItem Header="Show PDF" Tag="SHOW PDF" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Show PDF AT Division" Tag="Show PDF AT Division" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Copy Division" Tag="Copy Division" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Job Ticket" Tag="Job Ticket" IsEnabled="False"/>  
                </telerikNavigation:RadContextMenu> 
            </telerikNavigation:RadContextMenu.ContextMenu> 
</Telerik:RadTreeView> 

If you see this message,please reply as soon as possible.I 'm very anxious. Thanks my friend.

Dimitrina
Telerik team
 answered on 21 Jun 2010
1 answer
98 views
Hi,

I've set up a RadComboBox with the following configuration:

IsTextSearchEnabled="True" 
IsFilteringEnabled="True" 
TextSearchMode="Contains"

SelectedItem, SelectedText, IsDropDownOpen and Text are bound to my data.  I can start typing and click to select an item once, but if I search (type) again and click on the same item a second time, it is not selected.  Only the text I typed is displayed in the combobox.

After removing IsFilteringEnabled and TextSearchMode, clicking the item a second time works as expected.  Adding either of them will re-create the problematic behavior.

Is anyone aware of a workaround?

Thanks,
Andrew
George
Telerik team
 answered on 21 Jun 2010
1 answer
90 views
Hello, how do I change the image for a WPF Radbutton for onClick or other events like onHover etc?

Thanks
Dimitrina
Telerik team
 answered on 21 Jun 2010
4 answers
290 views
I have a grid view containing several hundred rows, each of which will need to contain an image referenced via a URL. These images will come from a remote server via http.

Using an imagecolumn, with the image source bound to my arraylist containing the URL, the grid does not display until all images are downloaded, which takes some time and causes the UI thread to be unresponsive. I need to add the images asynchronously so that the rest of the row data is visible but the images appear one by one as they are downloaded (as a standard web page would).

How can I best achieve this?

Many thanks.
Vlad
Telerik team
 answered on 21 Jun 2010
3 answers
153 views
Hi,

I use a RadTimePicker as a CellEditTemplate in a RadGridView with binding a DataTable.
I managed to bind the data to the TimePicker and it displays correctly (e.g. 12:23:59), but I can change its value only to timestamps in hour (e.g. 12:00:00). How can I change its value to such a date as 23:34:56?

Thanks in advance!

Feri
Konstantina
Telerik team
 answered on 21 Jun 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?