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

Custom Editor with DropDownListElement

1 Answer 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabrizio
Top achievements
Rank 1
Fabrizio asked on 13 May 2019, 07:13 AM

Hello,

I'm contacting you because I would like help. I created a CustomEditor that inherits BaseGridEditor. I also created a CustomElement that inherits from LightVisualElement. In this element, I have a DockLayoutPanel which contains on the left a RadDropDownListElement, on the right a RadButtonElement and the rest of the space contains a RadMaskedEditBoxEditorElement. The DropDownListElement contains 2 items.

The problem is that when I edit the cell, my CustomElement appears but the DropDownListElement is not resized.

If I replace the Dock panel with a StackLayoutElement it's ok but the stacklayoutpanel's width is divided into 3 equal parts.

How to use DockLayoutPanel and autosize?

Thank you

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 May 2019, 11:34 AM
Hello, Fabrizio,     

According to the provided information, it is not clear enough what is the exact custom implementation that you have in the grid's editor. However, in order to ensure that the RadDropDownListElement will be sized as expected, you can specify its MinSize property.

However, if you are still experiencing any further difficulties, it would be greatly appreciated if you can provide the whole code for the custom RadDropDownListElement that you have. Thus, we would be able to plug the custom editor in my sample project, make an adequate analysis of the precise case and assist you further. Thank you in advance.

Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. Thank you for your understanding. 

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Fabrizio
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or