<
Style
TargetType
=
"{x:Type ListBoxItem}"
>
<
Setter
Property
=
"telerik:StyleManager.Theme"
Value
=
"Metro"
/>
</
Style
>
Hello Telerik
I have the following problem:
When I use docking and I use a single pane at the buttom Capture1.PNG then maximize the Window, then maximize the buttom pane Capture2.png, then restore down the Window, the pane will stay the same (maximized) size Capture3.png. The buttom pane will make the tabs disappear and if I use AutoHide Option it will exced the Window size Capture4.png.
Hello,
I have 2 questions about RADTreeView for WPF:
1) I need to store a value alongside header in my tree nodes. Every tree node will have the follwoing information:
Name
Record #
However, only Name will be visible in the tree (stored as Header). Record # will not be visible but should be stored for background processing. Other tools typically have a Value property alongside Header (or Text). Does Telerik's TreeView allow for storing other data elements in a node?
2: I have a ContextMenu in my tree. Here is the code for the menu's click event:
private void TreeContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
// Get the clicked context menu item
RadMenuItem menuItem = ((RadRoutedEventArgs)e).OriginalSource as RadMenuItem;
string header = menuItem.Header as string;
switch (header)
{
case "Add":
// code to insert a new node below the highlighted node.
break;
case "Delete":
// code to delete the highlighted node in the tree.
break;
}
}
A) How can I insert a new node below the currently selected node in the tree?
B) How can I delete the currently selected node?
Thanks,
Hamid
Hello,
I have an old project containing a GridView with a GridViewCheckBoxColumn binded to a bool type data property.
With 2011-Q3 the application works. The checkbox state is set accordingly to
the property value.
Yesterday I have installed 2012-Q1 and I have noted that this column does not
work anymore. Although the data property has a value of "true", the
checkbox is unchecked. If I try to manually check the checkbox, when the cell
loses focus the checkbox is automatically unchecked.
Also, when the cell loses focus and the checkbox is checked, in the Output window the following message is recorded:
"A first chance exception of type 'System.ArgumentException' occurred in System.ComponentModel.DataAnnotations.dll"
Perhaps you can take a look into this problem.
Thank you.
<
telerik:RadGridView
Name
=
"gridFields"
Grid.Row
=
"7"
Grid.ColumnSpan
=
"4"
ItemsSource
=
"{Binding Path=FieldsConfig}"
CanUserReorderColumns
=
"False"
AutoGenerateColumns
=
"False"
ShowInsertRow
=
"True"
RowEditEnded
=
"gridFields_RowEditEnded"
AddingNewDataItem
=
"gridFields_AddingNewDataItem"
ShowGroupPanel
=
"False"
CellValidating
=
"gridFields_CellValidating"
Deleting
=
"gridFields_Deleting"
IsFilteringAllowed
=
"False"
CanUserFreezeColumns
=
"False"
CanUserSortColumns
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Nume camp"
UniqueName
=
"Name"
DataMemberBinding
=
"{Binding Path=Name}"
/>
<
telerik:GridViewDataColumn
Header
=
"Col.CSV"
UniqueName
=
"CSVColumn"
DataMemberBinding
=
"{Binding Path=CSVColumn}"
TextAlignment
=
"Right"
/>
<
telerik:GridViewDataColumn
Header
=
"Camp formular web"
UniqueName
=
"WebFormFieldName"
DataMemberBinding
=
"{Binding Path=FormDataFieldName}"
/>
<
telerik:GridViewCheckBoxColumn
Header
=
"Specifica fis.continut"
UniqueName
=
"ContainsFilename"
DataMemberBinding
=
"{Binding Path=ContainsFilename}"
AutoSelectOnEdit
=
"True"
EditTriggers
=
"CellClick"
/>
<
telerik:GridViewDataColumn
Header
=
"Valoare implicita"
UniqueName
=
"DefaultValue"
DataMemberBinding
=
"{Binding Path=DefaultValue}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
public
static
readonly
DependencyProperty ContainsFilenameProperty = DependencyProperty.Register(
"ContainsFilename"
,
typeof
(
bool
),
typeof
(FieldConfigData),
new
FrameworkPropertyMetadata(
false
));
[XmlIgnore]
public
bool
ContainsFilename
{
get
{
return
(
bool
)GetValue(ContainsFilenameProperty); }
set
{ SetValue(ContainsFilenameProperty, value); }
}
[XmlAttribute(AttributeName =
"is_content_filename"
)]
public
byte
IsContentFilename
{
get
{
return
ContainsFilename ? (
byte
)1 : (
byte
)0; }
set
{ ContainsFilename = ((
byte
)value == 1); }
}
Hello
I added columns in code and try to order the columns by using
Display Index it not works.
Is there way to control the index of the columns in the grid?
Best regards
Ehud