<Grid> <telerik:RadGridView x:Name="MyGridView" AutoGenerateColumns="True" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserReorderColumns="False" CanUserSortColumns="False" CanUserResizeRows="True" IsFilteringAllowed="False" ShowGroupPanel="False" ColumnWidth="250" ShowColumnHeaders="False" RowIndicatorVisibility="Collapsed" SelectionUnit="Cell" CanUserFreezeColumns="False" FrozenColumnCount="1" EditTriggers="Default"> <telerik:RadGridView.Columns> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid>
public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); List<Item> items = new List<Item>(); items.Add(new Item() { TimeIn = DateTime.Now }); items.Add(new Item() { TimeIn = DateTime.Now }); items.Add(new Item() { TimeIn = DateTime.Now }); items.Add(new Item() { TimeIn = DateTime.Now }); this.MyGridView.ItemsSource = items; } } public class Item { public DateTime TimeIn { get; set; } public string SomeTextItem { get; set; } public string SomeTextItem1 { get; set; } public string SomeTextItem2 { get; set; } public string SomeTextItem3 { get; set; } public string SomeTextItem4 { get; set; } public string SomeTextItem5 { get; set; } public string SomeTextItem6 { get; set; } public string SomeTextItem7 { get; set; } public string SomeTextItem8 { get; set; } public string SomeTextItem9 { get; set; } public string SomeTextItem10 { get; set; } public string SomeTextItem11 { get; set; } public string SomeTextItem12 { get; set; } public string SomeTextItem13 { get; set; } public string SomeTextItem14 { get; set; } public string SomeTextItem15 { get; set; } public string SomeTextItem16 { get; set; } public string SomeTextItem17 { get; set; } public string SomeTextItem18 { get; set; } public string SomeTextItem19 { get; set; } }
Hello,
I have a RadMaskedInput to gather information on a form. I have a button that saves the information on the form, then clears the form. When I click the RadMaskedInput a second time to enter a new value, it uses the a cache of the previously entered value, which I have to delete before I can continue typing or some parts of the previous text will remain with my new text. Is there a way to disable this caching so that that RadMaskedInput never shows previous data that was entered?
Thanks.
What am I doing wrong?
Hello,
Is there any way to create vacation schedule for employees like here it is:
https://i.pinimg.com/564x/00/7c/eb/007ceb32e93f101dbc8f88409dbbda4f.jpg
Can I do this with GanttView?
Hi there,
I am currently testing the autocompletebox in our project and I am having some troubles understanding certain parts of it. I had a look at the documentation and the examples, but they have not really helped me.
Our scenario is simple:
A user wants to send a message to another user. The ACB is used to search for the contact and add it to the recipients list. (At least thats the plan)
We have an ObservableCollection holding all Contacts of a user. I have bound that to the ItemsSource of the ACB.
<
telerik:RadAutoCompleteBox
x:Name
=
"txtSearchBoxCC"
ItemsSource
=
"{Binding ContactsList}"
DisplayMemberPath
=
"Fullname"
/>The ACB works as intended, I can search and select contacts as I wish.
My problem is, that I would just like to check for all the selected Items in the ACB by the time the user hits "send".
Also, how can I prepopulate the Textbox with some of the Items in the ItemsSource ?
Hi,
Would it be possible to add a 'Compact' view of the Cards where the Description is collapsed?
Example attached.
Thanks,
Richard
Hello,
I currently new with the WPF and the telerik technologies and i was wondering if the Telerik has any badge controls (see the attach file for exemple).
if yes, is it possible to add a image on the side in which the format in a SVG.
Thanks
Hi,
i use a RadView with an ItemSource ViewModel and several RadGridViewColumns. Also i created a Button bound to the ExportCommand which works fine.
The performance is not very well, but ok. My questions: Is it possible to export only defined Columns and not all out of the GridView? The Problem is, that i have about 20 Columns and in the pdf is looks like a mass.
Thanks
Best regards
Rene
I'm using RadOpenFolderDialog with the new filters capability to show only my "custom places" on the left side of the dialog; I need to force the user to only be able select from a list of configured folders or children of them. But there is a problem.
When filtering is enabled in this way, the dialog always requires the user to select something inside of the selected custom place. You can't just click the custom place on the left. The "Select Folder" button doesn't enable. You then have to go to the right hand pane and click one of its subfolders before the "Select Folder" button enables.
This is a problem. Some of my custom places don't have subfolders within them so sometimes there is nothing on the right to select.
If I do not have filtering enabled then selecting the custom place does enable the "Select Folder" button.
For example, I ran my code with just one custom place configured. "F:\Remote" I made the filter log which folders it allows and which it denies. I've attached an image (snap18.png) that shows what it looks like when I select that custom place. Nothing enables.
Here is my dialog code. The filter only allows folders that are equal to or subfolders of one of the custom places:
void
SelectFolder(List<
string
> configuredFolders)
{
var dlg =
new
Telerik.Windows.Controls.RadOpenFolderDialog
{
Multiselect =
false
,
Owner = Application.Current.MainWindow,
Header =
"Select a folder"
ShowNetworkLocations =
false
,
};
foreach
(var f
in
configuredFolders)
{
dlg.CustomPlaces.Add(f);
Log.Debug($
"Added custom place {f}"
);
}
// Hook up to the DirectoryRequesting event to prevent folders
// we don't want to allow
dlg.DirectoryRequesting += (sender, args) =>
{
// Get a normalized file path for easy comparison
var name = FileUtils.NormalizePath(args.Directory.FullName);
// Only allow folders that are not equal to or a child of one of the
// configured folders
if
(!folders.Any(f => FileUtils.IsParentOrEqual(f, name)))
{
Log.Debug($
"DirectoryRequesting: DENY {name}"
);
args.Cancel =
true
;
}
else
{
Log.Debug($
"DirectoryRequesting Allow {name}"
);
}
};
var result = dlg.ShowDialog();
// Do something with the result
}
Here is the log output
GelSight.Mobile.App: 21:28:53.241 [1] DEBUG - IsLive: Device IsLive => False
GelSight.Mobile.App: 21:28:53.273 [10] DEBUG - ThreadProc: Live
thread
proc stopping
GelSight.Mobile.App: 21:28:53.478 [1] DEBUG - .ctor: Added custom place F:\Remote
GelSight.Mobile.App: 21:28:53.509 [1] DEBUG - .ctor: DirectoryRequesting: DENY C:
GelSight.Mobile.App: 21:28:53.538 [1] DEBUG - .ctor: DirectoryRequesting: DENY D:
GelSight.Mobile.App: 21:28:53.570 [1] DEBUG - .ctor: DirectoryRequesting: DENY F:
GelSight.Mobile.App: 21:28:53.601 [1] DEBUG - .ctor: DirectoryRequesting Allow F:\Remote
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored
for
items already of the ItemsControl's container type RadWatermarkTextBox
System.Windows.Data Error: 40 : BindingExpression path error:
'IsSearchActive'
property not found on
'object'
''
OpenFolderDialogViewModel
' (HashCode=251973)'
. BindingExpression:Path=IsSearchActive; DataItem=
'OpenFolderDialogViewModel'
(HashCode=251973); target element is
'FileDialogSearchPane'
(Name=
''
); target property is
'IsSearchViewActive'
(type
'Boolean'
)
At one point, I even hacked this code to specifically allow the root folder "F:" also just to see what would happen. It did not fix the problem, it just made "F:" appear on the left (where I don't want it).
So is there way to achieve what I want?