Telerik Forums
UI for Silverlight Forum
13 answers
201 views

I am using the latest RadComboBox for Silverlight 4 and I am finding some memory leaks when I am binding it to my view model.


Here is my RadComboBox declaration:


 

 
<telerik:RadComboBox x:Name="rcbGender" ClearSelectionButtonVisibility="Visible" 
        ItemsSource="{Binding GenderList, Mode=OneWay}" 
        ClearSelectionButtonContent="Clear" SelectedValuePath="Key" DisplayMemberPath="Name"   
        SelectedValue="{Binding Gender, Mode=TwoWay}"/>  
 

The GenderList is a property of the viewmodel:

 

 
public IEnumerable<KeyValueDataItem> GenderList  
        {  
            get { return _genderList; }  
        }  
 

This is the KeyValueDataItem class

 

public class KeyValueDataItem  
    {  
        private string _key;  
        private string _name;  
 
        public KeyValueDataItem(string key, string name)  
        {  
            _key = key;  
            _name = name;  
        }  
 
        public string Name  
        {  
            get 
            {  
                return _name;  
            }  
             
        }  
        public string Key  
        {  
            get 
            {  
                return _key;  
            }  
             
        }  
    } 


Every time I open and close the page it stays in the memory and does not get clean up by GC. I spent a lot of time debugging it with WinDbg and narrowed it down to the RadComboBox causing this problem. When I removed the radcombobox and replaced it with Windows combobox that fixed the problem. I am using the radcombobox in my application a lot and wouldn't really want to replace it with other controls.

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2019
3 answers
179 views
When I set RadPane.IsHidden to false this causes RadPane.IsActive to become true

Luckily when I use Visibility instead of IsHidden that works, but is that an accident?

I was asuming IsHidden and Visibility would be linked together not IsHidden and IsActive?

Regards,

Bayram
Dinko | Tech Support Engineer
Telerik team
 answered on 12 Dec 2019
7 answers
124 views
Hi Telerik Team,

I remember that RadRichTextBox did't support exporting and importing in DOC.It supports only DOCX.But I really have a need for DOC.Any chance that you will support that format in a future???Or may be any converter between DOC and DOCX files????
Tanya
Telerik team
 answered on 05 Dec 2019
4 answers
263 views
Hi all,

Is there a method to simply strip the newline out after a cell copy in RadGridView. Currently I'm using CopyingCellClipboardContent to manipulate the e.Value, but when I go to paste into Notepad there's a newline added. Unfortunately, we have an webapp that doesn't like the newline character.

The work around is that I add a button column to the gridview and just use this to control the clipboard content but I'd much prefer the CTRL + C method.

Cheers

Heath
Vladimir Stoyanov
Telerik team
 answered on 04 Dec 2019
1 answer
60 views

Hi

In 2015 I have developed a system using Silverlight which has a map module. I have used the RadMAp control. In this system the user could search for an address on the map using the BingSearchProvider component.

The problem is that searches have stopped working. I have investigated and you indicate that this type of search has become obstructive, which does not seem fair because you should respect those programs already developed with the versions of that year.

I need to indicate the steps to get the address search back into operation in the RadMap component.

Regards

Mauricio Grupp

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Nov 2019
8 answers
552 views
I have a pie chart with interactivity features enabled.  Clicking on a slice of the pie will cause that slice to detach (explode) and send me a chart area item click event.  If I click on an item in the legend, the pie slice still detaches, but I can't find the corresponding event.

Is there an event that I can catch when a user clicks a legend item ?

Thanks
Martin Ivanov
Telerik team
 answered on 22 Nov 2019
8 answers
191 views

I am completely new to RadTimeline and WPF in general. I'm having problems on with binding data, I was following instructions to the point from here https://docs.telerik.com/devtools/wpf/controls/radtimeline/populating-with-data/databinding and still cannot get to see object on timeline. 

Basically, I have an Appointment object, which has Period field. Period has startDate and endDate, which are DateTime object. The goal is to display appointments exactly like on picture from link.

So in my ScheduleView window, I have (I'll just write key things):

 

this.DataContext = new TestObject(); //this is like your's Product object

TestObject has and filed Data (with property of course) which is List<Item>, named just as in your example. 

In constructor of TestObject this happens:

 

public TestObject(List<Appointment> appointments) {
            List<Item> li = new List<Item>();
            foreach(Appointment ap in appointments)
            {
                li.Add(new Item(ap.Period.Start.Subtract(ap.Period.End), ap.Period.Start));
            }
            this.data = li;
        }

 

 

Item object has 2 fields:

private TimeSpan timeSpan;

private DateTime startDate;

 

Finally here is XAML:

 

 <Grid>

        <telerik:RadTimeline x:Name="telerikTimeline" Content="RadTimeline" 
                             HorizontalAlignment="Left" Height="333" Margin="45,53,0,0" VerticalAlignment="Top" Width="689"
                             PeriodStart="05/01/2019 00:00:00" 
                             PeriodEnd="05/28/2019 00:00:00" 
                             StartPath="StartDate"   
                             DurationPath="TimeSpan"
                             ItemsSource="{Binding Data}">

            <telerik:RadTimeline.Intervals>
               
                <telerik:WeekInterval />
                <telerik:DayInterval />
            </telerik:RadTimeline.Intervals>

        </telerik:RadTimeline>
    </Grid>

 

What am I missing ?? So frustrating.. :)

 

Vladimir Stoyanov
Telerik team
 answered on 21 Nov 2019
7 answers
127 views
Hello,

I Required to make the RadDiagramToolBox ItemArea on Vertical so that only one shape can display in one row next shape will be display in second line and so on.

Please find the attached screen shot how it look likes

ToolboxOrignal.Png is the Actually functionaliyt
ToolBoxItemsAreaVertial.png  is what we want to achieve.

Please let me know if you required more information.

Thanks,
Hiren
Marco
Top achievements
Rank 1
 answered on 12 Nov 2019
6 answers
859 views
I have set the IsEditable property to False, so the user can only select values from the list. Why would the backspace key allow the user to remove the selection?

I cannot find any way to prevent this behavior. In my opinion, this behavior would never be desirable, but at the very least there should be some way to turn it off.

Should I submit an issue for this?
Dilyan Traykov
Telerik team
 answered on 29 Oct 2019
0 answers
50 views

Cound not undserstand where following exception is occurring. kindly assist if possible. Thanks

Exception Detail:

Message:Exception has been thrown by the target of an invocation.

StackTrace:   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Delegate.DynamicInvoke(Object[] args)
   at SearchScreenxaml_6.BindingOperation(Object BindingState, Int32 , Action )

 

 

Inner Exception Detail:

Message: Object reference not set to an instance of an object.

StatckTrace:   at Telerik.Windows.Controls.BooleanToVisibilityConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)
   at System.Windows.Data.BindingExpression.UpdateTemporaryValue()
   at System.Windows.Data.BindingExpression.GetValue(DependencyObject d, DependencyProperty dp)
   at System.Windows.DependencyObject.EvaluateExpression(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry)
   at System.Windows.DependencyObject.EvaluateBaseValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.EvaluateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)

Asjad
Top achievements
Rank 1
 asked on 29 Oct 2019
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?