This is a migrated thread and some comments may be shown as answers.

RadTextBoxElement clipping issue with custom SimpleListViewVisualItem

5 Answers 159 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 18 Apr 2017, 01:30 AM

Hello to all!

I'm using C#.

I have a RadListView that I only ever display in ListView mode. I have created a custom SimpleListViewVisualItem descendant, which has a DockLayoutPanel, inside of which is a GridLayout and another DockLayoutPanel, and inside the second DockLayoutPanel is a RadButtonElement, two RadDropDownListElement, and a RadTextBoxElement.

The first two attachments show the issue, both with and without the vertical scrollbar.

I ***believe*** I have all the appropriate ClipDrawing states set, because the RadDropDownListElement is clipping just fine (third attachment).

Is this a known issue?

Thanks.

Sam.

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 18 Apr 2017, 10:37 AM
Hi Robert,

Thank you for writing.

You need to use RadTextBoxControlElement. The RadTextBox is hosting the standard .NET textbox inside it and this is why it is drawn over other elements (it's a control). 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sam
Top achievements
Rank 1
answered on 18 Apr 2017, 06:31 PM

Hello Dimitar,

Yup ... that was it!!!

I got confused because appending Element to all the other controls just worked, and I never stumbled on that page you referenced.

it might be worthwhile to modify the examples list in the http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/layout/predefined-layout-panels/predefined-layout-panels section, as every one of them use the plain ol' RadTextBoxElement.

Thank you for the speedy response.

Sam.

0
Sam
Top achievements
Rank 1
answered on 18 Apr 2017, 08:42 PM

Hello Dimitar,

I think I just ran into the same issue with the RadDateTimePickerElement component, and unfortunately, there doesn't seem to be a RadDateTimePickerControlElement. ;-}

What do you recommend I use if I have a need for a Date/Time picker control that correctly clips and can be used in a RadListView?

Thank you.

Sam.

0
Dimitar
Telerik team
answered on 19 Apr 2017, 08:12 AM
Hello Robert,

In this case, there is no way to replace the textbox used in the RadDateTimePickerElement. Perhaps you can use another approach and place the list view in a scrollable panel and use its scrolling functionality (make the list view large enough so all items are visible).  

In addition, I want to mention that we now have a control that provides similar functionality: Overview | RadDataFilter.

I hope this helps.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sam
Top achievements
Rank 1
answered on 19 Apr 2017, 04:28 PM
Thank you for the confirmation about the limitations of the RadDateTimePickerElement, as well as for the recommendations of the scrollable panel and the RadDataFilter.
Tags
ListView
Asked by
Sam
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Sam
Top achievements
Rank 1
Share this question
or