Hi,
I have some problem with RadSpinEditor in GridView. When I'm scrolling GrdView, spineditor changing position
Code:
It's bug in my code or in control implementation?
Please help me.
I have some problem with RadSpinEditor in GridView. When I'm scrolling GrdView, spineditor changing position
Code:
private
IList<Attribute> _data =
new
List<Attribute>();
private
void
bwLoadData_RunWorkerCompleted(
object
sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
{
this
.grvAttribute1.DataSource = _data;
this
.grvAttribute1.CellFormatting += insertControls;
}
Attribute attribute =
new
Attribute();
private
void
insertControls(
object
sender, CellFormattingEventArgs e)
{
try
{
if
(e.Column.Name ==
"Type"
)
{
if
(attribute.Type == 3)
{
if
(e.CellElement.Children.Count == 0)
{
RadSpinEditor se =
new
RadSpinEditor();
se.Dock = DockStyle.Fill;
se.ShowUpDownButtons =
false
;
se.ThemeName =
"TelerikMetro"
;
se.TextAlignment = HorizontalAlignment.Center;
se.DecimalPlaces = 2;
se.Minimum = -999999.99M;
se.Maximum = 999999.99M;
Telerik.WinControls.RadHostItem i =
new
Telerik.WinControls.RadHostItem(se);
e.CellElement.Children.Add(i);
}
}
}
}
catch
(Exception ex)
{
//message
}
}
Please help me.