RadGrid is not visible when I run .aspx code. Only one horizontal line is coming in place of RadGrid.

1 posts, 0 answers
  1. Priyanka
    Priyanka avatar
    34 posts
    Member since:
    Dec 2014

    Posted 25 Jun 2015 Link to this post

    Below is the .aspx code for the Telerik RadGrid:

     

    <telerik:RadMultiPage ID="RadMultiPage6" runat="server" SelectedIndex="0" Width="100%">
                <telerik:RadPageView ID="RadPageView5" runat="server" Width="100%">
                <telerik:RadAjaxPanel ID="RadAjaxPanel5" runat="server">
     
                    <telerik:RadGrid ID="RGGSTAcCode" runat="server" 
                       ShowFooter="True" GroupingEnabled="False" ShowStatusBar="true"       
                       AllowAutomaticInserts="True" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"
                       OnNeedDataSource="RGGSTAcCode_NeedDataSource" OnItemDataBound="RGGSTAcCode_ItemDataBound">
     
                      <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
     
                      <mastertableview ShowHeadersWhenNoRecords="true" commanditemdisplay="Top" autogeneratecolumns="false" datakeynames="RequestID" InsertItemDisplay="Top"
                        insertitempageindexaction="ShowItemOnCurrentPage" ShowFooter="True" >
                                         
                             <Columns>
                                             
                                 <telerik:GridBoundColumn DataField="AccountCodeID" HeaderText="AccountCode ID" UniqueName="AccountCodeID" SortExpression="AccountCodeID"></telerik:GridBoundColumn>
     
                                 <telerik:GridBoundColumn DataField="RequestID" HeaderText="Request ID" UniqueName="RequestID" SortExpression="RequestID"></telerik:GridBoundColumn>
     
                                 <telerik:GridTemplateColumn UniqueName="AccountCode" HeaderText="Account Code">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblAcCode" Text='<%# Eval("AccountCode") %>' runat="server"></asp:Label>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:DropDownList ID="ddlAcCode" runat="server"/>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
     
                                 <telerik:GridBoundColumn DataField="AccountDescription" HeaderText="Description"
                                                UniqueName="AccountDescription" SortExpression="AccountDescription"
                                                InsertVisiblityMode="AlwaysHidden">                                          
                                            </telerik:GridBoundColumn>
              
                                 <telerik:GridBoundColumn aggregate="SUM" DataField="Amount" HeaderText="Amount" FooterText="Total : "
                                                UniqueName="Amount" SortExpression="Amount">
                                                <ItemStyle HorizontalAlign="Right" />
                                                <FooterStyle HorizontalAlign="Right" />                                          
                                            </telerik:GridBoundColumn>
                   
                                 <telerik:GridBoundColumn DataField="Remark" HeaderText="IFCA Remark"
                                                UniqueName="Remark" SortExpression="Remark">                                          
                                            </telerik:GridBoundColumn>                                       
                                             
                          </Columns>
     
                          <EditFormSettings>
                           <EditColumn ButtonType="ImageButton" />
                          </EditFormSettings>
                          <CommandItemSettings AddNewRecordText="Add new record" RefreshText="Refresh"></CommandItemSettings>
     
                      </mastertableview>
     
                    </telerik:RadGrid>     
                              
                </telerik:RadAjaxPanel>          
                </telerik:RadPageView>
           </telerik:RadMultiPage>

     I am unable to see RadGrid, not even with header, When I try to run .aspx page.

    Only one horizontal line is coming and nothing else.

    I tried to put "RGGSTAcCode_NeedDataSource" Grid event also but then too its not visible.

    Please reply what is wrong in my code ??

     

    //

Back to Top