DrawItem event issues

3 posts, 0 answers
  1. AME Group
    AME Group avatar
    2 posts
    Member since:
    Feb 2014

    Posted 13 Feb 2014 Link to this post


    I am upgrading all controls of my C# winform app to Telerik. I couldn't find drawitem event in RadDropDownList.

    Here is the code of combobox drawitem event:

    private void cbMyCompanyList_DrawItem(object sender, DrawItemEventArgs e)

    DataRowView drv = (DataRowView)(cbMyCompanyList.Items[e.Index]);

    int CoID = (int)(drv["CompanyID"]);
    string CoNum = (string)(drv["CompanyName"].ToString());


    using (SolidBrush sb = new SolidBrush(e.ForeColor))
          e.Graphics.DrawString(..., e.Font, ..., ...);

    How could I translate this to Telerik?

    Thanks in advance!!

  2. AME Group
    AME Group avatar
    2 posts
    Member since:
    Feb 2014

    Posted 16 Feb 2014 in reply to AME Group Link to this post

    Anyone could help this?
  3. George
    George avatar
    500 posts

    Posted 17 Feb 2014 Link to this post

    Hello Daniel,

    Thank you for contacting us.

    Since our controls are built on top of TPF it is not necessary to use graphics directly. You can read how to customize RadDropDownList in the following help article: Customizing Items | UI for WinForms Documentation.

    I hope this helps.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top