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

Grid showing row only

3 Answers 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 12 Oct 2010, 08:24 PM
I have 26 row in my table I did code but grid showing row only it does not showing column any idea

Below is my code

<telerik:RadWindow x:Class="SilverFinancials.Windows.SFScreenGridView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400"
             Header="SFScreen" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:my="clr-namespace:SilverFinancials.Web.Models" xmlns:my1="clr-namespace:SilverFinancials.Web.Services" Width="348" Height="212" >

    <Grid x:Name="LayoutRoot" Background="White" >
        <Grid.RowDefinitions>
            <RowDefinition Height="125*" />
            <RowDefinition Height="53*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="254*" />
            <ColumnDefinition Width="64*" />
        </Grid.ColumnDefinitions>
        <telerik:RadGridView Height="125" VerticalAlignment="Top"  IsSynchronizedWithCurrentItem="false"  DataLoadMode="Asynchronous" AutoGenerateColumns="False" ShowGroupPanel="False"  Name="screenRadGridView" Grid.ColumnSpan="2" Margin="2,2,2,0" Grid.RowSpan="2"
                              KeyDown="screenRadGridView_KeyDown"
                                ItemsSource="{Binding ElementName=sFTableDomainDataSource, Path=Data}"
                              >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Screen Number" DataMemberBinding="{Binding ScreenNumber}" />
                <telerik:GridViewDataColumn Header="Screen Name" DataMemberBinding="{Binding ScreenName}" />
                <telerik:GridViewDataColumn Header="Module Name" DataMemberBinding="{Binding ModuleName}" />
                <telerik:GridViewDataColumn Header="Screen Type" DataMemberBinding="{Binding ScreenType}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

        <telerik:RadButton Content="Setup" Margin="14,15,0,0" Name="setBtn" Grid.Column="1" Height="26" VerticalAlignment="Top" HorizontalAlignment="Left" Width="54" Grid.Row="1" />

        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:SFTable, CreateList=true}" Height="0" LoadedData="sFTableDomainDataSource_LoadedData" Name="sFTableDomainDataSource" QueryName="GetSFTablesQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:SFTableContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>



    </Grid>
</telerik:RadWindow>

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 13 Oct 2010, 11:54 AM
Hello Shakti SIngh Dulawat,

Unfortunately, I was not able to reproduce the issue you specified. Most probably the cause of the problem may be that the data is not loaded at all. However, in order to provide you with an appropriate solution I would need more details about your application. 
 

Greetings,
Maya
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
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 13 Oct 2010, 05:34 PM
Please let me know what details you need from me?

Shakti
0
Maya
Telerik team
answered on 14 Oct 2010, 08:31 AM
Hi Shakti SIngh Dulawat,

Following the code-snippet you provided, I have prepared a sample project simulating your scenario. You may take a look at it and change it in the way you necessitate. Let me know if there is some misunderstanding according to your requirements.

Best wishes,
Maya
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
Tags
GridView
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Maya
Telerik team
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or