Telerik Forums
UI for WPF Forum
2 answers
220 views
Hello,

If have a 2 RadListBoxes (let's call them A and B). The user is able to drag items from A to B. I am hooking B's DragOver and Drop events to facilitate the dropping behavior I need. The items in B are displayed with a data template with a number of text boxes. I want the user to be able to select the text in the text boxes using the mouse. Doing so however triggers B's drag behavior so the text can't be selected this way. Items in B should not be dragable at all. If I create a custom DragDropBehavior class that prevents dragging and assign it to B then the text in the text boxes can be selected the way I want, but then I loose the DragOver and Drop events which I can't do without.

So, is there a way that I can assign a custom DragDropBehavior to B and still have the DragOver and Drop events fire, or alternatively is there a way to disable dragging in B such that the drag behavior is not triggered when the mouse is dragged inside the text box of the data template?

Thanks.

Gerhard.
Polya
Telerik team
 answered on 26 Feb 2014
6 answers
247 views
I need to create a 3-panel User Control (a left and right panel in the top half of the control and a single panel in the bottom half).  I need the panel sizes to be interactively adjustable via some sort of splitter control.  Further, the entire control needs to be dynamically themeable via the Telerik Implicit Styles.  I *do not* need (or want) the panels to be moveable, dockable, floatable, pinnable, etc.

Originally, I just used the stock WPF GridSplitter, but immediately realized that it doesn't match the currently selected Telerik theme. I know I can create the control using RadDocking, RadSplitContainer, RadPaneGroup, and RadPane controls and that'll get me the themed splitter control I need, but that seems like overkill in this case.

Can I create a simple 3-panel layout complete with themed splitter controls without resorting to RadDock and friends?  If so, how?

Thanks,

Jeff
Jeff
Top achievements
Rank 1
 answered on 26 Feb 2014
2 answers
179 views
I am sure I am missing something, but I am not seeing any updates to my ViewModel for any selection changes.  I am getting the SelectionChanged Event in my code behind (which I don't want, I put it there for testing), but nothing through the binding. When I breakpoint on the event, and I look at the chart, the SelectedPoints property has the proper points in it.  Relevant things shown below.

<telerik:RadCartesianChart x:Name="chart" Palette="Autumn" SelectedPoints="{Binding SelectedDataPoints, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">

....
<telerik:RadCartesianChart.Series>
    <chartView:BarSeries ItemsSource="{Binding rgs}" PaletteMode="DataPoint" IsHitTestVisible="True" CategoryBinding="Name"
             ValueBinding="Count">
       <chartView:BarSeries.PointTemplate>
          <DataTemplate>
             <Rectangle Fill="{Binding Converter={StaticResource GoodToBad}}" />
          </DataTemplate>
       </chartView:BarSeries.PointTemplate>
   </chartView:BarSeries>
</telerik:RadCartesianChart.Series>
....

<telerik:RadCartesianChart.Behaviors>
     <telerik:ChartSelectionBehavior DataPointSelectionMode="Single" SelectionChanged="ChartSelectionBehavior_SelectionChanged" />
</telerik:RadCartesianChart.Behaviors>

and in my view model:

private ReadOnlyDataPointCollection _dataPoints = null;
public ReadOnlyDataPointCollection SelectedDataPoints
{
    get { return _dataPoints; }
    set
    {
       _dataPoints = value;
       RaisePropertyChanged(() => SelectedDataPoints);
    }
}

There are no binding errors showing in the output window, and the "get" property on the SelectedDataPoints property in my view model is getting hit.  But never the set.

What am I missing?

Thank
Paul


Paul
Top achievements
Rank 1
 answered on 26 Feb 2014
4 answers
645 views
Hi,

I add a RadRibbonView to my window and hope add same buttons(Maximum, Minimize, close ) to it as normal window. But I didn't know how to add those buttons to RadRibbonView or if It has a way to show those buttons?  Please see attachment.  How I can do this? thanks.
 
Tina Stancheva
Telerik team
 answered on 26 Feb 2014
5 answers
189 views
Hi,

I plan to use the RADTimeLine and the RadTimeBar to make a control for controlling Video media elements.

So my questions are :

- Do i have the ability to customize the duration to Frame? (Frame is a duration use in media, 25 Frames = 1 Second)
- How can i add a vertical line (the now line) to follow frame by frame a playing video?


Thank you in advance for your help,

Kind Regards.
Boris
Telerik team
 answered on 26 Feb 2014
2 answers
540 views
Hi,

I need to re-order my tabs programmatically. Is this possible and if so how? If not, is there a workaround?

I have searched the telerik forums and carefully read the documentation, but haven't found it described anywhere.

Thanks!
Petter
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
116 views
Hello,
the icon of RadRibbonWindow is not displayed correctly when the text size is not displayed at 100%.
Take a look at the attached screen shots, made with Office2013 theme on Windows 8.1 systems: one at 100%, the other one at 200%.
This is very annoying, because there are more and more high resolution displays.
Patrick
Evgenia
Telerik team
 answered on 25 Feb 2014
1 answer
268 views
I am lookinf forward to bind DataTable to Telerik chart in code behind, Kindly look at datatable which is attached. In that i have three column(DataTemp,PlantNo,Stator) Out of this DataTemp is my Y axis, PlantNo is my Series, Stator is X Axis. Kindly Help.
Martin Ivanov
Telerik team
 answered on 25 Feb 2014
1 answer
117 views
Packt publishing, has come up with a new book on Telerik WPF controls. This book follows a tutorial format, and a lucid practical example based style that would help the users get started with Telerik WPF tutorials in no time. Here is the amazon link for this book: 
http://www.amazon.com/Telerik-Controls-Tutorial-Daniel-Spalding/dp/1782176527/ref=sr_1_4?ie=UTF8&qid=1393305659&sr=8-4&keywords=telerik

amarabha
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
136 views
Hello,

Our company is trying to set up a pretty basic WPF Program with a code-first database (FluentModel) and a RadGridView to edit/add/delete data.
So far, everything works, except for the deleting/adding data part. Editting works just fine.

It's a MSSQL Database that gets all of its mapping and fields from Telerik's FluentMetaDataSource .

The problem, I think, lies in the fact that getting data using OpenAccessContent.GetAll<>() returns an IQueryable.
When using this IQueryable, the button to add a new row ("Click here to add new item") simply doesn't work.
A workaround for this is returning an IList instead using OpenAccessContent.GetAll<Type>().ToList() .
Using this as an ItemsSource instead makes it possible to edit existing items (and they can get retreived using our FluentModel's GetChanges().GetUpdates<Type>() method. However, GetInserts<Type>() and GetDeletes<Type>() is always empty, even though we visually see the data in the RadGridView. The changes simply don't go through.

Am I missing a very simple step? I certainly hope so.

01.<controls:RadGridView ItemsSource="{Binding Units}"
02.                      x:Name="UnitGridView"
03.                      CanUserFreezeColumns="False"
04.                      NewRowPosition="Top"
05.                      RowIndicatorVisibility="Collapsed"
06.                      GroupRenderMode="Flat"
07.                      ShowColumnFooters="False"
08.                      ShowColumnHeaders="True"
09.                      CanUserSortColumns="True"
10.                      ShowColumnSortIndexes="True"
11.                      ShowGroupFooters="False"
12.                      ShowGroupPanel="False"
13.                      GridLinesVisibility="Both"
14.                      BorderBrush="Transparent"
15.                      BorderThickness="0"
16.                      RowStyle="{StaticResource RowStyle}"
17.                      SelectedItem="{Binding SelectedUnit, Mode=TwoWay}"
18.                      AutoGenerateColumns="False"
19.                      SelectionUnit="FullRow">
20. 
21.    <controls:RadGridView.Columns>
22.        <controls:GridViewDataColumn DataMemberBinding="{Binding Id}" IsReadOnly="True"/>
23.        <!-- Fields ... -->
24.    </controls:RadGridView.Columns>
25.</controls:RadGridView>

01.public class FluentModel : OpenAccessContext, IFluentModelUnitOfWork
02.{
03.    private static string connectionStringName = @"connectionId";
04.    public static String ConnectionString{get { return ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString; }}
05. 
06.    private static readonly BackendConfiguration backend = GetBackendConfiguration();
07.    private static readonly MetadataSource metadataSource = new FluentModelMetadataSource();
08. 
09.    #region Lists
10. 
11.    public IList<UnitType> UnitTypes
12.    {
13.        get { return GetAll<UnitType>().ToList(); }
14.    }
15. 
16.    public IList<Address> Addresses
17.    {
18.        get { return GetAll<Address>().ToList(); }
19.    }
20. 
21.    public IList<Project> Projects
22.    {
23.        get { return GetAll<Project>().ToList(); }
24.    }
25. 
26.    public IList<Unit> Units
27.    {
28.        get { return GetAll<Unit>().ToList(); }
29.    }
30. 
31.    #endregion
32. 
33.    #region constructors
34.    public FluentModel()
35.        : base(connectionStringName, backend, metadataSource)
36.    { }
37. 
38.    public FluentModel(string connection)
39.        : base(connection, backend, metadataSource)
40.    { }
41. 
42.    public FluentModel(BackendConfiguration backendConfiguration)
43.        : base(connectionStringName, backendConfiguration, metadataSource)
44.    { }
45. 
46.    public FluentModel(string connection, MetadataSource metadataSource)
47.        : base(connection, backend, metadataSource)
48.    { }
49. 
50.    public FluentModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
51.        : base(connection, backendConfiguration, metadataSource)
52.    { }
53.    #endregion
54. 
55.    public static BackendConfiguration GetBackendConfiguration()
56.    {
57.        BackendConfiguration backend = new BackendConfiguration();
58.        backend.Backend = "MsSql";
59.        backend.ProviderName = "System.Data.SqlClient";
60.        return backend;
61.    }
62.}

Summary: Data CAN be editted and gets passed to the context's (FluentModel) GetChanges().GetUpdates() list. Inserts/Deletes SEEM to work VISUALLY in the RadGridView, but rows do NOT actually get inserted/deleted and the GetInserts() and GetDeletes() lists are always EMPTY. What could be the cause of this?

Thank you for taking your time to read and help
Dimitrina
Telerik team
 answered on 25 Feb 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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?