Telerik Forums
UI for WPF Forum
3 answers
238 views
There is no indication of mouse over on selected items; note the Backstage Tab, selected Backstage Items and selected gallery items.  (I'm not sure if that is a "feature" of the theme or not).
The QAT displays below the Ribbon in the same MetroColors.PaletteInstance.BasicColor that is used for mouse over, negating the mouse over visual queue.

Are there Metro Theme guidelines available, and if so where can they be found?

Thanks,
Steve
Petar Mladenov
Telerik team
 answered on 17 Sep 2011
2 answers
616 views
After wrestling with this for a while and doing lots of research I have not been able to find a definitive answer.  I can find a myriad of examples about drag and drop between other controls and the RadGridView but little to no examples about dragging from or between these types of controls.  Searching back it seems that this is a hot topic for the past two years with solutions that temporarily worked or didn't at all.  I'd like to say that I've tried harder for a solution but simply don't know how at this point.  I've usually had wonderful success with the RadDragAndDropManager and all has been simple and easy except in this case.  I just want to be able to drag a row from one RadGridView to another using the standard RadDragAndDropManager methods.

My main issue at this point is that I can't get a row to drag at all.  I've tried applying a style to my GridView's RowStyle and to my column's CellStyle that sets the telerik:RadDragAndDropManager.AllowDrag to true but nothing happens.  Strangely enough if I set telerik:DragDropManager.AllowDrag equal to true I get some dragging ability but it always says I have an invalid drop target by showing the crossed out circle curser.

Below is a simple application that I think should work but doesn't.  I haven't bothered to set the drop properties yet.  Please give me some pointers or an example that I can study to know what to do on this that is relevant to .NET 4.0 and recent releases.  I am currently using the latest internal build as of 9/12/2011.

Thanks,
Adam
<Window
    x:Class="RadGridView_DragAndDropTest.MainWindow"
    x:Name="Window"
    Title="MainWindow"
    Width="640" Height="480">
 
    <Window.Resources>
        <Style TargetType="telerik:GridViewRow">
            <Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True"/>
        </Style>
    </Window.Resources>
 
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.45*"/>
            <ColumnDefinition Width="0.1*"/>
            <ColumnDefinition Width="0.45*"/>
        </Grid.ColumnDefinitions>
        <telerik:RadGridView HorizontalAlignment="Right" Width="280.8" ShowGroupPanel="False" SelectionMode="Extended" AutoGenerateColumns="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" ColumnWidth="*" DataContext="{Binding Source={StaticResource SampleDataSource}}" ItemsSource="{Binding Collection}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Property1}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <telerik:RadGridView Grid.Column="2" d:LayoutOverrides="Width, Height" ShowGroupPanel="False" SelectionMode="Extended" AutoGenerateColumns="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" ColumnWidth="*" DataContext="{Binding Source={StaticResource SampleDataSource1}}" ItemsSource="{Binding Collection}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Property1}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

Tsvyatko
Telerik team
 answered on 17 Sep 2011
0 answers
130 views
I want the first Combo box , that appears in the data filter , to have ceratin properties like, it must have a scroll drop down. and have the intellisense property, whrein we can put anything in the text box, with auto complete feature. thesefeatures  are possible when i set the properties of combobox item independently. but how to set it for a combobox which is a component of datafilter. i tried the tutorial , but couldnt do it. can someone tell me how to do it.
Chandan
Top achievements
Rank 1
 asked on 17 Sep 2011
1 answer
109 views
Hi team,

Can you please give one sample example of RadGrid(wpf control) with inline(Excel Like Grid) adding and editing Deleting  and TypedCombo in one column of the Grid.

Untill user presses save button than only want to save the data in DB.

Please send us ASAP
Maya
Telerik team
 answered on 17 Sep 2011
4 answers
1.9K+ views
Hi,

I am having a hard time figuring out how to make the Text property of the RadComboBox bind to a string property in my View Model.  I have a combo box that is Editable so that user can search for anything that starts with the values typed on the text box.  I want to get that value in the view model, use it as part of a LINQ query (sarts with), and fill a collection source to display on a view.

The problem:
------------------
The string property on my view model "SearchText" is returning null (never gets the value entered by user).  Sample code is below:

        private List<SupplierMaster> foundSuppliers;
        public List<SupplierMaster> FoundSuppliers
        {
            get { return foundSuppliers; }
            set { if (foundSuppliers == value) return; foundSuppliers = value; OnPropertyChanged("FoundSuppliers"); }
        }
  
        private string searchText;
        public string SearchText
        {
            get { return searchText; }
            set { if (searchText == value) return; searchText = value; OnPropertyChanged("SearchText"); }
        }
  
        private void Search()
        {
                FoundSuppliers = (from sm in SupplierMaster where sm.SupplierName.ToUpperInvariant().StartsWith(SearchText.ToUpperInvariant()) select sm).ToList();    //Here the SearchText property is always null **ISSUE**
                FoundSuppliers = FoundSuppliers.OrderBy(n => n.SupplierName).ToList();            }
        }
  
  
XAML:
  
                        <telerik:RadComboBox Height="23" Name="txtSearchBox" TabIndex="1" HorizontalAlignment="Left" 
                                         Width="246" IsEnabled="True" VerticalAlignment="Top" IsEditable="True" IsTextSearchEnabled="True"
                                         IsTextSearchCaseSensitive="True"  Text="{Binding SearchText}"
                                         TextSearchMode="StartsWithCaseSensitive" Margin="0,3" 
                                         ItemsSource="{Binding SupplierMaster}" 
                                         DisplayMemberPath="SupplierName" 
                                         SelectedValuePath="SupplierName"
                                         SelectedItem="{Binding SelectedSupplier}" EmptyText="Name starts with..."
                                         >
                            <telerik:RadComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </telerik:RadComboBox.ItemsPanel>
                    </telerik:RadComboBox>


