Telerik Forums
UI for WPF Forum
3 answers
905 views
Hello,

I have an application that can drag and drop buttons between borders. I have the drag drop working.

The problem is the button click event seems to be blocked when I set the AllowDrag property to true. I can still see a double click event, just not the actual click event.
<Button Content="drop btn"
Click="Button_Click_1" 
telerikDragDrop:RadDragAndDropManager.AllowDrag="True"
MouseDoubleClick="Button_MouseDoubleClick" />

Thanks for the help.
Scott
Tsvyatko
Telerik team
 answered on 23 Jan 2012
1 answer
130 views
I have looked at your RadMap demos using shape files and the priciple is exactly what i require for my application. Can you recommend an easy application to use to create shape files?

Regards

Robin
Andrey
Telerik team
 answered on 23 Jan 2012
5 answers
461 views

When I set my grids datacontext as follows the Add new Row does not work:

dataGridView.DataContext = linqToSqldataContext.GetTable<my_Table_name>().AsEnumerable();

But If I set my datacontext like this it works but then my data in the grid is not binded to the source anymore:
dataGridView.DataContext = linqToSqldataContext.GetTable<my_Table_name>().AsEnumerable().ToList(); 

Can you explain why this is?


This is just a simplified version of what I am doing. Ideally I want to do the following and have all the data binded without having to process inserts/deletes/and updates for my data source.
dataGridView.DataContext  = (linqToSqldataContext.GetTableByName(TableNames.SelectedItem.ToString()));

where GetTableByName is 
static class DataContextExtensions
   {
       public static ITable GetTableByName(this DataContext context, string tableName)
       {
           if (context == null)
           {
               throw new ArgumentNullException("context");
           }
           if (tableName == null)
           {
               throw new ArgumentNullException("tableName");
           }
           var dataTable = context.GetType().GetProperty(tableName).GetValue(context, null);
           return (ITable)dataTable;
       }
   }

Dimitrina
Telerik team
 answered on 23 Jan 2012
0 answers
104 views
Hi
 
is that correct to call an element of a view from the viewmodel????
(i'm using MVVMLight)
example:
var grd = (RadGridView)e.Source; (e is KeyEventArgs)


M
Top achievements
Rank 1
 asked on 23 Jan 2012
2 answers
177 views
I am binding a GridView to a BindingListCollectionView.  This is being filled by a Linq Query.

I am displaying a GridView of a few fields and a set of text boxes that also display these fields and several others.  The Idea is for GridView to provide Sorting and Filtering on the key fields and make the rest of the fields visible when the record is displayed.

This works great if I navigate the GridView with the keyboard, but as soon as I use the mouse to select the record instead of the keyboard aarow keys, the position in the BindingListCollectionView is not updated.

To recap, the BindingListCollectionView position is updated when the grid is navigated with the keyboard arrow keys, but not when rows are selected with the mouse.

Any Ideas on how to work around this problem?
aavadesh
Top achievements
Rank 1
 answered on 23 Jan 2012
1 answer
143 views
Hi, I'm have an unusual requirement here. We want to bind the gridview to any strong-typed objects but at the same time, we're not going to hide some columns. So this basically precludes us from defining columns in XAML. So my option is to handle an event which is fired during the creation of columns. There I could probably suppress the creation of some columns. Is there such an event?
Maya
Telerik team
 answered on 23 Jan 2012
1 answer
108 views
http://www.telerik.com/help/wpf/gridview-multiple-selection.html

In the above link API, RadGridView has a
ObservableCollection<object> SelectedItems
property. I have a requirement where I need to access the selected grid items in the ViewModel. How can I do that? There is no dependency property for that I can use, and in the code sample you only have codebehind example. Please advice.

Thanks!
Maya
Telerik team
 answered on 23 Jan 2012
11 answers
329 views
HI.

What are the different sources that can be used for the RadBook? I know that you can use images, but what else?.
Can you use a word/ppt/pdf document as a source? Up to now, I had to convert all pages to images, load them in an observable collection, and point the collection as the source for the RadBook.

Can I assign a word document as a source, without doing any conversions?

Regards

Eduan
Роберт
Top achievements
Rank 1
 answered on 23 Jan 2012
10 answers
1.6K+ views
We have a requirement to drive our tab control from elsewhere in the application, and so, the header tabs have become unnecessary. 

Is there a way we can hide the tabs in a RadTabControl?  Or, is there a better control for our needs? 

TIA

Brian 
Gene
Top achievements
Rank 1
 answered on 22 Jan 2012
1 answer
109 views
Hello,

I am using Version 2011.2.920.40

We shows connectors for series label in chart.
And when we are increasing window size, we are also changing Series item label font size dynamically(by applying custom Series Item Label style).

(Series Item Label font size is 11)

when font size increase, connectors will be disappeared.
(Series Item Label font size is 12)

Please provide me help!!

Thanks in advance.
Evgenia
Telerik team
 answered on 21 Jan 2012
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?