Hi!
In the AutoCompleteBox in Suggest mode, when I enter some search text, the control always select the first element of the filtered list. Conversely, when I delete a char of my search text, nothing is selected in the filtered list even if it contains items.
Is it a way to always select the first item (even if a delete is done) or to always select nothing (event if I put chars).
Thanks for your answer!
Alex
Hi
Is it possible to select multiple nodes in TreeView after clicking on one node and then dragging mouse just like we do in GridView. Basically I need to implement DragElementAction property in Treeview but cannot find it in this control.
Any help would be greatly appreciated.
Hi,
I have a class that inherit form MapGeometryView that create a custom PathGeometryData that is displayed on a RadMap. This shape represent a container for other item displayed on a RadMap. Since the shape is bound to a lat/long position it become very small when I zoom out. Is there a way to add a padding (in pixel) to the shape so that it keeps a reasonable size when I zoom out ?
Thank you,
Etienne
I just wanted to share a simplified version of a wrapper service for the DesktopAlert that we use to handle Images from multiple sources - see below.
I trust that someone will find this useful.
Enjoy!
Graeme
1. Resource Image references
1.
<
ResourceDictionary
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2.
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
>
3.
<
BitmapImage
x:Key
=
"MailImage"
UriSource
=
"Images/Mail.png"
/>
4.
<
BitmapImage
x:Key
=
"ContactImage"
UriSource
=
"Images/Contact.png"
/>
5.
</
ResourceDictionary
>
2. Type References to images
1.
public
enum
AppAlertIconType
2.
{
3.
Mail,
4.
Contact,
5.
Url = -1
6.
}
3. Alert service interface (we use MEF)
1.
public
interface
IAppAlertService
2.
{
3.
void
ShowMessage(
string
header,
string
content,
string
imageUrl,
int
showDuration = 5000,
double
width = 48,
double
height = 48);
4.
void
ShowMessage(
string
header,
string
content, AppAlertIconType icon,
string
imageUrl =
""
,
int
showDuration = 5000,
double
width = 48,
double
height = 48);
5.
void
ShowMessage(
string
header,
string
content, Image image,
int
showDuration = 5000,
double
width = 48);
6.
void
CloseAllAlerts();
7.
}
4. Alert Service
01.
public
class
AppAlertService : IAppAlertService
02.
{
03.
RadDesktopAlertManager manager =
new
RadDesktopAlertManager(AlertScreenPosition.TopRight);
04.
05.
public
void
ShowMessage(
string
header,
string
content,
string
imageUrl,
int
showDuration = 5000,
double
width = 48,
double
height = 48)
06.
{
07.
this
.ShowMessage(header, content, AppAlertIconType.Url, imageUrl, showDuration, width, height);
08.
}
09.
10.
public
void
ShowMessage(
string
header,
string
content, AppAlertIconType icon,
string
imageUrl =
""
,
int
showDuration = 5000,
double
width = 48,
double
height = 48)
11.
{
12.
Func<AppAlertIconType, Image> GetResourceImage =
new
Func<AppAlertIconType, Image>(t =>
new
Image { Source = Application.Current.FindResource(
string
.Format(
"{0}Image"
, t.ToString()))
as
ImageSource, Width = width, Height = height });
13.
Func <
string
, Image> GetWebImage =
new
Func<
string
, Image>(t =>
new
Image { Source =
new
BitmapImage(
new
Uri(t, UriKind.Absolute)), Width = width, Height = height });
14.
this
.ShowMessage(header, content, icon == AppAlertIconType.Url ? GetWebImage(imageUrl) : GetResourceImage(icon), showDuration, width);
15.
}
16.
17.
public
void
ShowMessage(
string
header,
string
content, Image image,
int
showDuration = 5000,
double
width = 48)
18.
{
19.
manager.ShowAlert(
new
DesktopAlertParameters
20.
{
21.
Header = header,
22.
Content = content,
23.
Icon = image,
24.
IconColumnWidth = width,
25.
IconMargin =
new
Thickness(10, 0, 20, 0),
26.
ShowDuration = showDuration
27.
});
28.
}
29.
30.
public
void
CloseAllAlerts()
31.
{
32.
manager.CloseAllAlerts();
33.
}
34.
}
5. Usage
1.
IAppAlertService alertService =
new
AppAlertService();
2.
alertService.ShowMessage(
"header"
,
"content goes here"
, AppAlertIconType.Mail);
3.
alertService.ShowMessage(
"header"
,
"content goes here"
, AppAlertIconType.Url,
"http://greywolf.critter.net/images/gallery/critters/2007-09-14-happy-pink-unicorn.jpg"
);
Hi,
i have sortabletelrik grid with 10 columns.bt default telerik provides sorting option.
i need to customize the sorting facility,i mean ,say i have these two columns with colums1 and columns2. when i click on column header column1,it should not sort.This can be done by setting isortable=false in XAML.But my problem is,wen i click on column2 for sorting,it takes up the first column data for sorting which should not happen. The data of column1 should be freezed wen ever i click on sort on any column header of the grid,it has to exclude coulmn1 and den sort.
Please see the required output in the example.
Ex before sort
column1 column2
A1 Oligo 1
C1 Oligo 2
F1 Oligo 3
A2 Oligo 4
B2 Oligo 5
After sort
column1 column2
A1 Oligo 5
C1 Oligo 4
F1 Oligo 3
A2 Oligo 2
B2 Oligo 1
and one more condition is, this freezing should only happen wen sorting is clicked,not by default. Please reply ASAP.
Hi,
After a necessary downgrade form 2015.2.728.45 to 2015.1.0401.45 CartesianChart is not showing up.
Code:
<telerik:ChartDataSource x:Name="ChartDataSource1" Width="500" Height="400"
ItemsSource="{Binding Items}"
SamplingUnit="Day"
SamplingUnitInterval="1" Grid.Row="0" Grid.Column="1"
Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center"/>
<telerik:RadCartesianChart x:Name="RadChart1" Width="495" Height="450" Grid.Row="0" Grid.Column="1"
Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center">
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeCategoricalAxis LabelFormat="dd.MM" Title="{x:Static languages:Lang.TimesheetTransTime}"
DateTimeComponent="Ticks"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Title="{x:Static languages:Lang.CostHours}" Padding="0,20,0,0" Margin="0,20,0,0" />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:BarSeries ShowLabels="True"
CategoryBinding="TimesheetTransDateTime"
ValueBinding="Hours"
ItemsSource="{Binding ElementName=ChartDataSource1}">
</telerik:BarSeries>
</telerik:RadCartesianChart>
In version 2015.2.728.45 everything was working correctly.
Is there something I'm supposed to know?
I have a RadChartView in which I'm displaying multiple series using the ChartSeriesProvider. The series needs to react to user inputs. However, since they are being generated by the series provider, there is no way to attached event handlers to these series. How can I handle events on these automatically generated series?
Thank you!