RadPropertyGrid and UITypeEditor

2 posts, 0 answers
  1. Radoslaw
    Radoslaw avatar
    1 posts
    Member since:
    Nov 2008

    Posted 22 Nov 2011 Link to this post


        It is possible to get RadPropertyGrid instance from EditValue function (from UITypeEditor class) ?

  2. Ivan Petrov
    Ivan Petrov avatar
    717 posts

    Posted 24 Nov 2011 Link to this post

    Hello Radoslaw,

    Thank you for writing.

    You can get the RadPropertyGrid from inside the EditValue method using the following code snippet:

    PropertyGridItem item = context as PropertyGridItem;
    if (item != null)
      RadPropertyGrid grid = item.PropertyGridTableElement.ElementTree.Control as RadPropertyGrid;

    I hope this will help. Should you need further assistance, I would be glad to provide it.
    Kind regards,
    Ivan Petrov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Back to Top