Custom Editor with DropDownListElement

2 posts, 0 answers
  1. Fabrizio
    Fabrizio avatar
    20 posts
    Member since:
    May 2019

    Posted 13 May 2019 Link to this post


    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

  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4125 posts

    Posted 14 May 2019 Link to this post

    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. 

    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.
Back to Top