I have a GridViewDataColumn and I have put a checkbox in its CellTemplate. The problem is that when I check this checkbox and scroll down, the checBox gets unchecked. Though the uncheck event is not fired, it looks unchecked. I have not applied any style to the checkbox. What can be the reason? How can I fix this.
Thanks,
Ramya
11 Answers, 1 is accepted
This behavior may be caused in the case the IsChecked property of the CheckBox is not bound. May you post some more information about the definition of the column ?
Maya
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Exkl}"
>
<
telerik:GridViewDataColumn.Header
>
<
TextBlock
Text
=
"ausschl."
/>
</
telerik:GridViewDataColumn.Header
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding Exkl}"
HorizontalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
If I scroll the grid, loosed the checkbox the state and the grid select any other checkbox.
I have tried to reproduce the issue, but still without any success. May you take a look at the sample attached to verify whether I am testing it correctly ? Can you get the same behavior on this project ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Your example works fine. But the same code in my solution still give the issue.
Our hierarchy look like:
controls:ChildWindow
telerik:RadTabControl
telerik:RadTabItem
the grid has follow attributes
<
telerik:RadGridView
ShowGroupPanel
=
"False"
telerik:StyleManager.Theme
=
"Transparent"
ItemsSource
=
"{Binding Source={StaticResource ourSource}}"
SelectionMode
=
"Multiple"
AutoGenerateColumns
=
"False"
>
I dont know, what seems the difference.
Even after changing the project so that it uses the structure you mentioned, I am not able to reproduce the issue. I am attaching the updated sample. May you take a look and try to reproduce the behavior on this application ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Kevin D
This forum targets only RadControls for Silverlight. I will encourage you to post your question on the appropriate forum for WinForms.
Thank you for your understanding.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
We´re catching the same problem. Didi anyone find the solution or the reason for this problem to happen?
Thanks in advanced.
Will it be possible to clarify which controls you work with - for WPF or WinForms ? If it is the first case, could you reproduce the behavior in the sample attached ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
May I kindly ask you to open a separate thread in the WPF section since this topic is for Silverlight and share some sample code demonstrating how the RadGridView is defined on your end? Can you also make sure that the property is databound?
Thank you in advance for your understanding.
Regards,
Vladimir Stoyanov
Progress Telerik