or
<
Grid
x:Name
=
"LayoutRoot"
DataContext
=
"{StaticResource DataContext}"
>
<
telerik:RadPdfViewer
x:Name
=
"pdfViewer"
DocumentSource
=
"A10000292S_Notice.pdf"
/>
</
Grid
>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
List<
string
> strings = new List<
string
>();
radGridView1.ItemsSource = strings;
strings.Add("a");
strings.Add("b");
strings.Add("c");
radGridView1.Items.Refresh();
}
The rows do not appear until I click a column header to re-order that column. As Items.Refresh() does not work what can I call to make the rows appear?
I know using an ObservableCollection rather than list<string> will work, but I can't do that in this situation.
thanks
Hi,
I have two styling issues wtih the GridView. The first is I am trying to by default set a column style to not display the Filter for a column by default (we only have a few columns in each grid that are filterable). My code is as follows:
<
Style
TargetType
=
"telerik:GridViewColumn"
>
<
Setter
Property
=
"IsFilterable"
Value
=
"False"
/>
</
Style
>
Second, I have a cell style set as well but I now when I set the Background brush for a column it has no affect. What am I doing wrong?
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:GridViewCell}"
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
>
<
ContentPresenter
Content
=
"{TemplateBinding Content}"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FFEFEFEF"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0,0,1,0"
/>
<
Setter
Property
=
"Margin"
Value
=
"2,0,0,0"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
</
Style
>
In the gridview I am setting the background as such:
Any help would be greatly appreciated!
David A.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding HoursCompleted}"
Header
=
"Hours"
UniqueName
=
"HoursCompleted"
DataFormatString
=
" {0:n2}"
HeaderTextAlignment
=
"Center"
Width
=
"60"
Background
=
"#33FDA500"
/>