Telerik Forums
UI for WPF Forum
0 answers
564 views

I have a popup shown below which has a ContentControl using a Template. In the ContentControl I want to concatenate two strings in the xaml.  I am using similar popups in different screens where only the Content varies with control name of the screen.I want to split this content into two static resources(static resource1=Plate Name , static resource2=can't contain special characters ) and want to use it in xaml as concatenated.

Is there any way to achieve this ? Any small help would be appreciated!

                        <Popup Name="PlateNameInvalidPopup" VerticalOffset="4">
                            <ContentControl Template="{StaticResource InvalidCharPopupTemplate}" 
                                Content="Plate Name can't contain special characters">
                            </ContentControl>
                        </Popup>

Dhanya
Top achievements
Rank 1
 asked on 17 Feb 2020
48 answers
2.4K+ views

Is there any way to have the dropdown close itself after someone has selected an item in the gridview?  Effectively, I'd like a property called something like AllowMultiSelect, which I would set to false, and then the dropdown closes after the first item is selected.  Or maybe, if SelectionMode is set to Single, shouldn't the dropdown box close on its own after a selection is made?

Closing it manually during SelectionChanged works except in one case: where someone starts typing into the search box and then uses the mouse to select an item.  The incomplete search text doesn't get cleared out of the textbox - as if calling CloseDropDown() prevents cleanup from happening.

In any case, being able to make the multi column combobox behave like a single-select control would be great.  Any suggestions?  Thanks in advance.

[using the Q3 2018 release]

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 14 Feb 2020
10 answers
145 views
How to Limit the RadDiagramShape's movement within its Container range,
or just can move the shape between two Containers?
wu
Top achievements
Rank 1
Veteran
 answered on 14 Feb 2020
3 answers
1.1K+ views

Hello,

If I write the following XAML code in a wizard page:

<Label Target="{Binding ElementName=txt_Code}"
            Text="Code:" />

<TextBox Name="txt_Code" />

The binding is not made between the Label and the TextBox and VS shows the following error:

Cannot find source for binding with reference 'ElementName=txt_Code'. BindingExpression:(no path); DataItem=null; target element is 'Label' (Name=''); target property is 'Target' (type 'UIElement').

 

PS: Sorry for the formatting, but the formatting options are not working on this page...

 

Martin Ivanov
Telerik team
 answered on 13 Feb 2020
1 answer
173 views

How can I add add a georeferenced bitmap image to a map?  This is a bitmap with known position (latitude and longitude of top left corner) and fixed pixel size (in degrees latitude and longitude).  The following code will place an image on the map (with the top left corner in the right spot):

<telerik:RadMap x:Name="radMap" ZoomLevel="14" Center="35.561852, -83.732723">
    <telerik:RadMap.Provider>
        <telerik:OpenStreetMapProvider StandardModeUserAgent=""/>
    </telerik:RadMap.Provider>
    <telerik:InformationLayer>
        <Image Source="/Images/sample.png" telerik:MapLayer.Location="35.561852, -83.732723">
            <telerik:MapLayer.HotSpot>
                <telerik:HotSpot X="0.0" Y="0.0" XUnits="Fraction" YUnits="Fraction" />
            </telerik:MapLayer.HotSpot>
        </Image>
    </telerik:InformationLayer>
</telerik:RadMap>

However, this obviously does not scale the image according to the pixel size in degrees.

 

 

Martin Ivanov
Telerik team
 answered on 13 Feb 2020
2 answers
83 views

Dear Developers,

 

Thank you very much for this library.

Although, could anyone tell if it is possible to preserve row details when exporting and having a button to toggle their visibility like it looks inside RadGridView?

Preview: https://i.imgur.com/xjXpTgL.png

 

For example, there is an option to add details using HTML exporting and appending to string like here https://docs.telerik.com/devtools/silverlight/controls/radgridview/events/export-events#exporting is shown, but this will make these details visible by default.

Is it possible to hide them by default and have something like a checkbox or button to show/hide these details in exported for each row?

 

Best regards

uvuvuv
Top achievements
Rank 1
 answered on 13 Feb 2020
2 answers
2.9K+ views

Hi,

I am using <telerik:GridViewDataColumn in which I have a DataTemplate. In this Datatemplate,I have my popup. I have written the below code in file say for example Sample.xaml. In the eventhandler 'PreviewTextInput' written in file Sample.xaml.cs, I need to set the 'BeadPlexNameInvalidPopup.IsOpen' property to true. Is there any way to access the popup in file Sample.xaml.cs?

Any small help would be appreciated!

 

    <telerik:GridViewDataColumn x:Name="GridviewColumn" Header="{x:Static res:Resources.BeadPlexName}"
                                    DataMemberBinding="{Binding Name}"
                                    Width="*"
                                    EditTriggers="CellClick">
                                    <telerik:GridViewDataColumn.CellEditTemplate>
                                     <DataTemplate>
                                        <Grid x:Name="Grid1">
                                            <TextBox x:Name="BeadPlexNameTextBox" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" MaxLength="70"
                                             PreviewTextInput="BeadPlexName_OnPreviewTextInput">
                                            </TextBox>
                                                <Popup Name="BeadPlexNameInvalidPopup" >
                                                    <ContentControl Template="{StaticResource InvalidCharPopupTemplate}" >
                                                    </ContentControl>
                                                </Popup>
                                            </Grid>
                                     </DataTemplate>
                                    </telerik:GridViewDataColumn.CellEditTemplate>
                                </telerik:GridViewDataColumn>

Dhanya
Top achievements
Rank 1
 answered on 13 Feb 2020
3 answers
747 views
Hello,

I need to validate numericUD value when typing, so i have the following code:
<telerik:RadNumericUpDown HorizontalAlignment="Center"
                        Value="{Binding Path=AdditionalCosts,Mode=TwoWay,
                 UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                        IsEditable="True" AutoReverse="False" Minimum="0"
                  SmallChange="1" LargeChange="5" ValueFormat="Numeric" IsInteger="True" />

But it doesn't call setter when i type (only when i click up/down arrows). What should i do to allow numericUD call setter of AdditionalCosts property when i type?

Thanks.
Dilyan Traykov
Telerik team
 answered on 12 Feb 2020
1 answer
79 views

     I am programatically moving the scroll bar on my chart as data comes in but I want it to stop if a user takes control of the scroll bar on the horizontal axis.

Is there a simple way to do this?

Right now I am keying off of the rangechanged event to see if my minimum is less than the previous minimum but this only works for scrolling backwords and I cannot do this for forwards since the event is fired when I need to shift it programatically also. 

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Feb 2020
5 answers
362 views

Hello,

With this provider, the mini map is no more displayed.

That's certainly because you have introduced the StandardModeUserAgent property and this property is not copied to the mini map...

Petar Mladenov
Telerik team
 answered on 11 Feb 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?