Telerik Forums
UI for WPF Forum
1 answer
202 views
Hi, Telerik.
I need your help.

I am working with Telerik RadGridView. RadGridView displays hierarchial manner.

Then I want to get  the data of a selected child gridview row and display the data in a new Page for Editing in the MouseDoubleClick event.

Is there any way for me to accomplish this?

Thank you!
Pavel Pavlov
Telerik team
 answered on 17 Mar 2010
1 answer
172 views
I would like to display the calendar in as small an area as possible and so would prefer to show only the first letter of each day (M,T,W... in English). How could I do this?

Also, I would find it useful to have a calendar that is a single column (or row) or number - a 'one line' calendar. The one square view that the present calendar has can be awkward in some form designs.  A datepicker is not appropriate here as it is required to see all dates in a month.

Thanks

jas
Kaloyan
Telerik team
 answered on 17 Mar 2010
1 answer
336 views
I ran into a bug with the RadSlider that tripped me up for a few hours.  There's an easy workaround, but I figured that this is the sort of thing that you'd want to know about so you could fix it.

Synopsis:
When a RadSlider is databound to an object, if the value that is bound to the Minimum property is set prior to setting the object that is bound to the Maximum value then your application will terminate with a StackOverflowException.

What ends up happening, (as far as I can tell), is that internally the API sees that Minimum has been set to X and so reacts by setting SelectionStart = Minimum.  The API then notices that SelectionStart > SelectionEnd and so sets SelectionStart to 0.  This cycle repeats until the stack is blown:  Selection start goes back to X, then 0, then X, then 0, then.....

Reproduction case:
I created a simple little WPF app to reproduce this problem.

XAML:
<Window x:Class="TelerikStackoverflowRepro.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" Title="MainWindow" Height="350" Width="525"
    <Grid> 
        <telerik:RadSlider Name="NumericSlider" Minimum="{Binding Minimum}" Maximum="{Binding Maximum}"                           
                           SelectionEnd="{Binding SelectionEnd, Mode=TwoWay}" SelectionStart="{Binding SelectionStart, Mode=TwoWay}" IsSelectionRangeEnabled="True"/> 
    </Grid> 
</Window> 
 


C#:
using System; 
using System.Windows; 
 
namespace TelerikStackoverflowRepro 
    public partial class MainWindow : Window 
    { 
        public MainWindow() 
        { 
            InitializeComponent(); 
 
            var data = new SelectionData(); 
            data.Initialize(); 
 
            this.DataContext = data; 
 
        } 
    } 
 
    public class SelectionData 
    { 
        private int min; 
        private int max; 
        private int selectionStart; 
        private int selectionEnd; 
         
        public int Minimum 
        { 
            get 
            { 
                return min; 
            } 
            set 
            { 
                min = value; 
                Console.WriteLine("Minimum set to " + min); 
            } 
        } 
 
        public int Maximum 
        { 
            get 
            { 
                return max; 
            } 
            set 
            { 
                max = value; 
                Console.WriteLine("Maximum set to " + max); 
            } 
        } 
 
        public int SelectionStart 
        { 
            get 
            { 
                return selectionStart; 
            } 
            set 
            { 
                selectionStart = value; 
                Console.WriteLine("SelectionStart set to " + selectionStart); 
            } 
        } 
 
        public int SelectionEnd 
        { 
            get 
            { 
                return selectionEnd; 
            } 
            set 
            { 
                selectionEnd = value; 
                Console.WriteLine("SelectionEnd set to " + selectionEnd); 
            } 
        } 
 
        public void Initialize() 
        { 
            Minimum = 6; 
            Maximum = 12; 
        } 
 
    } 
 

You can look at your console output to see the problem as it happens.

Workaround:
Setting Maximum prior to Minimum completely avoids this glitch, which is fine for now.  Hopefully you folks can patch this up so that others don't need to spend the time scratching their heads and trying to figure out what went horribly wrong with their code. =)
Kiril Stanoev
Telerik team
 answered on 17 Mar 2010
1 answer
65 views
hi!!

i have 2 texbox and i need to use them in all of the tab items

