Hello,
I want to display a DataForm for enter a new element in a grid. But this grid is generated dynamically.
For that, i use a: "dynamic data = new ExpandoObject()" and feed that with: "data.field1 = "string"; data.field2 = 10" and bind my DataForm on it: "<telerik:RadDataForm x:Name="RadDataForm" AutoGenerateFields="True"
AutoCommit="True" EditEnded="DataForm_OnEditEnded"
AutoEdit="True" CommandButtonsVisibility="Commit,Cancel"
CurrentItem="{Binding Path=DataContext.data, RelativeSource={RelativeSource Self}}"
Header="Hello world"
KeyboardNavigation.TabNavigation="Cycle">
</telerik:RadDataForm>"
My problem now, the DataForm change my Int type on string type...
Have you some idea?
Hi, I have a docking pane hosting a Winform property control.
When I set the pane to a Autohide state, the Winform property in it disappears.
I'm using the latest 2016 Q2 release. Please help!
Hi,
I want to apply a different CurrentVisibleRangeText dependant on what view definition the user is in.
So DayView would be in the format ddd dd\MM\yyyy
Timeline and MonthView would be dd\MM\yyyy - dd\MM\yyyy
So I've changed the CurrentInterval ContentControl to use VisibleRange instead of CurrentVisibleText :
<
ContentControl
x:Name
=
"CurrentInterval"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Right"
Style
=
"{StaticResource NavigationIntervalStyle}"
Content
=
"{TemplateBinding VisibleRange}"
/>
Now how do I apply the NavigationIntervalStyle? So far I have :
<
Style
x:Key
=
"NavigationIntervalStyle"
TargetType
=
"ContentControl"
>
<
Setter
Property
=
"Margin"
Value
=
"5"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Right"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
>
<
TextBlock
Margin
=
"0 1 0 0"
Text
=
"{Binding Path=Start, StringFormat={}{0:ddd dd/MM/yyyy}}"
Foreground
=
"White"
/>
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
This works ok for DayView but obviously not giving me what I want for Timeline or MonthView - I would presume I would need another TextBlock linked to VisibleRange.End - but how to set the Visibility of this textbox so I don't get it in DayView? Also would it be at all feasible for MonthView to run off the actual Month date and not just what is visible.. i.e. so it says 01/07/2016 - 31/07/2016 and not 27/07/2016 - 31/07/2016 (which is the actual VisibleRange of the month).
I am changing ItemsSource of RadGridview.
gv.ItemsSource = enumerated;
gv.Rebind();
After that I am clearing all the Descriptors
gv.FilterDescriptors.Clear();
gv.SortDescriptors.Clear();
gv.GroupDescriptors.Clear();
Then reapplying all Descriptors.
gv.FilterDescriptors.AddRange(filters);
gv.SortDescriptors.AddRange(sorts);
gv.GroupDescriptors.AddRange(groups);
Hi,
I want the ability for the user to be able to click on a Group Header (in DayView) and for the Group Header and Row to be Selected - however a few issues I cant seem to solve :
I'm overriding the GroupHeaderBaseStyle but can't seem to bind the Command on the GroupHeaderButton to my ViewModel - how do I go about achieving this so I can catch when the user has clicked on each GroupHeader?
There doesn't seem to be an IsSelected property for the GroupHeader - so how would I go about storing this information as per the user clicking on each header?
Thanks.
Hi,
I need to implement DragDrop feature between listBoxes and also re-order within ListBox. I know there is one good sample from Demo, see attachment screenshot. But What I am missing here is the Drop preview line. I know in RadTreeView, there is the default DragDrop behavior comes with a good Drop preview line and API for me to enable/disable it. How can I do the same for ListBox?
I thought about using RadTreeView to take advantage of the default DragDrop behavior, but don't know how to make the UI layout to look like this one in ListBox. Please advise if there is any alternatives to get the layout like the one in the demo, and the drop preview line in RadTreeView.
Many thanks,
Mingxue
When I import the word file attached, it has a stackOverFlow exception when I running following code
foreach (var section in document.Sections)
{
document.CaretPosition.MoveToEndOfDocumentElement(section);
editor.ChangeSectionColumns(SectionColumnsLayout.One);
}
Is there any way to solve it, or how can I modify the word file to avoid the crash?
Hi,
I want to to move dataform's button (add, edit, delete, navigation, cancel and commit) outside of the DataForm maintaining their appearance , so when I change application's theme from windows8 to windows8touch , the appearance of the buttons change like if it was in the dataform.
thanks