I seem to be having severe performance issues when binding to data sets
I have a query that returns a dataset of SNOMED codes. There are approximately 2000 codes (this is just a sub set)
when i try to bind to the dataset it takes 15 seconds plus to perform the bind
I have virtualised the combo box and when i try to drop down its reall fast but with the following code added my control takes 15+ seconds to load ... when i take this code out its sub 1 second to display the user control
is there anything I can do
// set up the snomed combo box |
cboSnomed.ItemsSource = snomedDataset.Tables[0].DefaultView; |
cboSnomed.DisplayMemberPath = "Code"; |
cboSnomed.SelectedValuePath = "Id"; |
cboSnomed.SelectedValue = -1; |
/// </summary>
public partial class ZoneMinimum : UserControl
{
public ZoneMinimum()
{
InitializeComponent();
}
public string ZoneLabelText
{
get { return tblkZoneName.Text; }
set { tblkZoneName.Text = value; }
}
public string ItemLabelText
{
get { return tblkItemName.Text; }
set { tblkItemName.Text = value; }
}
public string AlarmNameText
{
get { return tblkAlarmName.Text; }
set { tblkAlarmName.Text = value; }
}
public string TruckTotalText
{
get { return tblkTruckTotal.Text; }
set { tblkTruckTotal.Text = value; }
}
public string AlarmTotalText
{
get { return tblkAlarmTotal.Text; }
set { tblkAlarmTotal.Text = value; }
}
}
<telerik:RadMenu Grid.Column="1" Grid.Row="1" Height="100" HorizontalAlignment="Left" Margin="98,40,0,0" Name="radMenu1" VerticalAlignment="Top" Width="200" >
<telerik:RadMenuItem Header="File" StaysOpenOnClick="True">
<telerik:RadMenuItem Header="New" ></telerik:RadMenuItem>
<telerik:RadMenuItem Header="Open"></telerik:RadMenuItem>
<telerik:RadMenuItem Header="Close"></telerik:RadMenuItem>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="Edit">
<telerik:RadMenuItem Header="Cut" ></telerik:RadMenuItem>
<telerik:RadMenuItem Header="Paste"></telerik:RadMenuItem>
</
telerik:RadMenuItem>
</telerik:RadMenu>
In the above Radmenu if i click on 'File' menuitem i am able to see 3 Menuitem(New,Open and Close).
When i click 'Open' MenuItem , i want to see the 'File' Popup should be open. I can achieve it by setting 'IsSubMenuOpen' property but in RadMenuItem this property is Readonly.
Please Help me to achieve this ..
Thanks & Regards,
Anita.