like a general controls for the tab

what can i do?

thanks for your help

oscar zapata
Miro Miroslavov
Telerik team
 answered on 17 Mar 2010
1 answer
90 views
I have the following GridViewDataColumns -

PRICE PER UNIT           QUANTITY          TOTAL COST (price/unit x quantity)

I want to update the total cost when either the unit price or the quantity changes. I'm not able to find the perfect event. I am not using CurrentCellChanged because that event will fire when cells in other columns change too (I have more columns than i've mentioned here).

Do help me out team !!!

Thanx. 
Jimit
Stefan Dobrev
Telerik team
 answered on 17 Mar 2010
2 answers
334 views

I'm using the RadMap control for an address location project. From a list, the user selects an address (lat, lon) and a Bing map is centered in the RadMap control. This works just fine. The map is drawn with the selected address centered in the RadMap control.

Now, I want to add a pushpin at the address location. Using the code below, my image is inserted but not at the correct location. The center of the 16x16 pushpin is actually the upper left corner of the RadMap control. The pushpin needs to be in the center (at least initially) of the RadMap. If the user zooms and/or pans, the pushpin also needs to pan/zoom in order to show the selected address.

This does not appear to an issue with screen coordinates vs. geographic coordinates. The upper left corner of the RadMap is 300,400 and the geographic coords are +45 (N), -90 (W). If I move the RadMap around in design and run the app again, the pushpin is always in the upper left corner.

What am I doing wrong?

Thanks,
Scott

 

 

            radMap1.Provider = new BingMapProvider(MapMode.Road, true, BingMapsKey);  
            radMap1.Center = new Location(selectedResult.Latitude, selectedResult.Longitude);  
            radMap1.ZoomLevel = 15;  
 
 
            MapPinPoint pinPoint = new MapPinPoint()  
            {  
                Background = new SolidColorBrush(Colors.White),  
                Foreground = new SolidColorBrush(Colors.Red),  
                FontSize = 14,  
                ImageSource = new BitmapImage(new Uri(@"C:\Users\XXX\Desktop\location_16x16.png", UriKind.Absolute))  
            };  
 
              
 
            MapLayer.SetLocation(pinPoint, new Location(selectedResult.Latitude, selectedResult.Longitude));  
              
            InformationLayer layer = new InformationLayer();  
            layer.Items.Add(pinPoint);  
            radMap1.Items.Add(layer); 

 

Scott
Top achievements
Rank 1
 answered on 16 Mar 2010
5 answers
233 views
Hi,

i'm using this build - RadControls_for_WPF_2009_3_1314_TRIAL.msi
coding with C# 3.5 on vs2008 and windows xp.

i got a little problem with binding of the control.

i have the following XAML:
<radInput:RadDatePicker Name="myDatePicker" /> 
<Label Content="{Binding ElementName=myDatePicker, Path=SelectedDate}" /> 

the label doesn't show the Selected Date, am i doing something wrong?

i've tried to make the same binding with TextBlock or TextBox and the same problem exists.
i've tried to bind RadTimePicker to these controls with the same Binding syntax and it doesn't work either.

thanks in advance,
Lior.
Konstantina
Telerik team
 answered on 16 Mar 2010
1 answer
252 views
The ASP.NET controls library has the ability to load items on-demand as the vertial scroll bar in a Grid is moved up or down.  Does the WPF GridView have a similar capability or am I limited to the standard paging layouts used, i.e. RadDataPager?
Vlad
Telerik team
 answered on 16 Mar 2010
0 answers
182 views
Anybody out there ?????????????

Can the transitions be used between pages...?  How?

I have a Menu page that calls other pages?


MainPage main = new MainPage();

button click ---    calls

Accounting  acct = new Accouting();

thanks...........
Jon
Top achievements
Rank 1
 asked on 16 Mar 2010
2 answers
303 views
Hi,

Is it possible to bind a string list to a gridView such that new entries can be created and the entries can be edited in the grid?
I am using Version 2009.3.1314.35.

Thank you.

Philipp
Philipp Kraft
Top achievements
Rank 1
 answered on 16 Mar 2010
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?