Hello,
I use RadGridView with DetailsPresenter together and I want to have DetailsPresent permanently displayed, even if no row is selected or datasource is empty (displayed controls can be empty and non editable in this case).
Thank you very much.
Leos
WPF Q2 2010 SP1
I use RadGridView with DetailsPresenter together and I want to have DetailsPresent permanently displayed, even if no row is selected or datasource is empty (displayed controls can be empty and non editable in this case).
Thank you very much.
Leos
WPF Q2 2010 SP1
6 Answers, 1 is accepted
0
Hello Leos,
Regards,
Milan
the Telerik team
Setting RowDetailsVisibilityMode to Visible will show all details.
Regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Leos
Top achievements
Rank 1
answered on 24 Aug 2010, 11:16 AM
No, this is not solution for me, it displays Detail for ALL rows and in grid.
To be clear, this is example of my form.
Part #1 (Detail of Invoice) is DetailsPresenter (defined by DataTemplate).
Part #2 (All invoices) is RadGridView.
When NO DATA in GridView I need to see EMPTY Detail.
To be clear, this is example of my form.
Part #1 (Detail of Invoice) is DetailsPresenter (defined by DataTemplate).
Part #2 (All invoices) is RadGridView.
When NO DATA in GridView I need to see EMPTY Detail.
-- DETAIL OF INVOICE --------------------------#1-
Number: [ ]
Company: [ ]
Date: [ . . ]
-- ALL INVOICES -------------------------------#2-
Number | Company | Date
--------+---------------------------+-------------
--------+---------------------------+-------------
Selected record count:0
0
Hi Leos,
All the best,
Milan
the Telerik team
Just to be sure that I have understood you correctly. You have an external DetailsPresenter which displayer details data and you would like this presenter to display some sort of NoDatatemplate when the grid has no data or no row is selected?
All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Leos
Top achievements
Rank 1
answered on 24 Aug 2010, 04:02 PM
Probably yes.
Here is other way with same result, without DetailsPresenter. So something similar but with DetailsPresenter ( if possible ).
Here is other way with same result, without DetailsPresenter. So something similar but with DetailsPresenter ( if possible ).
<
DockPanel
>
<
Grid
DockPanel.Dock
=
"Top"
DataContext
=
"{Binding CurrentItem, ElementName=radGridView1}"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"100"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
Label
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
Grid.Row
=
"0"
Content
=
"DETAIL"
/>
<
Label
Grid.Column
=
"0"
Grid.Row
=
"1"
Content
=
"Reg:"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"1"
Text
=
"{Binding Registrace, Mode=TwoWay}"
/>
<
Label
Grid.Column
=
"0"
Grid.Row
=
"2"
Content
=
"Type:"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"2"
Text
=
"{Binding Typ, Mode=TwoWay}"
/>
<
Separator
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
Grid.Row
=
"3"
Height
=
"10"
/>
</
Grid
>
<
telerik:RadGridView
Name
=
"radGridView1"
ItemsSource
=
"{Binding Repo}"
IsSynchronizedWithCurrentItem
=
"True"
/>
</
DockPanel
>
0
Accepted
Hello Leos,
Sincerely yours,
Milan
the Telerik team
In this case it would be best to use some kind of custom UserControl to show the details data. I have attached a sample project to demonstrate this approach - it is very similar to what you have done but I have isolated the UI of the details into a separate UserControl.
Sincerely yours,
Milan
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Jonx
Top achievements
Rank 2
answered on 23 Jun 2011, 12:16 PM
Hello Milan,
The problem with your solution is that you lose the possibility to use the RowDetailsTemplateSelector which is very important to me.
I do not want to have to handle that logic by myself.
So the best way would be to make that the RowDetailsTemplateSelector gets evaluates also when no item is selected so that I can get a null in my selector and return and empty template or even better, provide me an EmptyTemplate in the DetailsPresenter.
By the way it would be very nice to get a simple panel control that let me use a template selector on it... this would be usefull each time I have to display different types in the same panel...
So what I need is a way to add some text to the default DetailsPresenter soo thta when nothing is selected in the grid that my text displays...
Thank you for your help,
John.
The problem with your solution is that you lose the possibility to use the RowDetailsTemplateSelector which is very important to me.
I do not want to have to handle that logic by myself.
So the best way would be to make that the RowDetailsTemplateSelector gets evaluates also when no item is selected so that I can get a null in my selector and return and empty template or even better, provide me an EmptyTemplate in the DetailsPresenter.
By the way it would be very nice to get a simple panel control that let me use a template selector on it... this would be usefull each time I have to display different types in the same panel...
So what I need is a way to add some text to the default DetailsPresenter soo thta when nothing is selected in the grid that my text displays...
Thank you for your help,
John.