Grid showing row only

4 posts, 0 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 12 Oct 2010 Link to this post

    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>
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 13 Oct 2010 Link to this post

    Please let me know what details you need from me?

    Shakti
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 14 Oct 2010 Link to this post

    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
Back to Top