Telerik Forums
UI for WPF Forum
3 answers
229 views
Hi guys,

We are a Bing Maps user, and I'd like to make use of the RadMap control to present maps in our .net 4.0 winforms apps.  The problem I'm having is that the internet traffic has to go through a proxy server.  The RadMap control appears to be picking up the proxy settings and is directing its traffic through it, but its presenting 'anonymous' credentials to the proxy, rather than using the current user's domain credentials.  As such, the requests are being denied and no map tiles are returned.

I've tried setting the current thread principal to a new Windows Principal, based on the currently authenticated user, but that hasn't helped...

Any suggestions?

Best regards,

Tom
Andrey
Telerik team
 answered on 15 Mar 2013
1 answer
154 views
Not a major issue. I'm using the 2012-2 version.

I was doing some proxy debugging using Fiddler. When then proxy was requiring authentication, RadMap was not working (now fixed). However, this caused the map to constantly request tiles; it never stops. I saw the same behavior when disabling the network connection. Is there something I can do to change this, either in my code or the RadMap source code? There will be occasions when our software when not have an available network connection.

On a related note, it seems to always request the same tile from the same server. Would it make more sense to request the tile from a random server? For example OSM has the "a,b,c,d" servers. If it can't connect to one, it should try another (ie, call GetTile again).

EDIT - Similar problem, maybe the same. How can I forceably stop a provider? When I am done with a particular screen, I don't dispose the form, I simply hide it and clear the data. However, the nonstop tile requests are still going on. I've tried removing the Provider, clearing the MapSources, setting the MapSource to Nothing, but it just keeps on trying to download the tiles.
Andrey
Telerik team
 answered on 15 Mar 2013
0 answers
226 views

Hi


I am using BusyIndicator which is WPF extended control for my scanning application using C# and WPF. When user starts scanning operation, I want to show Please wait.... busybox with my scanning window grayed out .
Following is my code :

 

private

 

 

void btnStart_Click(object sender, RoutedEventArgs e)

 

{

    ScanBusyInd.IsBusy =

 

true;

 

 

 

    var bw = new BackgroundWorker();

 

    bw.DoWork += (s, args) =>

    {

 

 

 

        Action action = delegate()

 

        {

 

 

            PerformScanning();

 

        };

        Dispatcher.Invoke(

 

DispatcherPriority.Background, action);

 

    };

    bw.RunWorkerCompleted += (s, args) =>

    {

        ScanBusyInd.IsBusy =

 

false;

 

    };

bw.RunWorkerAsync();
}


Problem :-
My application is graying out the window, but its not displaying Please wait... busy box. I have followed all the steps related with dispatcher object and all. Also I tried to set visibility for busy indicator as well by  ScanBusyInd.Visibility = Visibility.Visible; But its not working.

Even I have put all control assignment related code in dispatcher block for every control like below
Dispatcher.Invoke(new Action(() => pvScanImage.Image = PageSideScan.Streams[0]));

 

 

 

But still busy indicator is not getting displayed. same thing works in other POC application.

I am not able to understand what am I missing here ?


Screen scenario :-
My screen is having so many WPF and third party scanning viewer related controls
After clicking on start scan button, lot of process is going on, like scanning various pages, savning them, creating some text files, assigning some values to control.

Could anybody suggest, what more needs to be done here?

Quick suggestions will be really helpful and appreciated.
Thanks
Sarang
 

Sarang
Top achievements
Rank 1
 asked on 15 Mar 2013
0 answers
87 views
Hi,
I use RadGridView 6.2.12.1017 version For My Project, I want to export ItemSource Of grid for Telerik Reporting (Q3 2012) . Is It Possible?
Kshiti
Top achievements
Rank 1
 asked on 15 Mar 2013
4 answers
190 views
Dear Telerik Team!

I'm trying to create some kind of configuration tool for ScheduleView control view settings. I'd like to initialize ScheduleView with some default values for orientation, visible days, minor and major tick length. In one of my xaml user controls code I have radcombobox definied:
<telerik:RadComboBox
                ItemsSource="{Binding MinorTickProviders}"
                SelectedItem="{Binding SchedulerViewSettings.MinorTickLength,Mode=TwoWay}">
                <telerik:RadComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding ., Converter={StaticResource TickConverter}}" />
                    </DataTemplate>
                </telerik:RadComboBox.ItemTemplate>
            </telerik:RadComboBox>

