This is a migrated thread and some comments may be shown as answers.

[Solved] RadGridView Data disappear inside other controls

3 Answers 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
qwer
Top achievements
Rank 1
qwer asked on 31 Jan 2011, 08:08 AM
Hi telerik,
      In my RadGridView I'm using one column to RadComboBox (Title Column), I've problem in that Title column as data is not showing on initial load-up and disappeared when not focus on that particular column. But other column show correctly at all time.
      In step1, (just loading up page) and can't see data on that column.
      In step2, when I click on that column data is showing correctly.
      In step3, I click again and Actual RadComboBox and I can change data.
      In step4, If i click on other area or other column, (title column) data is disappearing again.
    

Here is my code snipped (MVVM approached) and is there something wrong?
  <telerik:RadGridView  Name="radgvPersonal" ItemsSource="{Binding Path=PersonalInfos}" AutoGenerateColumns="False" ShowColumnFooters="True" RowIndicatorVisibility="Collapsed" CanUserFreezeColumns="False" ShowGroupPanel="False" SelectionUnit="FullRow">
 
<telerik:RadGridView.Columns>
<telerik:GridViewComboBoxColumn Header="Title" IsResizable="False" IsFilterable="True" DataMemberBinding="{Binding titleid,Mode=TwoWay}"  ItemsSource="{Binding Path = titleDescs,Mode=OneWay" DisplayMemberPath="DisplayName" SelectedValueMemberPath="titleid" />
 
<telerik:GridViewDataColumn Header="First Name" IsFilterable="True" IsGroupable="False" IsReorderable="False" IsResizable="False" ShowDistinctFilters="False" SortingState="None" DataMemberBinding="{Binding Path=FirstName}" />



Thanks and Regards

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 31 Jan 2011, 08:15 AM
Hello qwer,

You may take a look at this help topic for a reference.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
qwer
Top achievements
Rank 1
answered on 31 Jan 2011, 08:48 AM
I can't do that approach as
my project not using codebehind function like below.

private void gridView_DataLoaded(object sender, EventArgs e)
{
    (gridView.Columns[
"Category"] as GridViewComboBoxColumn).ItemsSource = GetCategories();
}

Any other solution for that Blank issues.
Thanks
0
Maya
Telerik team
answered on 31 Jan 2011, 08:53 AM
Hello qwer,

The other solution is to define your ViewModel or class that holds the source for the GridViewComboBoxColumn in the Resources section and then use it as a StaticResource. This approach is also demonstrated in the same help article.

Kind regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
qwer
Top achievements
Rank 1
Answers by
Maya
Telerik team
qwer
Top achievements
Rank 1
Share this question
or