Oct 24, 2012, 11:44 PM
[CLOSED] Add Columns to GridPanel. Server side
I add columns to a gridpanel in server side:
doc.Load(Server.MapPath("Puestos.xml"))
Dim contador As Integer = 0
Dim ID As String = "", Texto As String = ""
For Each nodoCampo As XmlNode In nodo.SelectNodes("control")
ID = nodoCampo.Attributes("id").Value
Texto = nodoCampo.Attributes("label").Value
Dim field As New ModelField("col" & ID, ModelFieldType.String)
StoreMatchSol.AddField(field, contador + 10)
StoreMatchSol.Model(0).Fields.Insert(contador + 10, field)
Dim col As New Column
col.ID = "col" & ID
col.Text = Texto
col.Width = "100"
col.AutoHeight = True
col.DataIndex = "col" & ID
col.Align = Alignment.Center
GridPanelMatch.AddColumn(col)
contador += 1
Next
When I add a few columns the page loads fast but I need to add like 70 columns to the grid and if I do it the page takes more than a minute to load, is there a way of make it faster??
Last edited by Daniil; Nov 05, 2012 at 3:32 PM.
Reason: [CLOSED]