Hello,
i'm using a RadListView in DetailsView mode.
When i insert an element in the Items collection of the RadListView, the Vertical-scrollbar's thumb remains snapped on the bottom to ensure the visibility of the last item. Items are inserted at the speed of almost one item per seconds.
I would like to control this behaviour, because (as all of the most common software do) i would like to stop refreshing the scrollbar position when the user click on the scrollbar or scrolls the wheel up to check more accurately an item.
Actually i'm doing this:
item insert:
The userClicked variable is a bool that it's initialized like
and when I configure the ListView i bind the click and scroll events to simple functions that turns userClicked to be true, so that no update is performed.
But there are two main problems.
1) I would like to create an event similar to this one, for example if the user scroll wherever on the radlistview, probably he wants to stop the autorefresh, as it would probably be if he clicks on an element.
2) i would like to restore programmatically the auto refresh(plus the scrollbar-thumb autosnap to the bottom) when the users drag the thumb to the bottom of the scrollbar track
This seems to be a common behaviour to me for other application but i can't implement it in this case.
Thanks
i'm using a RadListView in DetailsView mode.
When i insert an element in the Items collection of the RadListView, the Vertical-scrollbar's thumb remains snapped on the bottom to ensure the visibility of the last item. Items are inserted at the speed of almost one item per seconds.
I would like to control this behaviour, because (as all of the most common software do) i would like to stop refreshing the scrollbar position when the user click on the scrollbar or scrolls the wheel up to check more accurately an item.
Actually i'm doing this:
item insert:
private
void
ListView1AddLogMessage(
string
message, DateTime? dateTime)
{
if
(dateTime ==
null
)
dateTime = DateTime.Now;
if
(userClicked)
this
.radListView1.BeginUpdate();
LogList.Add(
new
LogItem { Info = message, Timestamp = dateTime.Value });
if
(userClicked)
this
.radListView1.EndUpdate();
}
The userClicked variable is a bool that it's initialized like
bool
userClicked =
false
;
and when I configure the ListView i bind the click and scroll events to simple functions that turns userClicked to be true, so that no update is performed.
void
ThumbElement_Click(
object
sender, EventArgs e)
{
userClicked =
true
;
}
But there are two main problems.
1) I would like to create an event similar to this one, for example if the user scroll wherever on the radlistview, probably he wants to stop the autorefresh, as it would probably be if he clicks on an element.
2) i would like to restore programmatically the auto refresh(plus the scrollbar-thumb autosnap to the bottom) when the users drag the thumb to the bottom of the scrollbar track
This seems to be a common behaviour to me for other application but i can't implement it in this case.
Thanks