Hi Telerik Team,
We are using gridview in a page and because of merging and disabling few cells based on the context, We turned off virtualization. This in turn is affecting the performance drastically as we are loading 25 rows and 15 columns on average. This takes approximately 4 secs to load the UI screen which we want to reduce to 1 sec. Please let me know if there is any work around.
Grid:
Data Class:
SetData method called from constructor of the Page:
Please let me know if you need more info.
Regards,
Dhileep
We are using gridview in a page and because of merging and disabling few cells based on the context, We turned off virtualization. This in turn is affecting the performance drastically as we are loading 25 rows and 15 columns on average. This takes approximately 4 secs to load the UI screen which we want to reduce to 1 sec. Please let me know if there is any work around.
Grid:
<radgridview:RadGridView x:Name=
"radgvMatrix"
EnableColumnVirtualization=
"False"
EnableRowVirtualization=
"False"
AutoGenerateColumns=
"False"
RowLoaded=
"radgvMatrix_RowLoaded"
>
<radgridview:RadGridView.Columns>
<radgridview:GridViewDataColumn Header=
"Parameter Parent"
UniqueName=
"Parent"
DataMemberBinding=
"{Binding Parent}"
IsReadOnly=
"True"
MinWidth=
"120"
/>
<radgridview:GridViewDataColumn Header=
"Parameter Name"
UniqueName=
"Parameter"
MinWidth=
"120"
/>
<radgridview:GridViewDataColumn Header=
"Score1"
UniqueName=
"Score"
TextAlignment=
"Center"
DataMemberBinding=
"{Binding Score1}"
IsReadOnly=
"True"
MinWidth=
"100"
/>
<radgridview:GridViewDataColumn Header=
"Score2"
UniqueName=
"Score"
TextAlignment=
"Center"
DataMemberBinding=
"{Binding Score2}"
IsReadOnly=
"True"
MinWidth=
"100"
/>
<radgridview:GridViewDataColumn Header=
"Score3"
UniqueName=
"Score"
TextAlignment=
"Center"
DataMemberBinding=
"{Binding Score3}"
IsReadOnly=
"True"
MinWidth=
"100"
/>
<radgridview:GridViewDataColumn Header=
"Score4"
UniqueName=
"Score"
TextAlignment=
"Center"
DataMemberBinding=
"{Binding Score4}"
IsReadOnly=
"True"
MinWidth=
"100"
/>
</radgridview:RadGridView.Columns>
</radgridview:RadGridView>
Data Class:
public
class
DataRow
{
public
string
Parent
{
get
;
set
; }
public
string
Parameter
{
get
;
set
; }
public
int
Score1
{
get
;
set
; }
public
int
Score2
{
get
;
set
; }
public
int
Score3
{
get
;
set
; }
public
int
Score4
{
get
;
set
; }
}
SetData method called from constructor of the Page:
private
void
SetData()
{
DataRows =
new
ObservableCollection<DataRow>();
int
count = 50;
for
(
int
i = 0; i < count; i++)
{
DataRow row =
new
DataRow();
row.Parameter =
"Parameter "
+ i.ToString();
row.Parent =
"Parent "
+ i.ToString();
row.Score1 = 1 * i;
row.Score2 = 2 * i;
row.Score3 = 3 * i;
row.Score4 = 4 * i;
DataRows.Add(row);
}
this
.radgvMatrix.ItemsSource = DataRows;
}
Please let me know if you need more info.
Regards,
Dhileep