Telerik Forums
UI for Silverlight Forum
10 answers
51 views
SInce the latest update, whenever space is pressed to get a space in a textbox, it just changes highlighting of the panel bar without inputting the space.
Petar Mladenov
Telerik team
 answered on 12 Feb 2020
6 answers
24 views

Hi,

Currently the AutoCompleteBox will display items only when you type at least one letter.

Is it possible to display all items when AutoCompleteBox gets a focus? Basically if I click on the AutoCompleteBox I would like to see the list of all available items, then if you start typing it will filter as standard.

 

Cheers

Mike

Michal
Top achievements
Rank 1
 answered on 21 Jan 2020
1 answer
2 views

My provider is set to BingRestMapProvider and set in the initialization with a MapMode.RoadOnDemand. Map shows the correctly. However when I use the MapCommand Bar to switch to Aerial it goes to MapMode.Aerial and when I go back to Road it goes to MapRoad.Road. I need to use both RoadOnDemand and AerialOnDemand all of the time. 

I've tried setting the Mode property of my provider on the OnLayOutUpdated event but it only works 80% of the time.

 

James
Top achievements
Rank 1
 answered on 17 Jan 2020
6 answers
4 views
When the combo is open and you press a key, it scrolls to show the first item starting with that letter at the bottom of the list in the scrollviewer.  Typically you want to see that item and other items beginning with that letter, but the other items are off the bottom.  Is it possible to scroll the scrollviewer so that the highlighted row is as near the top of the scrollviewer as possible?
Petar Mladenov
Telerik team
 answered on 17 Jan 2020
19 answers
121 views
Hi,

The property editor is split in 2 columns:

Label Column
Editor Column

I want to create a property editor with following features:

It must show a readonly textbox that contains the path of a file
At the right side i must have a button that allows opening a filedialog
I do not want the property editor to show a horizontal scrollbar

I have created a readonly textbox that contains the path of the file, it will contain a button with which i can open a filedialog. I have made a template that will show a texttrimmed textblock. So far so good...

I know the horizontal scrollbar can be turned of in the property editor. But the textbox always resizes so it can show the entire path. This means that if the text in it is to long, i will not see the button on the right.

I have found there is a property for the Width of the label column but not for the width of the editor column, so how can i set the MaxWidth of my editor match the width of the Editor column?

What i want to achieve is like the visual studio property editor... that there is no horizontal scrollbar shown at any time... but that the user would have to resize the propertygrid for seeing the entire path of the file.

Is this possible?


Dilyan Traykov
Telerik team
 answered on 14 Jan 2020
6 answers
128 views
Hi there, Please help me solve this problem

I'm working with the exporting the RadDocument into different file format.(HTML,Docx,PDF)
I have data in the table which are both English and Thai language(My native language). At this time, exporting to HTML and Docx work fine. However, when I export this into PDF, the table cell that has a Thai text becomes unreadable (It becomes a kind of square text or something). I already set a font family (such as MS Arial Unicode) in which Thai language can be used but exporting still failed.

The source code of setting font is some kind like this.

            Telerik.Windows.Documents.Model.Span span = new Telerik.Windows.Documents.Model.Span();
            span.FontFamily = new FontFamily("Arial Unicode MS");
            paragraph.Inlines.Add(span);
            paragraph.TextAlignment = Telerik.Windows.Documents.Layout.RadTextAlignment.Center;
            cell.Blocks.Add(paragraph);

Do I need to thing set something else?

Thanks
Martin
Telerik team
 answered on 03 Jan 2020
4 answers
41 views

The following code produces a confirm Window but it displays the control object type name and not what I assigned to the DialogParameters

Resulting text in Confirm Window:

"Telerik.Windows.Controls.DialogParameters"

