
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 !

Assume MultiSelect = true; And also assume they are all checkboxes.
Scenario--
I multi-select several nodes and when they are selected, I want to check any node within my selection and select all nodes that are selected..

I have my gridview working with data tables for the data sources for both the master template and the child template. Can you tell me how to do two things?
1. I would like to set the width for that column that expands and collapses the child rows. (It has that [+] and [-] symbol in it.)
2. Is there a way to collapse the child rows for a parent row when I click to expand a different parent row?
Thank you,
Gary

I have a radgrid which has a context menu attached to it (this is not a header context menu).
I need to customize the context menu based upon which column has been clicked.
How to I retrieve the unique name of the column that has been clicked when the OnRowContextMenu event fires in javascript?
Can you please point me to documentation that provides this information or failing that provide a code snippet.
e.g.
var TelerikRowContextMenu = function (sender, eventArgs) {
var objEventTarget = eventArgs.get_domEvent();
var lngRowNumber = eventArgs.get_itemIndexHierarchical();
var strColumnUniqueName = ??????????????????????????;
}
Hello...
i have headache for this scenario ... i don't know what best scenario i need to use
i have grid
User can insert new data but if i doesn't valid it will show to another from that show master table...
but if valid the next column on grid will fill with data...( i use LINQ)
i have tried many solution but nothing work for me...
help me plz...
Hello,
How to get row index / position on validating ... ?
i have use this code
Dim baris As Integer = GridDetail.CurrentRow.Index
and the return always -1
how to fix this... ?
*i use vb.net
Thanks