Btw the PITS crashes after login when clicking the Silverlight section....
9 Answers, 1 is accepted
Thank you for your feedback. I confirm this bug and we will try to fix it for tomorrow's Internal Build.
I have updated your Telerik points.
Regards,
Milan
the Telerik team
Hi Tomas,
The bug is already fixed and it will be included in this Friday's internal build.
Best wishes,
Milan
the Telerik team
because i still have the same problem, or maybe i am doing something wrong?
basically i am trying to get drag and drop on gridviewrow in the radgridview. this used to work before i upgraded to 2010 Q1.
any help would be great. I've included the control that i have made for this. it seems the SetIsSelected is fired regardless which means RaiseSelectionChangedEvent is also fired, i am sure before that wasn't the case when i set CanUserSelect.
using
System.Collections;
using
System.Collections.Generic;
using
System.Windows;
using
System.Windows.Input;
using
Telerik.Windows.Controls;
using
Telerik.Windows.Controls.DragDrop;
using
Telerik.Windows.Controls.GridView;
namespace
Controls {
public
class
RadGridViewEx : RadGridView {
public
static
readonly
DependencyProperty IsDragAllowedProperty = DependencyProperty.Register(
"IsDragAllowed"
,
typeof
(
bool
),
typeof
(RadGridViewEx),
new
PropertyMetadata(
null
));
public
static
readonly
DependencyProperty IsSelectionAllowedProperty = DependencyProperty.Register(
"IsSelectionAllowed"
,
typeof
(
object
),
typeof
(RadGridViewEx),
new
PropertyMetadata(
null
));
public
static
readonly
DependencyProperty DragPayloadProperty = DependencyProperty.Register(
"DragPayload"
,
typeof
(
object
),
typeof
(RadGridViewEx),
new
PropertyMetadata(
null
));
public
RadGridViewEx()
:
base
() {
this
.RowLoaded +=
new
System.EventHandler<RowLoadedEventArgs>(RadGridViewEx_RowLoaded);
CanUserSelect =
false
;
IsSelectionAllowed =
true
;
}
public
bool
IsDragAllowed {
get
{
return
(
bool
)GetValue(IsDragAllowedProperty); }
set
{ SetValue(IsDragAllowedProperty, value); }
}
public
bool
IsSelectionAllowed {
get
{
return
(
bool
)GetValue(IsSelectionAllowedProperty); }
set
{ SetValue(IsSelectionAllowedProperty, value); }
}
public
object
DragPayload {
get
{
return
GetValue(DragPayloadProperty); }
set
{ SetValue(DragPayloadProperty, value); }
}
void
RadGridViewEx_RowLoaded(
object
sender, RowLoadedEventArgs e ) {
GridViewRow row = e.Row
as
GridViewRow;
if
(row !=
null
) {
row.AddHandler(GridViewRow.MouseLeftButtonDownEvent,
new
MouseButtonEventHandler(row_MouseLeftButtonDown),
true
);
row.AddHandler(GridViewRow.MouseLeftButtonUpEvent,
new
MouseButtonEventHandler(row_MouseLeftButtonUp),
true
);
if
(IsDragAllowed) {
RadDragAndDropManager.SetAllowDrag(row,
true
);
}
}
}
void
row_MouseLeftButtonUp(
object
sender, MouseButtonEventArgs e ) {
if
(sender
is
GridViewRow) {
if
(sender ==
null
) {
return
;
}
GridViewRow row = sender
as
GridViewRow;
if
(IsSelectionAllowed) {
SelectedItem = row.DataContext;
}
}
}
void
row_MouseLeftButtonDown(
object
sender, MouseButtonEventArgs e ) {
if
(sender
is
GridViewRow) {
if
(sender ==
null
) {
return
;
}
GridViewRow row = sender
as
GridViewRow;
IList a =
new
List<
object
>();
a.Add(row.DataContext);
DragPayload = a;
}
}
}
}
I confirm that the SelectAll (CTRL+A) bug is fixed in 702. I am sending you a sample application that demonstrates this.
Maybe the assembly references are not updated? Sometimes, if the old assemblies are still contained in the project folder the project might choose to use the old assemblies instead of the new ones.
Greetings,
Milan
the Telerik team
thanks
I upgradted to newer version but it generates othe issues.
also my ToHtml() function stops working giving nullrefrence Exception.
Could you please open a separate thread for the null reference exception.
Best wishes,
Milan
the Telerik team
Could you please open a separate thread for the null reference exception.
Best wishes,
Milan
the Telerik team
Could you please open a separate thread for the null reference exception.
Best wishes,
Milan
the Telerik team