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

Paging in RadGrid Problem

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 17 Aug 2010, 07:54 AM
Good Day

Something Strange is happening  in my App.

I have a Button that Switches the controls no and off(Showing and Hiding)

and the code is like this

protected void btnCalender_Click(object sender, EventArgs e)
{
    RadToolBarItem textItem = RadToolBar1.FindItemByText("Button1");
    ImageButton btnCalender = (ImageButton)textItem.FindControl("btnCalender");
 
    if (RadGrid1.Visible == true)
    {
        //lblTestlabel.Visible = false;
        RadGrid1.Visible = false;
        RadScheduler1.Visible = true;
        LeftPane.Collapsed = false;
        btnCalender.ImageUrl = "~/images/Picture5.png";
 
 
    }
    else
    {
        RadGrid1.Visible = true;
        // lblTestlabel.Visible = true;
       RadScheduler1.Visible = false;
 
       LeftPane.Collapsed = false;
        btnCalender.ImageUrl = "~/images/CalenderView.png";
    }
     
 
     
}

and its working well , but now i have a Grid and that grid has paging and  its defined like this

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
                AutoGenerateHierarchy="True" GridLines="None" Height="744px"
                ondetailtabledatabind="RadGrid1_DetailTableDataBind1"
                OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated"
                onneeddatasource="RadGrid1_NeedDataSource1" PageSize="10" Skin="Forest"
                Visible="False" Width="100%" AllowSorting="True">
                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                <ItemStyle HorizontalAlign="Center" />
                <MasterTableView>
                    <CommandItemSettings  ExportToPdfText="Export to Pdf" />
                    <PagerStyle AlwaysVisible="True" />
                </MasterTableView>
                <HeaderStyle HorizontalAlign="Center" />
                <AlternatingItemStyle HorizontalAlign="Center" />
            </telerik:RadGrid>

as you can see , when a Radgrid is visible the Radschedular needs to hidden, that works fine , until i start clicking on the pages of the grid, while paging, the Scheduler will appear at the bottom.

i need Help on that

1 Answer, 1 is accepted

Sort by
0
Vuyiswa
Top achievements
Rank 2
answered on 17 Aug 2010, 08:09 AM
Sorry about that, There was a function that Enabled the Control
Tags
General Discussions
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Vuyiswa
Top achievements
Rank 2
Share this question
or