public
partial
class
MainWindow : RadWindow
{
public
MainWindow()
{
InitializeComponent();
RadWindowHelper windowHelper =
new
RadWindowHelper();
windowHelper.TaskBarDisplayed +=
new
EventHandler(windowHelper_TaskBarDisplayed);
windowHelper.ShowWindowInTaskBar();
}
void
windowHelper_TaskBarDisplayed(
object
sender, EventArgs e)
{
this
.Show();
this
.WindowState = WindowState.Maximized;
this
.BringToFront();
var window =
this
.ParentOfType<Window>();
window.ShowInTaskbar =
true
;
window.Title =
"My RadWindow"
;
}
}
public
class
RadWindowHelper
{
public
event
EventHandler TaskBarDisplayed;
public
void
ShowWindowInTaskBar()
{
if
(
this
.TaskBarDisplayed !=
null
)
this
.TaskBarDisplayed(
this
,
new
EventArgs());
}
}
I am using a horizontal path for the radcarousel panels. There are 3 panels in the carousel ItemsPerPage="3". The middle panel is the focused panel. Is there a way to specify spacing between central panel and panels on either side.
Thanks in advance
YK
This is just one RadGridView and colums are repeated. How can we do this with wpf RadGridView
Thanks,
Our requirement for the grid is to have checkbox column so that user be able to select multiple items using the checkbox. During that time, the CurrentItem should be the item user clicked on, which might select/unselect the checkbox, and we will load the detail info of the CurrentItem then display it in a panel outside of the grid.
Here's the definition of the grid:
<
telerik:RadGridView
IsSynchronizedWithCurrentItem
=
"True"
AutoGenerateColumns
=
"False"
ItemsSource
=
"{Binding ItemCollection}"
CurrentItem
=
"{Binding CurrentItem}"
SelectionMode
=
"Multiple"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewSelectColumn
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=Name}"
Header
=
"Name"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
The behavior now is the CurrentItem will always be the first selected item, not the item currently has focus on.
Is there any way to fulfill our requirement?
I would appreciate any suggestions.
<
telerik:RadGridView
Name
=
"GroceryGrid"
ItemsSource
=
"{Binding GroceryList}"
IsSynchronizedWithCurrentItem
=
"True"
AutoGenerateColumns
=
"False"
SelectionMode
=
"Multiple"
CurrentItem
=
"{Binding CurrentItem, Mode=TwoWay}"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay}"
ShowColumnFooters
=
"True"
DockPanel.Dock
=
"Top"
>
private GroceryItem currentItem;
public GroceryItem CurrentItem
{
get { return this.currentItem; }
set
{
this.currentItem = value;
base.RaisePropertyChangedEvent("CurrentItem");
}
}