Hi,
I have two questions, first i have a button in a column, but when a put the gridview in readonly, the button continues the same.
How i can put the button in readonly mode? This is the code.
Second question, i want bind a business property in a column footer,
Making that only appears the word "ola", the value in "Descontos" is not show. How can resolve it?
Thanks
I have two questions, first i have a button in a column, but when a put the gridview in readonly, the button continues the same.
How i can put the button in readonly mode? This is the code.
<
telerik:RadGridView
x:Name
=
"myListView"
IsReadOnly
=
"{Binding Path=pending, Converter={StaticResource booleanToInverseConv}}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewColumn
Header
=
""
IsFilterable
=
"False"
HeaderCellStyle
=
"{StaticResource estiloDaColuna}"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
Button
Style
=
"{DynamicResource ImageButtonStyle}"
Tag
=
"{Binding Path=id}"
x:Name
=
"btnRemoveProduto"
Width
=
"20"
Click
=
"removeProduto_Click"
Height
=
"20"
>
<
Image
Source
=
"..\..\..\Icons\delete_red.png"
Stretch
=
"Fill"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
/>
</
Button
>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Second question, i want bind a business property in a column footer,
<
telerik:GridViewDataColumn
IsFilterable
=
"False"
IsReadOnly
=
"True"
Header
=
"Desconto 2"
DataMemberBinding
=
"{Binding desconto2}"
DataFormatString
=
"{}{0:N2}%"
Width
=
"90"
HeaderCellStyle
=
"{StaticResource estiloDaColuna}"
FooterCellStyle
=
"{StaticResource GridViewCellStyleLeft}"
>
<
telerik:GridViewDataColumn.Footer
>
<
StackPanel
>
<
Label
Content
=
"Ola"
></
Label
>
<
Label
Content
=
"{Binding Path=Descontos}"
></
Label
>
</
StackPanel
>
</
telerik:GridViewDataColumn.Footer
>
Making that only appears the word "ola", the value in "Descontos" is not show. How can resolve it?
Thanks