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

Problem with horizontal scroll bar in radListControl

1 Answer 135 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
erik vazquez
Top achievements
Rank 1
erik vazquez asked on 26 Jul 2011, 05:27 PM
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);
            }
        }

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Jul 2011, 11:16 AM
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!

Tags
ListControl
Asked by
erik vazquez
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or