ComboBox ItemsSource is definied like this:
private List<ITickProvider> minorTickProviders;
public List<ITickProvider> MinorTickProviders
        {
            get
            {
                return this.minorTickProviders;
            }
}
 
this.minorTickProviders = new List<ITickProvider>();
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(2, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(5, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(10, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(15, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(20, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(30, 0, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(0, 1, 0, 0, 0)));
this.minorTickProviders.Add(new FixedTickProvider(new DateTimeInterval(0, 2, 0, 0, 0)));
this.minorTickProviders.Add(AutomaticTickLengthProvider.MinorProvider);

I also use this converter:
public class TickConverter : IValueConverter
        {
            public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
            {
                FixedTickProvider provider = value as FixedTickProvider;
 
                if (provider != null)
                {
                    string interval = string.Format("{0:d2}:{1:d2}:00", provider.Interval.Hours, provider.Interval.Minutes);
                    if (provider.Interval.Hours == 0 && provider.Interval.Minutes == 0)
                    {
                        if (provider.Interval.Days == 1)
                        {
                            interval = "1 day";
                        }
                        else
                        {
                            interval = string.Format("{0} days", provider.Interval.Days);
                        }
                    }
                    return interval;
                }
                return "Automatic conversion";
            }
 
            public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
            {
                throw new NotImplementedException();
            }
        }

I bind combobox SelectedItem property to the following field:
private ITickProvider mMinorTickLenght;
        public ITickProvider MinorTickLength
        {
            get { return mMinorTickLenght; }
            set
            {
                mMinorTickLenght = value;
            }
        }
 
MinorTickLength = new FixedTickProvider(new DateTimeInterval(20, 0, 0, 0, 0));

But it doesn't work. ComboBox item is not selected. Could you please help me and point me in to the right direction?

Thanks in advance
Very best regards!
Krzysztof Kaźmierczak


testst
Krzysztof
Top achievements
Rank 1
 answered on 14 Mar 2013
2 answers
250 views

Properties are not displayed in the propertygrid if the class implements ICustomTypeDescriptor. Why?
--

/// <summary>
    /// Interaction logic for Myobjects.xaml
    /// </summary>
    public partial class Myobjects : Page
    {
        public Myobjects()
        {
            InitializeComponent();
 
            radPropertyGrid1.AutoGeneratingPropertyDefinition += new EventHandler<Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs>(radPropertyGrid1_AutoGeneratingPropertyDefinition);
             
            radPropertyGrid1.Item = new Variable();
             
        }
 
        void radPropertyGrid1_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e)
        {
            AttributeCollection attributes = TypeDescriptor.GetProperties(typeof(Variable))[e.PropertyDefinition.DisplayName].Attributes;
            BrowsableAttribute browsable = attributes[typeof(BrowsableAttribute)] as BrowsableAttribute;
            if (browsable != null)
            {
                e.Cancel = !browsable.Browsable;
            }
 
            //CategoryAttribute category = attributes[typeof(CategoryAttribute)] as CategoryAttribute;
            //if (category.Category == "Common")
            //{
            //   e.Cancel = false;
            //}
 
        }
    }
 
    public class Variable : ICustomTypeDescriptor,  INotifyPropertyChanged
    {
        [Browsable(false)]
        [Category("Common")]
        public int Id { get; set; }
        [Category("Common")]
        public string Name { get; set; }
 
        [XmlAttribute("mandatoryCondition")]
        [Category("Required Field")]
        public string MandatoryCondition { get; set; }
 
        [XmlAttribute("mandatoryConditionMessage")]
        [Category("Required Field")]
        public string MandatoryConditionMessage { get; set; }
 
        /// <summary>
        /// Datatype of the Variable
        /// </summary>
        private DataType dataType = DataType.String;
        [XmlAttribute("dataType")]
        [Category("Common")]
        public DataType DataType
        {
            get
            {
                return this.dataType;
            }
            set
            {
                this.dataType = value;
                NotifyPropertyChanged("DataType");
            }
        }
 
        #region ICustomTypeDescriptor Members
        public AttributeCollection GetAttributes()
        {
            return TypeDescriptor.GetAttributes(this, true);
        }
        public string GetClassName()
        {
            return TypeDescriptor.GetClassName(this, true);
        }
        public string GetComponentName()
        {
            return null;
        }
        public TypeConverter GetConverter()
        {
            return TypeDescriptor.GetConverter(this, true);
        }
        public EventDescriptor GetDefaultEvent()
        {
            return TypeDescriptor.GetDefaultEvent(this, true);
        }
        public PropertyDescriptor GetDefaultProperty()
        {
            return TypeDescriptor.GetDefaultProperty(this, true);
        }
        public object GetEditor(Type editorBaseType)
        {
            return null;
        }
        public EventDescriptorCollection GetEvents(Attribute[] attributes)
        {
            return TypeDescriptor.GetEvents(this, attributes, true);
        }
        public EventDescriptorCollection GetEvents()
        {
            return TypeDescriptor.GetEvents(this, true);
        }
        public object GetPropertyOwner(PropertyDescriptor pd)
        {
            return this;
        }
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return this.GetProperties();
        }
 
        // Method implemented to expose mandatory field properties conditionally, depending on DataType property
        public PropertyDescriptorCollection GetProperties()
        {
            var props = new PropertyDescriptorCollection(null);
 
            foreach (PropertyDescriptor prop in TypeDescriptor.GetProperties(this, true))
            {
                if (prop.Category == "Common" && this.DataType != DataType.String)
                    continue;
                if (prop.Category == "Range" && (this.DataType != DataType.Integer && this.DataType != DataType.Float))
                    continue;
                if (prop.Category == "Required Field")
                    continue;
                props.Add(prop);
            }
 
            return props;
        }
        #endregion
 
        #region INotifyPropertyChanged Members
        public event PropertyChangedEventHandler PropertyChanged;
 
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        #endregion
    }
 
    public enum DataType
    {
        String,
        Integer,
        Float,
        Boolean,
        Date
    }



recotech
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
103 views
Hi!
I am trying to apply a theme on the RadCarousel control and nothing seems to work

This is the code snippet that I tried:
<telerik:RadCarousel Name="Carousel" telerik:StyleManager.Theme="Vista">

There is no other global theme on the application
What is the correct way to do this?

 Thank you
Conner
Maya
Telerik team
 answered on 14 Mar 2013
1 answer
85 views
Hi,

how can i add my own ValidationSummaryStyle? Now it is on the bottom of the Dataform. Can i move this up to the top?

Thanks
Best Regards
Rene 
Maya
Telerik team
 answered on 14 Mar 2013
3 answers
159 views
Hi,

I'm using VS2012sp1 and Telerik 2013.1.220.45 trial.

I am creating a RadWindow with this XAML code :

<telerik:RadWindow x:Class="WPF.TestForm1"
        Height="300" Width="300" Header="Hello">
    <Grid>
         
    </Grid>
</telerik:RadWindow>

I have changed the C# inherited class to RadWindow.

When I click on the designer Window, the designer shows a NullReferenceException with this stacktrace :
à MS.Internal.VSUtilities.GetBuildAction(IVsHierarchy hierarchy, UInt32 itemid)
  Ã  Microsoft.VisualStudio.ExpressionHost.HostServices.HostSourceItem.<>c__DisplayClass9.<Microsoft.Expression.DesignHost.IHostSourceItem.get_BuildItemType>b__7()
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall)
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call)
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvoke(Action action, Int32 sourceApartmentId, Int32 targetApartmentId, Int32 originId, WaitHandle aborted)
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvokeInbound(Action action, Int32 targetApartmentId)
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
  Ã  Microsoft.VisualStudio.ExpressionHost.HostServices.HostSourceItem.Microsoft.Expression.DesignHost.IHostSourceItem.get_BuildItemType()
  Ã  Microsoft.Expression.DesignHost.HostSourceItemData..ctor(IHostSourceItem item)
  Ã  Microsoft.VisualStudio.ExpressionHost.HostServices.HostProject.<Microsoft.Expression.DesignHost.IHostProject.get_InitializationData>d__7e.MoveNext()
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteEnumerable`2.RemoteEnumerationThunk.<>c__DisplayClass8.<NextChunk>b__7()
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
  Ã  Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

I have no VS extensions (just those VS installs by itslef like nuget, and Telerik extensions).

Does someone have any idea ?
Alek
Telerik team
 answered on 14 Mar 2013
1 answer
142 views
Hi,

I am new in silverlight and telerik controls. I am working on project in which I have a xaml file in which I have couple of tabs, and textboxes and labes are defined via xaml. My problem is that I do not have access to those textboxes and labels in design view (with mouse).
Tina Stancheva
Telerik team
 answered on 14 Mar 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?