Subgrid not populating with data

4 posts, 0 answers
  1. Brian
    Brian avatar
    5 posts
    Member since:
    Sep 2012

    Posted 15 May 2012 Link to this post

    I have a rad grid, which returns a list of data.  I have a subgrid, which should return details in another grid based on the id of the record in the master table and the value of a item selected in a dropdown list.  The subgrid passes 2 parameters to a SQL server stored proc.

    If I run the subgrid outside of the hierarchical grid the data is returned no problems.  I followed the example in the demo and have a label that evaluates a datakey.  If I make the label visible the Id displays properly.  However the grid below does not show any data.

    Any help would be greatly appreciated.
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 16 May 2012 Link to this post

    Hello Brian,

    Can you please provide your Grid's structure code(.aspx page code of Grid)?

    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    5 posts
    Member since:
    Sep 2012

    Posted 16 May 2012 Link to this post

    Below is the code.  I have provided the entire page.  The entire page has the following structure:

    1.  dropdown list to select a year/season - this is needed to get the subgrid schedule that is the current issue
    2.  I have a panel and tab strip at the top level
    3.  The first tab, which is the list of teams has a sub-panel, tab strip with a grid on the first tab to display the schedule for a given team and season
    4.  I want to be able to populate other tabs with grids as well, but need to get the schedule one working first.
    5.  As an aside note, when I click on any other tab in the sub-tab strip it does not change to that tab and I cannot get it to through the code behind window because it does not recognize the control.

    Code:

     

    <%

     

    @ Page Title="" Language="VB" MasterPageFile="~/forms.master" AutoEventWireup="false" CodeFile="dashboard.aspx.vb" Inherits="members_dashboard" %>

     

     

     

     

    <

     

     

    asp:Content ID="Content1" ContentPlaceHolderID="contentMain" Runat="Server">

     

     

     

     

     

     

     

     

    <telerik:RadAjaxManager ID="radAjaxManager1" runat="server">

     

     

     

     

     

     

     

     

    <AjaxSettings >

     

     

     

     

     

     

     

     

    <telerik:AjaxSetting AjaxControlID="gridTeam">

     

     

     

     

     

     

     

     

    <UpdatedControls>

     

     

     

     

     

     

     

     

    <telerik:AjaxUpdatedControl ControlID="gridTeam" LoadingPanelID="RadAjaxLoadingPanel1" />

     

     

     

     

     

     

     

     

    </UpdatedControls>

     

     

     

     

     

     

     

     

    </telerik:AjaxSetting>

     

     

     

     

     

     

     

     

    </AjaxSettings>

     

     

     

     

     

     

     

     

    </telerik:RadAjaxManager>

     

     

     

     

     

     

     

     

    <p style="text-align: center">

     

     

     

     

     

     

     

     

    <span style="font-size: x-large">Welcome back</span>

     

     

     

     

     

     

     

     

    <asp:Label ID="labelUser" runat="server" Font-Size="X-Large" Text="Label"></asp:Label>

     

     

     

     

     

     

     

     

    <span style="font-size: x-large">!</span></p>

     

     

     

     

     

     

     

     

    <p>Messages!</p>

     

     

     

     

     

     

     

     

    <p>To view details by a specific year/season select:&nbsp;

     

     

     

     

     

     

     

     

    <asp:DropDownList ID="listYearSeason" runat="server" AutoPostBack="True"

     

     

     

    DataSourceID="sqlDataYearSeasons" DataTextField="yearSeason"

     

     

     

    DataValueField="value" Height="22px" Width="175px">

     

     

     

     

     

     

     

     

    </asp:DropDownList>

     

     

     

     

     

     

     

     

    <asp:SqlDataSource ID="sqlDataYearSeasons" runat="server"

     

     

     

    ConnectionString="<%$ ConnectionStrings:delcoSoccerConnectionString %>"

     

     

     

    SelectCommand="getRegistrationYearSeason" SelectCommandType="StoredProcedure">

     

     

     

     

     

     

     

     

    </asp:SqlDataSource>

     

     

     

     

     

     

     

     

    </p>

     

     

     

     

     

     

     

     

    <div class="module" style="height: 110px; width: 92%">

     

     

     

     

     

     

     

     

    <asp:CheckBox ID="CheckBox1" Text="Export only data" runat="server"></asp:CheckBox>

     

     

     

     

     

     

     

     

    <br />

     

     

     

     

     

     

     

     

    <asp:CheckBox ID="CheckBox2" Text="Ignore paging (exports all pages)" runat="server">

     

     

     

     

     

     

     

     

    </asp:CheckBox>

     

     

     

     

     

     

     

     

    <br />

     

     

     

     

     

     

     

     

    <asp:CheckBox ID="CheckBox3" Text="Open exported data in new browser window" runat="server">

     

     

     

     

     

     

     

     

    </asp:CheckBox>

     

     

     

     

     

     

     

     

    <br />

     

     

     

     

     

     

     

     

    <br />

     

     

     

     

     

     

     

     

    <asp:Button ID="Button1" CssClass="button" Width="150px" Text="Export to Excel" runat="server">

     

     

     

     

     

     

     

     

    </asp:Button>

     

     

     

     

     

     

     

     

    <asp:Button ID="Button2" CssClass="button" Width="150px" Text="Export to Word" runat="server">

     

     

     

     

     

     

     

     

    </asp:Button>

     

     

     

     

     

     

     

     

    <asp:Button ID="Button3" CssClass="button" Width="150px" Text="Export to CSV" runat="server">

     

     

     

     

     

     

     

     

    </asp:Button>

     

     

     

     

     

     

     

     

    </div>

     

     

     

     

     

     

     

     

    <script type="text/javascript">

     

     

     

     

     

     

     

     

    function onRequestStart(sender, args) {

     

     

     

    if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||

     

    args.get_eventTarget().indexOf(

     

    "ExportToWordButton") >= 0 ||

     

    args.get_eventTarget().indexOf(

     

    "ExportToCsvButton") >= 0) {

     

    args.set_enableAjax(

     

    false);

     

    }

    }

     

     

    </script>

     

     

     

     

     

     

     

     

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

     

     

     

     

     

     

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="400px"

     

     

     

    Width="850px" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">

     

     

     

     

     

     

     

     

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"

     

     

     

    Skin="WebBlue">

     

     

     

     

     

     

     

     

    <Tabs>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Teams" Selected="True">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Resources">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Fields">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Club Profile">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="My Profile">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    </Tabs>

     

     

     

     

     

     

     

     

    </telerik:RadTabStrip>

     

     

     

     

     

     

     

     

    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">

     

     

     

     

     

     

     

     

    <telerik:RadPageView ID="pageViewTeams" runat="server">

     

     

     

     

     

     

     

     

    <asp:Label ID="labelMe" Font-Bold="true" runat="server" Text="Hello world!" />

     

     

     

     

     

     

     

     

    <telerik:RadGrid ID="gridTeams" runat="server" CellSpacing="0"

     

     

     

    DataSourceID="sqlDataClubTeams" GridLines="None"

     

     

     

    OnPreRender="gridTeams_PreRender" Skin="WebBlue">

     

     

     

     

     

     

     

     

    <ExportSettings ExportOnlyData="True" FileName="teams" IgnorePaging="True">

     

     

     

     

     

     

     

     

    <Excel Format="ExcelML" />

     

     

     

     

     

     

     

     

    </ExportSettings>

     

     

     

     

     

     

     

     

    <ClientSettings><Selecting AllowRowSelect="True" />

     

     

     

     

     

     

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

     

     

     

     

     

     

     

     

    </ClientSettings>

     

     

     

     

     

     

     

     

    <MasterTableView DataKeyNames="teamID" GroupLoadMode="Server"

     

     

     

    DataSourceID="sqlDataClubTeams" CommandItemDisplay="Top">

     

     

     

     

     

     

     

     

    <NestedViewTemplate>

     

     

     

     

     

     

     

     

    <asp:Panel runat="server" ID="innerContainer" Visible="true">

     

     

     

     

     

     

     

     

    <telerik:RadTabStrip runat="server" ID="tabStripTeamsInner" Visible="true">

     

     

     

     

     

     

     

     

    <Tabs>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Schedule" PageViewID="teamsInnerSchedule">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Standings" PageViewID="teamsInnerStandings">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    <telerik:RadTab runat="server" Text="Details" PageViewID="teamsInnerDetails">

     

     

     

     

     

     

     

     

    </telerik:RadTab>

     

     

     

     

     

     

     

     

    </Tabs>

     

     

     

     

     

     

     

     

    </telerik:RadTabStrip>

     

     

     

     

     

     

     

     

    <telerik:RadMultiPage runat="server" ID="teamsInnerMultipage" SelectedIndex="0">

     

     

     

     

     

     

     

     

    <telerik:RadPageView runat="server" ID="pageViewSchedule">

     

     

     

     

     

     

     

     

    <asp:Label ID="labelTeamID" Font-Bold="true" Text='<%# Eval("teamID") %>' runat="server" />

     

     

     

     

     

     

     

     

    <asp:SqlDataSource ID="sqlDataSchedule" runat="server" ConnectionString="<%$ ConnectionStrings:delcoSoccerConnectionString %>"

     

     

     

    SelectCommand="getCoachesSchedule" SelectCommandType="StoredProcedure">

     

     

     

     

     

     

     

     

    <SelectParameters>

     

     

     

     

     

     

     

     

    <asp:ControlParameter ControlID="listYearSeason" Name="yearSeason" PropertyName="SelectedValue" Type="String" />

     

     

     

     

     

     

     

     

    <asp:ControlParameter ControlID="labelTeamID" PropertyName="Text" Name="filterTeam" Type="String" DefaultValue="490" />

     

     

     

     

     

     

     

     

    </SelectParameters>

     

     

     

     

     

     

     

     

    </asp:SqlDataSource>

     

     

     

     

     

     

     

     

    <telerik:RadGrid ID="gridSchedule" runat="server" CellSpacing="0"

     

     

     

    DataSourceID="sqlDataSchedule" GridLines="None">

     

     

     

     

     

     

     

     

    <MasterTableView AutoGenerateColumns="False" DataSourceID="sqlDataSchedule">

     

     

     

     

     

     

     

     

    <CommandItemSettings ExportToPdfText="Export to PDF">

     

     

     

     

     

     

     

     

    </CommandItemSettings>

     

     

     

     

     

     

     

     

    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px"></HeaderStyle>

     

     

     

     

     

     

     

     

    </RowIndicatorColumn>

     

     

     

     

     

     

     

     

    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px"></HeaderStyle>

     

     

     

     

     

     

     

     

    </ExpandCollapseColumn><Columns>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="GameNumber"

     

     

     

    FilterControlAltText="Filter GameNumber column" HeaderText="GameNumber"

     

     

     

    SortExpression="GameNumber" UniqueName="GameNumber">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="GameDate" DataType="System.DateTime"

     

     

     

    FilterControlAltText="Filter GameDate column" HeaderText="GameDate"

     

     

     

    SortExpression="GameDate" UniqueName="GameDate">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="HomeTeam"

     

     

     

    FilterControlAltText="Filter HomeTeam column" HeaderText="HomeTeam"

     

     

     

    SortExpression="HomeTeam" UniqueName="HomeTeam">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="HomeClub"

     

     

     

    FilterControlAltText="Filter HomeClub column" HeaderText="HomeClub"

     

     

     

    SortExpression="HomeClub" UniqueName="HomeClub">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="AwayTeam"

     

     

     

    FilterControlAltText="Filter AwayTeam column" HeaderText="AwayTeam"

     

     

     

    SortExpression="AwayTeam" UniqueName="AwayTeam">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="AwayClub"

     

     

     

    FilterControlAltText="Filter AwayClub column" HeaderText="AwayClub"

     

     

     

    SortExpression="AwayClub" UniqueName="AwayClub">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="AgeDivision"

     

     

     

    FilterControlAltText="Filter AgeDivision column" HeaderText="AgeDivision"

     

     

     

    SortExpression="AgeDivision" UniqueName="AgeDivision">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="HomeScore" DataType="System.Int32"

     

     

     

    FilterControlAltText="Filter HomeScore column" HeaderText="HomeScore"

     

     

     

    SortExpression="HomeScore" UniqueName="HomeScore">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="AwayScore" DataType="System.Int32"

     

     

     

    FilterControlAltText="Filter AwayScore column" HeaderText="AwayScore"

     

     

     

    SortExpression="AwayScore" UniqueName="AwayScore">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridCheckBoxColumn DataField="Changed" DataType="System.Boolean"

     

     

     

    FilterControlAltText="Filter Changed column" HeaderText="Changed"

     

     

     

    SortExpression="Changed" UniqueName="Changed">

     

     

     

     

     

     

     

     

    </telerik:GridCheckBoxColumn>

     

     

     

     

     

     

     

     

    <telerik:GridCheckBoxColumn DataField="Rescheduled" DataType="System.Boolean"

     

     

     

    FilterControlAltText="Filter Rescheduled column" HeaderText="Rescheduled"

     

     

     

    SortExpression="Rescheduled" UniqueName="Rescheduled">

     

     

     

     

     

     

     

     

    </telerik:GridCheckBoxColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="HomeClubID" DataType="System.Int32"

     

     

     

    FilterControlAltText="Filter HomeClubID column" HeaderText="HomeClubID"

     

     

     

    SortExpression="HomeClubID" UniqueName="HomeClubID" Visible="false">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    </Columns>

     

     

     

     

     

     

     

     

    <EditFormSettings>

     

     

     

     

     

     

     

     

    <EditColumn FilterControlAltText="Filter EditCommandColumn column">

     

     

     

     

     

     

     

     

    </EditColumn>

     

     

     

     

     

     

     

     

    </EditFormSettings>

     

     

     

     

     

     

     

     

    </MasterTableView>

     

     

     

     

     

     

     

     

    <FilterMenu EnableImageSprites="False">

     

     

     

     

     

     

     

     

    </FilterMenu><HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

     

     

     

     

     

     

     

     

    </HeaderContextMenu>

     

     

     

     

     

     

     

     

    </telerik:RadGrid>

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView runat="server" ID="pageViewStandings">

     

     

     

     

     

     

     

     

    <asp:Label runat="server" ID="label1" Text="Standings!" />

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView runat="server" ID="pageViewDetails">

     

     

     

     

     

     

     

     

    <asp:Label runat="server" ID="label6" Text="Details" />

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    </telerik:RadMultiPage>

     

     

     

     

     

     

     

     

    </asp:Panel>

     

     

     

     

     

     

     

     

    </NestedViewTemplate>

     

     

     

     

     

     

     

     

    <CommandItemSettings ExportToPdfText="Export to PDF"

     

     

     

    ShowAddNewRecordButton="False" ShowExportToCsvButton="True"

     

     

     

    ShowExportToExcelButton="True" ShowExportToWordButton="True" />

     

     

     

     

     

     

     

     

    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px" />

     

     

     

     

     

     

     

     

    </RowIndicatorColumn>

     

     

     

     

     

     

     

     

    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px" />

     

     

     

     

     

     

     

     

    </ExpandCollapseColumn>

     

     

     

     

     

     

     

     

    <Columns>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="teamID" DataType="System.Int32"

     

     

     

    FilterControlAltText="Filter teamID column" HeaderText="teamID"

     

     

     

    SortExpression="teamID" UniqueName="teamID">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="teamName"

     

     

     

    FilterControlAltText="Filter teamName column" HeaderText="teamName"

     

     

     

    SortExpression="teamName" UniqueName="teamName">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="headCoach"

     

     

     

    FilterControlAltText="Filter headCoach column" HeaderText="headCoach"

     

     

     

    SortExpression="headCoach" UniqueName="headCoach">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="teamManager"

     

     

     

    FilterControlAltText="Filter teamManager column" HeaderText="teamManager"

     

     

     

    SortExpression="teamManager" UniqueName="teamManager">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn>

     

     

     

     

     

     

     

     

    </Columns>

     

     

     

     

     

     

     

     

    <EditFormSettings>

     

     

     

     

     

     

     

     

    <EditColumn FilterControlAltText="Filter EditCommandColumn column">

     

     

     

     

     

     

     

     

    </EditColumn>

     

     

     

     

     

     

     

     

    </EditFormSettings>

     

     

     

     

     

     

     

     

    </MasterTableView>

     

     

     

     

     

     

     

     

    <FilterMenu EnableImageSprites="False">

     

     

     

     

     

     

     

     

    </FilterMenu>

     

     

     

     

     

     

     

     

    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

     

     

     

     

     

     

     

     

    </HeaderContextMenu>

     

     

     

     

     

     

     

     

    </telerik:RadGrid>

     

     

     

     

     

     

     

     

    <asp:SqlDataSource ID="sqlDataClubTeams" runat="server" ConnectionString="<%$ ConnectionStrings:delcoSoccerConnectionString %>"

     

     

     

    SelectCommand="getDashboardClubTeams" SelectCommandType="StoredProcedure">

     

     

     

     

     

     

     

     

    <SelectParameters>

     

     

     

     

     

     

     

     

    <asp:ProfileParameter DefaultValue="" Name="userName" PropertyName="email.primary" Type="String" />

     

     

     

     

     

     

     

     

    </SelectParameters>

     

     

     

     

     

     

     

     

    </asp:SqlDataSource>

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView ID="pageViewResources" runat="server">

     

     

     

     

     

     

     

     

    <asp:Label ID="label5" runat="server" Text="Club resources:" />

     

     

     

     

     

     

     

     

    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"

     

     

     

    DataSourceID="sqlDataClubResources" GridLines="None" Skin="WebBlue">

     

     

     

     

     

     

     

     

    <ClientSettings>

     

     

     

     

     

     

     

     

    <Selecting AllowRowSelect="True" />

     

     

     

     

     

     

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

     

     

     

     

     

     

     

     

    </ClientSettings>

     

     

     

     

     

     

     

     

    <ExportSettings HideStructureColumns="true" ExportOnlyData="True"

     

     

     

    FileName="clubResources" IgnorePaging="True" OpenInNewWindow="True" >

     

     

     

     

     

     

     

     

    <Excel Format="ExcelML" />

     

     

     

     

     

     

     

     

    </ExportSettings>

     

     

     

     

     

     

     

     

    <MasterTableView autogeneratecolumns="False" datasourceid="sqlDataClubResources" CommandItemDisplay="Top">

     

     

     

     

     

     

     

     

    <CommandItemSettings ShowExportToExcelButton="true" ShowExportToWordButton="true"

     

     

     

     

     

     

     

     

    ShowExportToCsvButton="true" ExportToPdfText="Export to PDF" ShowAddNewRecordButton="false" />

     

     

     

     

     

     

     

     

    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px" />

     

     

     

     

     

     

     

     

    </RowIndicatorColumn>

     

     

     

     

     

     

     

     

    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

     

     

     

     

     

     

     

     

    <HeaderStyle Width="20px" /></ExpandCollapseColumn>

     

     

     

     

     

     

     

     

    <Columns>

     

     

     

     

     

     

     

     

    <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name"

     

     

     

    ReadOnly="True" SortExpression="Name" UniqueName="Name">

     

     

     

     

     

     

     

     

    </telerik:GridBoundColumn><telerik:GridBoundColumn

     

     

     

    DataField="PrimaryPhone" FilterControlAltText="Filter PrimaryPhone column"

     

     

     

    HeaderText="PrimaryPhone" ReadOnly="True" SortExpression="PrimaryPhone"

     

     

     

    UniqueName="PrimaryPhone"></telerik:GridBoundColumn><telerik:GridBoundColumn

     

     

     

    DataField="SecondaryPhone" FilterControlAltText="Filter SecondaryPhone column"

     

     

     

    HeaderText="SecondaryPhone" ReadOnly="True" SortExpression="SecondaryPhone"

     

     

     

    UniqueName="SecondaryPhone"></telerik:GridBoundColumn><telerik:GridBoundColumn

     

     

     

    DataField="PrimaryEmail" FilterControlAltText="Filter PrimaryEmail column"

     

     

     

    HeaderText="PrimaryEmail" ReadOnly="True" SortExpression="PrimaryEmail"

     

     

     

    UniqueName="PrimaryEmail"></telerik:GridBoundColumn><telerik:GridBoundColumn

     

     

     

    DataField="SecondaryEmail" FilterControlAltText="Filter SecondaryEmail column"

     

     

     

    HeaderText="SecondaryEmail" ReadOnly="True" SortExpression="SecondaryEmail"

     

     

     

    UniqueName="SecondaryEmail"></telerik:GridBoundColumn></Columns><EditFormSettings><EditColumn

     

     

     

    FilterControlAltText="Filter EditCommandColumn column"></EditColumn></EditFormSettings></MasterTableView><FilterMenu

     

     

     

    EnableImageSprites="False"></FilterMenu><HeaderContextMenu

     

     

     

    CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu></telerik:RadGrid>

     

     

     

     

     

     

     

     

    <asp:SqlDataSource ID="sqlDataClubResources" runat="server"

     

     

     

    ConnectionString="<%$ ConnectionStrings:delcoSoccerConnectionString %>"

     

     

     

    SelectCommand="getDashboardClubResources" SelectCommandType="StoredProcedure">

     

     

     

     

     

     

     

     

    <SelectParameters>

     

     

     

     

     

     

     

     

    <asp:ProfileParameter Name="clubId" PropertyName="clubInformation.clubID" Type="Int32" />

     

     

     

     

     

     

     

     

    </SelectParameters>

     

     

     

     

     

     

     

     

    </asp:SqlDataSource>

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView ID="pageViewFields" runat="server">

     

     

     

     

     

     

     

     

    <asp:Label ID="label2" runat="server" Text="Fields" />

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView ID="pageViewClubProfile" runat="server">

     

     

     

     

     

     

     

     

    <asp:Label ID="label3" runat="server" Text="Club profile" />

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    <telerik:RadPageView ID="pageViewMyProfile" runat="server">

     

     

     

     

     

     

     

     

    <asp:Label ID="label4" runat="server" Text="My profile" />

     

     

     

     

     

     

     

     

    </telerik:RadPageView>

     

     

     

     

     

     

     

     

    </telerik:RadMultiPage>

     

     

     

     

     

     

     

     

    </telerik:RadAjaxPanel>

     

     

     

     

     

     

     

     

    <asp:HiddenField ID="hiddenUserName" runat="server" />

     

     

     

     

     

     

     

     

    <asp:HiddenField ID="hiddenTeamId" runat="server" />

     

     

     

     

     

    </

     

     

    asp:Content>

     

     

     

     

     

     

     

  5. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 18 May 2012 Link to this post

    Hello,

    Please verify that the name of the parameter in the SQLDaataSource is the same as the one in the stored procedure.

    Additionally, you should not wrap RadGrid in RadAjaxPanel when you have added the Grid in Ajax setting of the RadAjaxManager. Remove the RadAjaxPanel declaration and check whether the issue still replicates. If this does not help, you could try to set the EnableAjax property of RadAjaxManager to false.


    Regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top