Please advice if this is possible or if I am missing something.

Thanks,

Gabe.
John
Top achievements
Rank 1
 answered on 16 Sep 2011
1 answer
180 views
Can any of the telerik controls make a true "heatmap" ..  i.e. one that's based strictly on data and not laid over an actual geographical map.

Something like: 

http://finviz.com/map.ashx?t=sec

In that case, the data set is something along the lines of:

Sector (Light Blue)
Sub-Sector (Yellow)
Symbol - label for each box
Market Cap - Size of each box
Today's return - Color of each box, scaled from -3 for red to +3 for green.

Syncfusion has this: http://www3.syncfusion.com/products/user-interface-edition/wpf/chart/heat-map

?

-Peter
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 16 Sep 2011
1 answer
87 views
Is there a way to display a message to the user when the bound collection is empty?
I was able to add a custom class to do this for the GridView, but I need to be able to do this with the Tab Control. Right now, it just appears to be blank and I'd like to display a message informing the user on how to create the collection.
Tina Stancheva
Telerik team
 answered on 16 Sep 2011
1 answer
109 views
Is there a built in way to force the data entry on the RadDataForm to upper case as the user types?
Pavel Pavlov
Telerik team
 answered on 16 Sep 2011
5 answers
210 views
I am creating the Gauges in code (based on a config file) with a Scale, Ranges, and Indicator Needle... mostly from these two examples: http://www.telerik.com/community/forums/wpf/gauges/how-to-build-and-create-dynamic-indicator-in-vb-code-instead-of-xml.aspx and http://www.telerik.com/community/forums/wpf/gauges/adding-gauge-only-with-code.aspx. It works well so far.
I would also like to add a CustomTickMark to the Gauges similar to this post... http://www.telerik.com/community/forums/wpf/gauges/how-do-i-make-a-label-inside-a-gauge.aspx but  I need to do it in code rather than XAML. There are several variations of the code I have tried below... none of them seem to work. No label is displayed and also, it throws an error (below) when it's run.

Any help/info/example would be very much appreciated.
Dim tl As New TickList
tl.Name = "ticklist" & gauges.Count.ToString
Dim ctm As New CustomTickMark
ctm.Name = "CustomTickMark" & gauges.Count.ToString
ctm.Template = GetInternalLabel()
 
tl.Items.Add(ctm)
scale.Ticks.Add(tl)
Private Function GetInternalLabel() As ControlTemplate
       Dim l As FrameworkElementFactory = New FrameworkElementFactory(GetType(TextBlock))
       'l.SetValue(Ellipse.FillProperty, Brushes.AliceBlue)
       'l.SetValue(Ellipse.MarginProperty, New Thickness(2))
       l.SetValue(TextBlock.TextProperty, "Test")
 
 
       Dim cv As FrameworkElementFactory = New FrameworkElementFactory(GetType(Canvas))
 
       'grid.SetValue(Grid.MarginProperty, new Thickness(5));
 
 
       cv.AppendChild(l)
 
 
       Dim ct As New ControlTemplate(GetType(CustomTickMark))
 
       'Dim cp As New ContentPresenter
       'cp.Name = "cp" & gauges.Count.ToString
       ''Dim cv As New Canvas
       ''cv.Name = "cv" & gauges.Count.ToString
       'cp.Content = cv
       ''Dim l As New TextBlock
       ''l.Name = "label" & gauges.Count.ToString
       ''l.Text = "test"
       ''cv.Children.Add(l)
 
       ct.VisualTree = l
 
 
       Return ct
   End Function
System.ArgumentNullException was unhandled
  Message=Value cannot be null.
Parameter name: reference
  Source=PresentationCore
  ParamName=reference
  StackTrace:
       at System.Windows.Media.VisualTreeHelper.HitTest(Visual reference, Point point)
       at Telerik.Windows.Controls.Gauges.GaugeHelper.CheckPointOver(FrameworkElement element, Point point) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Gauge\GaugeHelper.cs:line 62
       at Telerik.Windows.Controls.Gauges.GaugeHelper.CheckMouseOver(FrameworkElement element, MouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Gauge\GaugeHelper.cs:line 33
       at Telerik.Windows.Controls.Gauges.ScaleBase.ScaleBase_MouseMove(Object sender, MouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Gauge\Scales\ScaleBase.cs:line 1426
       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.MouseDevice.Synchronize()
       at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFDashboard.Application.Main() in C:\Users\jcrumpton\Documents\Visual Studio 2010\Projects\WPFDashboard\WPFDashboard\obj\x86\Debug\Application.g.vb:line 64
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Sia
Telerik team
 answered on 16 Sep 2011
1 answer
139 views
After installing 2011 Q2, I get a NullReferenceException:
System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.GridView.Automation.GridViewCellAutomationPeer.GetNameCore() in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\GridView\GridView\GridView\Automation\GridViewCellAutomationPeer.cs:line 146
  InnerException:
 
This happens after I load the data (22 rows). The first 11 are visible. It happens repeatedly with this set of data but no problem with other data. Went back to 20010 Q2 SP2 and it works fine.
Vlad
Telerik team
 answered on 16 Sep 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?