Telerik Forums
UI for WPF Forum
10 answers
237 views
I am prototyping a Windows WPF application using Windows 7's built-in multitouch gestures.  I'd like to use telerik controls but before making the purchase I'd like to know if using the c# source will allow for me to capture gesture messages?
Sergej Mertens
Top achievements
Rank 1
 answered on 01 Mar 2011
4 answers
113 views
I have the following code:

<
Gauges:RangeList>
    <Gauges:RadialRange Min="0" Max="50"
                                        StartWidth="0.02" EndWidth="0.03"
                                         Location="Inside"
                                         Background="#7F579132"
                                         BorderBrush="{x:Null}"
                                         IndicatorBackground="#FF4AB408" Offset="-0.07"/>
        <Gauges:RadialRange Min="50" Max="75"
                                          StartWidth="0.03" EndWidth="0.04"
                                          Location="Inside"
                                          Background="#7F9FAB32"
                                          BorderBrush="{x:Null}"
                                          IndicatorBackground="#FFF7E40D" Offset="-0.07"/>
     <Gauges:RadialRange Min="75" Max="100"
                                            StartWidth="0.04" EndWidth="0.05"
                                            Location="Inside"
                                            Background="#7F973C3C"
                                            BorderBrush="{x:Null}"
                                            IndicatorBackground="Red" Offset="-0.07" LabelForeground="{x:Null}"/>
                                                          
</Gauges:RangeList>
<Gauges:IndicatorList Height="247" Width="247">
    <Gauges:StateIndicator Left="0.8" Value="{TemplateBinding Value}" UseRangeColor="True"/>

And the State Indicator shows the colour of the range rather than IndicatorBackground.
What is the reason for that?
Vitalij
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
214 views
we have created two tab items in RadTabContol....one of them contains "browsercontrol". Browser is not getting refreshed by executing webbrowser.Refresh().

Regards
Deepak
Kiril Stanoev
Telerik team
 answered on 01 Mar 2011
4 answers
539 views
Hello Telerik Team,
                                   I have a doupt in radcolorpicker with radgridview.
We are fan of telerik controls.
         In my last project our master page contains 5 fields including radcolorpicker.our aim is the row details are shown in radgridview with diffrent color.The color value is user gives when adding each  entries.

     Here i am binding in XAML below:-
<Label Content="Color" Height="24"  Margin="5,8,191,0" Name="label24" FontSize="11" Grid.Column="1" Grid.Row="3" VerticalAlignment="Top" />
<telerik:RadColorPicker SelectedColor="{Binding Path=Colour,Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Height="24" Margin="124,8,0,0" Name="rclrColour" TabIndex="24" FontSize="11" Grid.Column="1" Grid.Row="3" Width="39" />
The color value is stored in database as hexadecimal value.

i am using RowLoaded event for display color details.
private void rgrdCompanyViewAll_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
        {
            var row = e.Row as GridViewRow;
            if (row != null)
            {
                    var cell = ((CompanyBO)e.Row.Item).Colour;
                    if (cell != null)
                    {
                        var value = cell;
                        e.Row.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value.ToString()));
                    }
            }
        }

Here is my QUESTION:-
Every thing is fine.But the colors display in radgridview are changed each and every minute when i am using scroll bar(vertical).

i make mistake at anywhere?

Pls suggest me?

sivakanth
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
101 views
Hi there, 

I have implemented Drag and Drop using RadDragAndDropManager. And in order to make the DragCue consistent with RadTreeListView, I would like to re-use RadTreeListView's DragCue since I use Drag and Drop capability in RadTreeListView.

so, how can I achieve that?
So far I've done this:
ContentControl dragCue = RadDragAndDropManager.GenerateVisualCue();
dragCue.Content = draggedItem.DataContext;
dragCue.ContentTemplate = this.Resources["DragCueTemplate"] as DataTemplate;
e.Options.DragCue = dragCue;

But, the appearance is still different with RadTreeListView.

Thanks and best regards, 

Arinto
Tsvyatko
Telerik team
 answered on 01 Mar 2011
1 answer
271 views
Hi,

after invoke command from button:
           <telerik:RadButton  Content="Cancel"         
          Command="telerik:RadGridViewCommands.CancelRowEdit"
          CommandTarget="{Binding ElementName=nameOfRGV}" />

edit mode is canceled but values in cells are not undoing...
I use ActionAfterLostFocus="None" attribute on my gridview and in RowEditEnded event dictiorany OldValues is empty...
How can i force gridview to load old data?

I use List<MyClass> as ItemsSource for gargridview instead of ObservableCollection<MyClass>. Can it cause the problem?

I think that my source list is updated after each cell editing. I thought that source will be updated after commitedit event...
Nedyalko Nikolov
Telerik team
 answered on 01 Mar 2011
4 answers
346 views

Hello,

I’m having a issue with RadGridView for WPF.

When dragging a column header into the grouping bar, It throws the following exception:

System.InvalidOperationException was unhandled.

Message=Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer. Alternatively, wrap your root panel in an <AdornerDecorator> element.

I have tried to wrap the root panel (and any other panel) into an AdornerDecorator in xaml code. Alternatively, I tried to create an AdornerLayer by code and wrap the panel/s in AdornerDecorators but the result was always the same.

I’m using RadGridView in a custom control derived from Control class. It applies a generic template defined at generic.xaml file and this control is part of an independent assembly referenced in a main project.

Thank you  very much for your help.


Tsvyatko
Telerik team
 answered on 01 Mar 2011
1 answer
123 views
I have a list box that drops an item onto a treeView.   The TreeView is bound to a List<> and has a two level template.  The Item is dropped on the top level items and need the item to expand when the new item is dropped on it.

private void OnDropInfo(object sender, DragDropEventArgs e)
       {
             
               if (e.Options.Status == DragStatus.DropComplete)
               {
                     
                   ListBoxItem item = e.Options.Source as ListBoxItem;
                   DeviceApp payload = item.Content as DeviceApp;
                   freeApps.Remove(payload);
                   appList.UnselectAll();
                   appList.ItemsSource = freeApps;
                   stationTree.ItemsSource = stations;
                   appList.Items.Refresh();
                   stationTree.Items.Refresh();
                     
               }
                
             
       }


The listBox is the source and i have added some clunky Refresh() to get both ItemsSources to update and show the changes.  I know i am doing this wrong, but the tree branch still does not expand on drop.

Any help would be great! 
Thanks,
Brian
Tina Stancheva
Telerik team
 answered on 01 Mar 2011
1 answer
134 views
Hi
I am trying to set a transition between user controls. when the user control have only a textbox every thing works fine, but when trying to put a RadGridView instead of the textbox in the user control, i cant see it.

My code: 
 <telerik:RadTransitionControl Name="TransitionControl" Grid.Column="1"></telerik:RadTransitionControl>

c#
MyGridViewControl gv = new MyGridViewControl ();  
TransitionControl.Content = gv; Thanks
George
Telerik team
 answered on 01 Mar 2011
0 answers
76 views
Hi Telerik,

I'd like to allow drag and drop at any selected row and at particular column but not at all column position, how can I achieve this? For example, D&D is only allowed at any selected row and at 1st column only.

Thanks.
Cheau
Cheau-Long
Top achievements
Rank 1
 asked on 28 Feb 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
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?