Here is my code:

            Dim rWParameters As New Telerik.Windows.Controls.DialogParameters
                    With rWParameters

                        .Header = "CONFIRMATION"
                        .Content = "My message to confirm action"
                        .OkButtonContent = "Yes"
                        .CancelButtonContent = "No"
                    End With

            RadWindow.Confirm(rWParameters, AddressOf ShowConfirmationOnClosed)

 

    Private Sub ShowConfirmationOnClosed(sender As Object, e As WindowClosedEventArgs)

        Try

            If e.PromptResult = "Yes" Then
                DoSomething()
            End If

        Catch ex As Exception

            Dim Problem As New Errors(ex)

        End Try

    End Sub

If I do NOT use DialogParameters and just do this:

    RadWindow.Confirm("My message to confirm action", AddressOf ShowConfirmationOnClosed)

I see the confirm Window with correct message. 

So it looks like RadWindow.Confirm doesn't accept DialogParameters even though the sample in your documentation indicates it does or should.

I'm using version 2016.1.112.1050 of Telerik.Windows.Controls ... I realize there is a more recent version, but no indication it fixes a problem with RadWindow.Confirm.

Help needed ASAP, please.

Cheers, Rob.

Dinko
Telerik team
 answered on 26 Dec 2019
11 answers
112 views
HI,

    In silverlight main page i am having button.If i click button it will open a radwindow. It is opening properly.In that radwindow i am having an image. If user single clicks or double clicks a image it has open a another radwindow.

   In imageMouseLeftButton_Down event i have written code like this

  

Private

 

 

Sub moPART_AnswerImage_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles moPART_AnswerImage.MouseLeftButtonDown

 

     Dim oImageViewer As New Radwindow2
     oImageViewer.ShowDialog()

 


End
Sub

Find below is the xaml for Radwindow2

 

<tkNavigation:RadWindow  

   x:Class="RAMWare.Controls.dlg_PhotoViewer"

  xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

  xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

  xmlns:msControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

  xmlns:tkNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

  xmlns:tkControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

  Height="Auto"

  Width="Auto"

  WindowStartupLocation="CenterScreen"

  HorizontalAlignment="Center"

  VerticalAlignment="Center">

  

<Grid x:Name="LayoutRoot" Margin="1">
<Grid.RowDefinitions>

   <RowDefinition Height="Auto" /> 
  <RowDefinition Height="Auto" />

 </Grid.RowDefinitions>

 <StackPanel Orientation="Vertical">
         <Image x:Name="imgPhoto" Height="Auto" Width="Auto" Stretch="Uniform" />
<StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
 <StackPanel Width="Auto" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">

 <Button  

x:Name="cmdRotateCounterClockwise"
Content="RotateCounterClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Left" />

 <Button
    x:Name="cmdOK" 

    Content="OK"

        Width="75"

        Height="23"

        HorizontalAlignment="Center" />

 <Button

 x:Name="cmdRotateClockwise"

 Content="RotateClockwise"

 Width="Auto"

 Height="23"

 HorizontalAlignment="Right" />

 </StackPanel>
<TextBlock

 x:Name="tblError"></TextBlock>

 </StackPanel>

 </StackPanel>

 </Grid> </tkNavigation:RadWindow>

 
If user single click a image present in Radwindow1 it has to open Radwindow2.If user double cliks of a image present in Radwindow1 also opens a Radwindow2.But user double clicks a image, radwindow2 is opening behind Radwindow1 that is parent window.
How to solve the problem?

Dinko
Telerik team
 answered on 26 Dec 2019
13 answers
122 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
Telerik team
 answered on 16 Dec 2019
3 answers
33 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
Telerik team
 answered on 12 Dec 2019
Top users last month
Psyduck
Top achievements
Rank 3
Bronze
Iron
Iron
VB
Top achievements
Rank 1
Iron
serge
Top achievements
Rank 2
Bronze
Iron
Iron
Michael
Top achievements
Rank 1
Iron
Sachita
Top achievements
Rank 1
Iron
Iron
Iron