or
For Each itemFileTypes In collFileTypes |
If itemFileTypes.IsInUse Then |
Dim newGroupElement As New RadPanelBarGroupElement |
newGroupElement.EnableHostControlMode = True |
newGroupElement.Caption = itemFileTypes.Descr |
Dim lst As New RadListBox |
lst.Name = itemFileTypes.Descr |
lst.Dock = DockStyle.Fill |
lst.Text = itemFileTypes.Type |
newGroupElement.ContentPanel.Controls.Add(lst) |
radPanelBar.Items.Add(newGroupElement) |
End If |
Next |
radPanelBar.Dock = DockStyle.Left |
radPanelBar.ThemeName = "ControlDefault" |
' Set focus to Log panel |
radPanelBar.Items("Log").Focus() ' This throws exception |
' For each panel find the listbox and assign its DataSource etc |
' add a listbox event handler for SelectedValueChanged. |
Try |
Dim pnl As RadPanelBarGroupElement |
For Each pnl In radPanelBar.Items |
Dim lst As RadListBox |
'newGroupElement.ContentPanel.Controls.Add(lst) |
' This is where I come unstuck! |
lst = pnl.Items(0) or pnl.ContentPanel.Controls(0) ??? |
With lst |
.ValueMember = "id" |
.DisplayMember = "FileDescription" |
.DataSource = GetFileNamesByType(CType(lst.Text, Integer)) |
'.EmptyRows = True |
AddHandler lst.SelectedValueChanged, AddressOf ListBoxSelectedValueChanged |
End With |
Next |
'newGroupElement.ContentPanel.Controls.Add(lst) |
I have an unbound gridview and the data behind is update constantly. What is considered to be the best method to update data in the gridview? Which will have least impact on performance?
Hi
I've got a little problem when I'm using the AutoSizeRow functionnality of the Telerik GridView.
Each time I set this property to true, the loading become very long and oftenly it just stops working.
More over, when I schrool verticaly the datagrid, the rows size dont follow the order of the datagrid.
When AutoSizeRow are false, everything is perfect.
Could you please help solving this issue
Thanks