Telerik Forums
UI for WPF Forum
3 answers
1.7K+ views
I am trying to find a way to change the background color of JUST THE TABITEM HEADER - i.e. the background color of the control you click to change tabs. I have managed to change every other background and foreground color of every control using styles with the notable exception of this one.

Can someone please tell me the secret to achieve - any code examples would be appreciated

Evgenia
Telerik team
 answered on 19 Jun 2014
3 answers
302 views
What's the best way of disabling the ability for viewers/users to add relations between tasks?

Is there a way of doing it similar to disabling drag-and-drop/resizing?  (over-wrote CanStartDrag, CanDrop, CanStartResize, CanResize, etc)
Polya
Telerik team
 answered on 19 Jun 2014
2 answers
148 views
With GridViewHeaderMenu.IsEnabled="true" settings, I always get all the columns in the context-menu at right click of header for hide/show. But I would want, not to display a column that I am keeping visible=false always. How to do that. Your help would be greatly appreciated.
Yoan
Telerik team
 answered on 19 Jun 2014
1 answer
123 views
Hi,

I was wondering if it were possible to place MapLine controls into a different UserControl.
In other words, I want to separate the radMap control from the MapLine controls by using a UserControl.
So I would have a parent containing the map and a child containing the lines:

ParentUserControl
<InformationLayer>
<Views:
ChildUserControl/>
<InformationLayer/>


ChildUserControl
<MapLine Point="0,0" Point2="10,10"/>

Unfortunately, it doesn't seem to work at all... Any ideas what might be the best solution?

Thank you,
Alexis
Andrey
Telerik team
 answered on 19 Jun 2014
1 answer
168 views
Hi,

I am trying to implement dragging & dropping  HTML table to Microsoft word document.

It is a WPF application where I am dragging a RadListBox item to word and if I am setting data objects type to "Text" then plain text is getting dropped in MS word document.  
var payload = DragDropPayloadManager.GeneratePayload(null);
payload.SetData("Text", "I am a plain text");

But my requirement is to drag and drop formatted text (with background, border, different font color).

Please advise.
Kalin
Telerik team
 answered on 19 Jun 2014
1 answer
209 views
Hi,

I am trying to implement dragging & dropping  HTML table to Microsoft word document.

It is a WPF application where I am dragging a RadListBox item to word and if I am setting data objects type to "Text" then plain text is getting dropped in MS word document.  
var payload = DragDropPayloadManager.GeneratePayload(null);
payload.SetData("Text", "I am a plain text");

But my requirement is to drag and drop formatted text (with background, border, different font color).
Also, I don't want to drag and drop image as it is not going to work in my case.

Please advise.
Kalin
Telerik team
 answered on 19 Jun 2014
5 answers
319 views
Hi.  I'm loving these new controls, but I have a question.  Is there a way to make the background of the RadDiagram Zoom and Pan along with the shapes?  Right now, the content of the diagram is working just fine, however my background remains at the same zoom level.  I'm assuming that is default behavior, but I would like to have the background image zoom as well.  Is that possible?
Maite
Top achievements
Rank 1
 answered on 19 Jun 2014
7 answers
248 views
Hi everyone,
I use GridView data binding with 30 million records,
I use "load on demand", but it only works if I load 15 million records, but 30 million records, appeared timed out errors,How to solve this error.
Sorry my english,
below is my code:

var context = new NorthwindEntities();
var query = context.Order_Details.OrderBy(o => o.OrderID);
var view = new VirtualQueryableCollectionView(query) { LoadSize = 10 };
DataContext = view;
Juzailie
Top achievements
Rank 2
 answered on 19 Jun 2014
2 answers
131 views
Trying to make my first DragDrop among RadListBox working but not sure what I am missing - but I am sure that I am missing something. I just have two list boxes - one bound to available friends (from where the drag is initiated) and the other one bound to selected friends where the friends are dropped. But at this point, it just shows up as being dragged from the originating Radlistbox - but nothing comes in the other radlistbox. Pls help.
Here is my XAML and ViewModel. How does this work? Whenever I drop a friend - then ViewModel setter is also not called. So - how actually the OtherRadListBox gets bound to the dropped values.
   
<Window.DataContext>
    <local:MainViewModel />
</Window.DataContext>
<Window.Resources>
    <Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem">
        <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    </Style>
</Window.Resources>
    <Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <telerik:RadListBox ItemContainerStyle="{StaticResource DraggableListBoxItem}"
                        AllowDrop="True"
                        Grid.Column="0" ItemsSource="{Binding AvailableDropZones}" DisplayMemberPath="Name">
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior />
        </telerik:RadListBox.DragDropBehavior>
    </telerik:RadListBox>
    <telerik:RadListBox ItemsSource="{Binding SelectedDropZones}" Grid.Column="1" AllowDrop="True" DisplayMemberPath="Id">
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior />
        </telerik:RadListBox.DragDropBehavior>
    </telerik:RadListBox>
</Grid>

public class MainViewModel :ViewModelBase
{
public MainViewModel()
{
ObservableCollection<Friend> list = new ObservableCollection<Friend>();
list.Add(new Friend() { Id = 1, Name = "Andy" });
list.Add(new Friend() { Id = 2, Name = "Josh" });
list.Add(new Friend() { Id = 3, Name = "Smith" });
list.Add(new Friend() { Id = 4, Name = "Andrew" });
AvailableDropZones = list;
}

ObservableCollection<Friend> availeble;
public ObservableCollection<Friend> AvailableDropZones
{
get
{
return availeble;
}
set
{
if (availeble != value)
{
availeble = value;
OnPropertyChanged("AvailableDropZones");
}
}
}

ObservableCollection<Friend> selected;
public ObservableCollection<Friend> SelectedDropZones
{
get
{
return selected;
}
set
{
if (selected != value)
{
selected = value;
OnPropertyChanged("SelectedDropZones");
}
}
}

}

public class Friend
{
public int Id { get; set; }
public string Name { get; set; }
}
Kalin
Telerik team
 answered on 19 Jun 2014
1 answer
134 views
Hi,

I am using this funcionality, the row details are visible when selected. However, when I selected the row one time, the row detail is visible. But is visible forever. I want that I selected again the row detail is hidden.

I don't know do it.

Thanks,
Fernan
Top achievements
Rank 1
 answered on 19 Jun 2014
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?