Problem with horizontal scroll bar in radListControl

2 posts, 0 answers
  1. erik vazquez
    erik vazquez avatar
    2 posts
    Member since:
    Apr 2010

    Posted 26 Jul 2011 Link to this post

    Hi. I have WinForm Q1 2011.
    I have a RadListControl and I fill it from a table in a database,
    when a item is to large, dont appears the horizontal scroll bar.
    however, if I put a long row from the design view, the horizontal scrollbar is added.
    I have tried several things but nothing works, I hope your answer thanks.

    lstAreasDisponibles
    (listControl) properties :
    •    autoscroll = true
    • fitItemSize = false
    • AutoSizeItems = true

    This function fills the listControl.

    private void cargarDatosListAreaDisponible()
            {
                string query = "SELECT Vista_Cat_Adscripcion_SIRH.Indice, Vista_Cat_Adscripcion_SIRH.Nombre " +
                                "FROM Vista_Cat_Adscripcion_SIRH INNER JOIN " +
                                "  Vehiculos ON Vista_Cat_Adscripcion_SIRH.Indice = Vehiculos.IdArea " +
                                "GROUP BY Vista_Cat_Adscripcion_SIRH.Indice, Vista_Cat_Adscripcion_SIRH.Nombre, " +
                                "  Vehiculos.Status " +
                                "HAVING Vehiculos.Status = '1' "+
                                "ORDER BY Vista_Cat_Adscripcion_SIRH.Nombre";
     
                Query obj = new Query();
                DataTable dt = obj.obtenerSelect(query);
     
                string[,] datos = new string[dt.Rows.Count, dt.Columns.Count];
     
                for (int fila = 0; fila < dt.Rows.Count; fila++)
                {
                    RadListDataItem rldi = new RadListDataItem();
                    rldi.TextWrap = true;
                    rldi.Text = dt.Rows[fila][1].ToString();
                    lstAreasDisponibles.Items.Add(rldi);
                }
            }
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 29 Jul 2011 Link to this post

    Hello Erik,

    Thank you for writing.

    I have tested the described scenario and on my end it behaves correctly. Please refer to the attached project. All that you need to set in order to display the horizontal scroll bar are the FitItemSize and AutoSizeItem properties, as you did. If you continue experiencing this issue, please modify my project on a way to reproduce this behavior. This will allow me to investigate your case and provide you with adequate support.

    I am looking forward to your reply.
     
    Greetings,
    Stefan
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top