I've been searching and searching lol - the nested properties are impressive! Somewhere in side a RadDropDownListEditor there's a ListElement where I can change the back color and border color and size...but after several hours, this eludes me.
Can someone show me how to access the ListElement of a RadDropDownListEditor please :) THANK YOU!!!
-C
Hi folks :)
Is there any way to tell a specific column inside a grid to "Stretch to Fill" so it completely fills the leftover space in a grid where the column widths added up do not equal the total width of the grid control?
Hard to describe so out comes Photoshop so I can create a couple of images to demonstrate what I'm talking about:
The first image shows the grid "as-is" the second images shows the effect I'm looking for: The "Description" column would stretch to fill all remaining space.
Any help would be very much appreciated!
-Curtis
When I am using the CheckState=TriStateMode.Indeterminate, all works fine when I check and uncheck.
But when I call CollapseAll or ExpandAll, all parents that have a Indeterminate check get removed.
This is easily replicable. Is there a workaround?
Hi,
I think I have found a problem with the drag and drop behavior.
I have implemented the drag and drop as explained in the documentation, but when I test with a touch screen, it doesn't work.
I think it's because only OnMouseDownLeft(MouseEventArgs e) function is overrided in RowSelectionGridBehavior class, but can't find a way to handle that.
Hi,
How can I hide PivotAggregateDescriptorContainer in code? Is it something like ShowFilterArea property, but for Aggregates area? Can't find one...
Thanks
Alex
I'm trying to create a ListView with custom items, as shown in the attached image. The lower textbox can be of varying height due to containing more or less text lines.
I have tried a horizontal StackLayout with three text boxes (RadTextBoxElement). I then use a vertical StackLayout containing the first stacklayout plus a fourth textbox. I have used the sample in the docs as a basis.
I have the listview type as ListViewType.ListView. I also have AllowArbitraryItemHeight = true.
I can't get the lower textbox to display larger than a single line, despite containing multiple text lines.
The custom visual item class is below. In this version I'm actually using a RadLabelElement for the lower item instead of a textbox as it does show relatively ok, but has drawbacks like not being able to select & copy text from it.
using
System;
using
System.Drawing;
using
System.Windows.Forms;
using
Telerik.WinControls.Layouts;
using
Telerik.WinControls.UI;
namespace
UCStudio.UI
{
public
class
RuleVisualItem : SimpleListViewVisualItem
{
private
RadTextBoxElement _idElement;
private
RadTextBoxElement _sequenceElement;
private
RadTextBoxElement _nameElement;
private
RadLabelElement _ruleTextElement;
private
LightVisualElement _contentElement;
private
StackLayoutPanel _vStackLayout;
private
StackLayoutPanel _stackLayout;
protected
override
void
CreateChildElements()
{
base
.CreateChildElements();
_stackLayout =
new
StackLayoutPanel
{
Orientation = Orientation.Horizontal,
//AutoSize = true,
EqualChildrenWidth =
true
,
ShouldHandleMouseInput =
false
,
NotifyParentOnMouseInput =
true
};
_vStackLayout =
new
StackLayoutPanel
{
Orientation = Orientation.Vertical,
ShouldHandleMouseInput =
false
,
NotifyParentOnMouseInput =
true
};
_contentElement =
new
LightVisualElement
{
StretchHorizontally =
true
,
MinSize =
new
Size(120, 0),
ShouldHandleMouseInput =
false
,
NotifyParentOnMouseInput =
true
};
_idElement =
new
RadTextBoxElement {Text =
""
};
_idElement.TextBoxItem.ReadOnly =
true
;
_stackLayout.Children.Add( _idElement);
_sequenceElement =
new
RadTextBoxElement {Text =
""
};
_sequenceElement.TextBoxItem.ReadOnly =
true
;
_stackLayout.Children.Add( _sequenceElement);
_nameElement =
new
RadTextBoxElement {Text =
""
};
_nameElement.TextBoxItem.ReadOnly =
true
;
_stackLayout.Children.Add( _nameElement);
_stackLayout.Children.Add( _contentElement);
_ruleTextElement =
new
RadLabelElement
{
Text =
""
,
ShouldHandleMouseInput =
false
,
NotifyParentOnMouseInput =
true
};
_vStackLayout.Children.Add( _stackLayout);
_vStackLayout.Children.Add( _ruleTextElement);
Children.Add( _vStackLayout);
}
protected
override
void
SynchronizeProperties()
{
base
.SynchronizeProperties();
Text =
""
;
_contentElement.Text =
""
;
_idElement.Text = Convert.ToString( Data[
"RuleItemId"
]);
_sequenceElement.Text = Convert.ToString( Data[
"Sequence"
]);
_nameElement.Text = Convert.ToString( Data[
"Name"
]);
_ruleTextElement.Text = Convert.ToString( Data[
"RuleItemText"
]);
}
protected
override
Type ThemeEffectiveType =>
typeof
(SimpleListViewVisualItem);
}
}
Also I don't know why I need to use the LightVisualElement _contentElement; If I remove this the textboxes in the horizontal stacklayout show as minimal size.
Another thing is I need the third textbox in the top group to be of varying size, i.e. to fit itself to its content but it isn't, because of EqualChildrenWidth = true (which I need or the textboxes show as tiny, again).
I'm struggling to find the correct combination of techniques to achieve the above. Any help appreciated.
If my parent node has several nodes that have several nodes when I use the Filter, it correctly filters.
However, in a filtered state, I check some boxes either in an indeterminate state or checked state, I notice that removing the filter also removes the checkboxes I had placed. What I was trying to achieve was have the user may filter and check any they may want, remove the filter and evaluate before doing another filter.
But if every time they check something in a filtered state and it gets removed in a non-filtered state, it defeats the purpose of the filter.
Any workaround?
Hi !
I'm trying to get the code behind the formatting menu for forms like aligning, uniforming the size, spacing (vertically, horizontally).. Because I have my own application with forms and I need to control them like I can do it with Visual Studio.
Can anyone help me please ?
Thank you !