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

Radgrid Pagination Disappears and Appears

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gayathri
Top achievements
Rank 1
Gayathri asked on 26 Jul 2013, 09:46 AM

Hi,

I am using telerik RadGrid in my web page to list data and i am using pagination .
<PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Bottom" Position="Bottom" AlwaysVisible="true" />
Dll -  Telerik.Web.UI
Version - 2011.1.519.40
When changing the page size from 10 to 20/50 the pagination control disappears and then appears.
I have attached the screen shots for the issue.
I want the pagination to be static and it must not disappear
Please let me know how to fix the issue.

Thanks
Gayathri

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 26 Jul 2013, 10:03 AM
Hi Gayathri,

Such an issue is not supposed to be occurring.Can u please try below simple code and check if the issue is existing.If you are not able to resolve,please provide your full code both aspx and C#.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false"
    GridLines="None" AllowPaging="true" >
    <MasterTableView>
        <PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Bottom" Position="Bottom" AlwaysVisible="true" />
        <Columns>
            <telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="OrderID" />
            <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" UniqueName="ShipCity" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy
0
Gayathri
Top achievements
Rank 1
answered on 26 Jul 2013, 10:56 AM

Hi Princy,

The issue is coming in the code provided by you.

You can see the issue occurs in the Telerik demo link http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

Let me know if any changes needs to be done?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using APC4056_SP.DLG_WebClient_BLL;
using Telerik.Web.UI;
using System.Collections;
using System.IO;
using SP.CCUDATACommon.Entity;
using SP.CCU.WCFService.DAL.Entity;
using SP.CCU.WCFService.Common.DataContract;
using System.Web.UI.HtmlControls;
namespace SP.DLG.WebClient
{
    public partial class CCUData : BasePage
    {
        SIDBL sidbl = new SIDBL();
        string errorMessage = string.Empty;
        List<CCUFileInfo> filesizeinfo = new List<CCUFileInfo>();
  
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
  
            ScriptManager sm = (ScriptManager)this.Master.FindControl("ScriptManager");
            sm.RegisterPostBackControl(this.ddlfileActions);
  
            getallfilessizes();
            if (!IsPostBack)
            {
                hdnFileType.Value = "DATATRACKER";
  
            }
            ShowRequiredPanel();
            HtmlGenericControl hgc = (HtmlGenericControl)details.FindControl("detailcontent");
            hgc.InnerHtml = GetDetailsHTMLContent();
        }
  
        /// <summary>
        /// Format HTML content for details
        /// </summary>
        /// <returns>details content</returns>
        private static string GetDetailsHTMLContent()
        {
            string detailsContent = "<table style=\"border-color: black\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
            detailsContent += "<tr style=\"height: 117px; vertical-align: top\">";
            detailsContent += "<td style=\"height: 117px; border-color: transparent\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td style=\"height: 100%; vertical-align: top\"><img id=\"ContentWTModels_imgWT\" src=\"..\\Images\\LineChart.jpg\" style=\"height:70px;padding-top:1px;\" /></td></tr></table></td>";
            detailsContent += "<td style=\"width: 88%; height: 117px; border-color: transparent\"><div style=\"overflow: auto\"><div id=\"Panel1\" class=\"text_heading\" style=\"height:100%;\">View all CCU data files in the server machine.<br />Data can be downloaded to the local PC.<br />All data that has not been downloaded is marked as LOCAL :NO<br /><br />Available actions depends on installed plugins.</div></div></td></tr></table>";
            return detailsContent;
        }
  
        private void bindCCUDatafiles()
        {
            string _errormessage = string.Empty;
            List<CCUDataFiles> ccufileslist = new List<CCUDataFiles>();
            List<CCUDataFiles> ccudatatrackerfileslist = new List<CCUDataFiles>();
            List<CCUDataFiles> cculoggerfileslist = new List<CCUDataFiles>();
  
            try
            {   //get the list of all the CCU data files
                ccufileslist = sidbl.getCCUfiles().ToList();
                if (ccufileslist != null)
                {
                    //Filter Datatracker files from the returned set of ccu data files
                    ccudatatrackerfileslist = ccufileslist.Where(ccufile => ccufile.TYPE == "DATATRACKER").ToList();
                    if (ccudatatrackerfileslist != null)
                    {
                        gridCCUDataTracker.VirtualItemCount = ccudatatrackerfileslist.Count();
                        gridCCUDataTracker.DataSource = new ArrayList(ccudatatrackerfileslist);
                        if (ccudatatrackerfileslist.Count > 0)
                        {
                            GridPagerSet(gridCCUDataTracker,true);
                        }
                        else
                        {
                            GridPagerSet(gridCCUDataTracker, false);
                        }
                    }
                    //Filter logger files from the returned set of ccu data files
                    cculoggerfileslist = ccufileslist.Where(ccufile => ccufile.TYPE == "LOGGER").ToList();
                    if (cculoggerfileslist != null)
                    {
                        gridCCULogger.VirtualItemCount = cculoggerfileslist.Count();
                        gridCCULogger.DataSource = new ArrayList(cculoggerfileslist);
                        if (cculoggerfileslist.Count > 0)
                        {
                            GridPagerSet(gridCCULogger, true);
                        }
                        else
                        {
                            GridPagerSet(gridCCULogger, false);
                        }
                    }
                }
                FileinfoDisplay(false);
            }
            catch (Exception ex)
            {
                _errormessage = ex.Message;
            }
  
        }
  
        /// <summary>
        /// Show/Hide the pagination according to the records.
        /// </summary>
        /// <param name="grid">The grid.</param>
        /// <param name="visible">if set to <c>true</c> [visible].</param>
        private void GridPagerSet(RadGrid grid,bool visible)
        {
            grid.MasterTableView.PagerStyle.Visible = visible;
            grid.ClientSettings.Scrolling.AllowScroll = visible;
        }
  
  
        /// <summary>
        /// Handles the Click event of the linkBtnRefresh control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void linkBtnRefresh_Click(object sender, EventArgs e)
        {
            lblError.Text = string.Empty;
            //binding the updated values
            gridCCUDataTracker.Rebind();
            gridCCULogger.Rebind();
            ShowRequiredPanel();
            FileinfoDisplay(false);
        }
  
        /// <summary>
        /// Show the selected panel when clicked on refresh button.
        /// </summary>
        private void ShowRequiredPanel()
        {
            if (hdnFileType.Value == "DATATRACKER")
            {
                Loggerpnl.Style.Add("display", "none");
                Datatrackerpnl.Style.Add("display", "block");
                lblDataTracker.Attributes.Add("class", "liOnClick");
                lblLogger.Attributes.Remove("class");
            }
            else if (hdnFileType.Value == "LOGGER")
            {
                Loggerpnl.Style.Add("display", "block");
                Datatrackerpnl.Style.Add("display", "none");
                lblLogger.Attributes.Add("class", "liOnClick");
                lblDataTracker.Attributes.Remove("class");
            }
        }
  
        /// <summary>
        /// Refreshes the timer.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void refreshTimer(object sender, EventArgs e)
        {
            lblError.Text = string.Empty;
            FileinfoDisplay(false);
  
            //binding the updated values
            gridCCUDataTracker.Rebind();
            gridCCULogger.Rebind();
            ShowRequiredPanel();
  
        }
  
        /// <summary>
        /// Get the size of all files
        /// </summary>
        public void getallfilessizes()
        {
            CCUFileInfo[] filesinfo = null;
            CCUFileInfo[] tempfiles = null;
  
            tempfiles = sidbl.getfileinfo(out filesinfo);
            if (tempfiles != null && tempfiles.Length > 0)
            {
                filesizeinfo = tempfiles.ToList();
            }
        }
  
  
        /// <summary>
        /// Handles the SelectedIndexChanged event of the ddlActions control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void ddlActions_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlActions.SelectedValue == "Configure server parameters")
            {
                Response.Redirect("ServerConfiguration.aspx");
            }
        }
  
        /// <summary>
        /// Handles the SelectedIndexChanged event of the gridCCUDataTracker control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void gridCCUDataTracker_SelectedIndexChanged(object sender, EventArgs e)
        {
            lblError.Text = string.Empty;
            string filesize = string.Empty;
            string objid = string.Empty;
            string filename = string.Empty;
            objid = gridCCUDataTracker.SelectedValues["OBJID"].ToString();
            foreach (CCUFileInfo info in filesizeinfo)
            {
                if (objid.ToString() == info.fileobjid.ToString())
                {
                    filesize = info.fileSize;
                }
            }
            string tempdate = string.Empty;
            string date = string.Empty;
            FileinfoDisplay(true);
            filename = gridCCUDataTracker.SelectedValues["FILENAME"].ToString();
            tempdate = gridCCUDataTracker.SelectedValues["CREATE_DATE"].ToString();
            lblfileName.Text = filename;
            date = Convert.ToDateTime(tempdate).ToShortDateString();
            lblcreateDateValue.Text = date;
            string s = string.Empty;
            s = String.Format("{0:0.00}", float.Parse(filesize));
            lblSizeValue.Text = s + " Kb";
        }
  
        /// <summary>
        /// Handles the NeedDataSource event of the gridCCUDataTracker control.
        /// </summary>
        /// <param name="source">The source of the event.</param>
        /// <param name="e">The <see cref="GridNeedDataSourceEventArgs"/> instance containing the event data.</param>
        protected void gridCCUDataTracker_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            bindCCUDatafiles();
        }
  
        /// <summary>
        /// Handles the NeedDataSource event of the gridCCULogger control.
        /// </summary>
        /// <param name="source">The source of the event.</param>
        /// <param name="e">The <see cref="GridNeedDataSourceEventArgs"/> instance containing the event data.</param>
        protected void gridCCULogger_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            bindCCUDatafiles();
        }
        /// <summary>
        /// Handles the SelectedIndexChanged event of the gridCCULogger control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void gridCCULogger_SelectedIndexChanged(object sender, EventArgs e)
        {
            string filesize = string.Empty;
            string objid = string.Empty;
            string filename = string.Empty;
            string selectedfilesize = string.Empty;
            float selectedfilekb = 0;
  
            lblError.Text = string.Empty;
            objid = gridCCULogger.SelectedValues["OBJID"].ToString();
            foreach (CCUFileInfo info in filesizeinfo)
            {
                if (objid.ToString() == info.fileobjid.ToString())
                {
                    filesize = info.fileSize;
                }
            }
            string tempdate = string.Empty;
            string date = string.Empty;
            FileinfoDisplay(true);
            filename = gridCCULogger.SelectedValues["FILENAME"].ToString();
            tempdate = gridCCULogger.SelectedValues["CREATE_DATE"].ToString();
            lblfileName.Text = filename;
            date = Convert.ToDateTime(tempdate).ToShortDateString();
            lblcreateDateValue.Text = date;
            float.TryParse(filesize, out selectedfilekb);
            selectedfilesize = String.Format("{0:0.00}", selectedfilekb);
            lblSizeValue.Text = selectedfilesize + " Kb";
  
        }
  
        /// <summary>
        /// Details of the selected file in the grid
        /// </summary>
        /// <param name="visible">if set to <c>true</c> [visible].</param>
        private void FileinfoDisplay(bool visible)
        {
            lblfile.Visible = visible;
            lblfileName.Visible = visible;
            lblSize.Visible = visible;
            lblSizeValue.Visible = visible;
            lblcreateDate.Visible = visible;
            lblcreateDateValue.Visible = visible;
            lblselectedfileaction.Visible = visible;
            ddlfileActions.Visible = visible;
            imgSelected.Visible = visible;
        }
  
        /// <summary>
        /// Handles the SelectedIndexChanged event of the ddlfileActions control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void ddlfileActions_SelectedIndexChanged(object sender, EventArgs e)
        {
            long ID = 0;
  
            if (ddlfileActions.SelectedValue == "Download file")
            {
                if (hdnFileType.Value == "DATATRACKER")
                {
                    if (gridCCUDataTracker.SelectedValues != null)
                    {
                        ID = Convert.ToInt64(gridCCUDataTracker.SelectedValues["OBJID"]);
  
                    }
                }
                else if (hdnFileType.Value == "LOGGER")
                {
                    if (gridCCULogger.SelectedValues != null)
                    {
                        ID = Convert.ToInt64(gridCCULogger.SelectedValues["OBJID"]);
                    }
                }
  
                long tempfileSize;
                Stream tempStream;
                //See weather file exists in the server for the selected objid
                string fileName = sidbl.DownloadCCUFile(ID, out tempfileSize, out tempStream);
                if (fileName == string.Empty || fileName == null)
                {
                    System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, GetType(), "NotEligibleWarning", "alert('The selected file does not exist in the server')", true);
                }
                else
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "download", "DownloadFile(" + ID + ")", true);
  
                    CCUDATAFILE CCUdatfile = new CCUDATAFILE() { OBJID = ID, DOWNLOADED = true, TYPE = "type", FILENAME = "fn", FILEPATH = "fp" };
                    bool result = sidbl.UpdateCCUDatafile(CCUdatfile, out errorMessage);
                }
  
            }
            else if (ddlfileActions.SelectedValue == "Remove file from server")
            {
                string fPath = string.Empty;
                string fName = string.Empty;
                if (hdnFileType.Value == "DATATRACKER")
                {
  
                    if (gridCCUDataTracker.SelectedValues != null)
                    {
                        //Getting the information on selection of a row in the data tracker grid
                        ID = Convert.ToInt64(gridCCUDataTracker.SelectedValues["OBJID"]);
                        fPath = gridCCUDataTracker.SelectedValues["FILEPATH"].ToString();
                        fName = gridCCUDataTracker.SelectedValues["FILENAME"].ToString();
                    }
                }
                else if (hdnFileType.Value == "LOGGER")
                {
                    if (gridCCULogger.SelectedValues != null)
                    {
                        //Getting the information on selection of a row in the logger grid
                        ID = Convert.ToInt64(gridCCULogger.SelectedValues["OBJID"]);
                        fPath = gridCCULogger.SelectedValues["FILEPATH"].ToString();
                        fName = gridCCULogger.SelectedValues["FILENAME"].ToString();
                    }
                }
                string datafile = fPath + "\\" + fName;
                  
                bool result = sidbl.RemoveCCUFiles(ID, datafile, out errorMessage);
                lblError.Text = errorMessage;
            }
  
            gridCCUDataTracker.Rebind();
            gridCCULogger.Rebind();
            ddlfileActions.SelectedIndex = 0;
        }
  
        /// <summary>
        /// Handles the SelectedIndexChanged event of the ddlView control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void ddlView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlView.SelectedValue == "CCU devices")
            {
                Response.Redirect("CCUDataTrackerConfiguration.aspx");
  
            }
        }
    }
}
<%@ Page Title="" Language="C#" MasterPageFile="~/SP_DLG_MasterPage.Master" AutoEventWireup="true"
    CodeBehind="CCUData.aspx.cs" Inherits="SP.DLG.WebClient.CCUData" %>
    <%@ Register Src="~/UserControls/Details.ascx" TagName="Details" TagPrefix="UC" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentWTModels" runat="server">
    <script type="text/javascript" src="../Script/jquery.min.js"></script>
    <script id="scr" type="text/javascript" language="javascript">
  
        function itemClicked(linkObj, item) {
            $("#ServerFilesTabMenu li a").removeClass('liOnClick');
  
            if (item == "DATATRACKER") {
                $(linkObj).addClass('liOnClick');
                var pnl1 = $("#<%= Datatrackerpnl.ClientID %>");
                var pnl2 = $("#<%= Loggerpnl.ClientID %>");
                $(pnl2).hide();
                $(pnl1).show();
            }
  
            else if (item == "LOGGER") {
                $(linkObj).addClass('liOnClick');
                var pnl1 = $("#<%= Datatrackerpnl.ClientID %>");
                var pnl2 = $("#<%= Loggerpnl.ClientID %>");
                $(pnl1).hide();
                $(pnl2).show();
            }
            document.getElementById("<%= hdnFileType.ClientID %>").value = item;
            document.getElementById("<%= linkBtnRefresh.ClientID %>").click();
        }
  
        function DownloadFile(objid) {
            var iframe = document.createElement("iframe");
            iframe.src = "DownloadHandler.ashx?objid=" + objid;
            iframe.style.display = "none";
            document.body.appendChild(iframe);
            SetTableInfoSize();
        }
    </script>
    <table style="width: 100%">
        <tr>
            <td>
                <asp:Label ID="lblDevices" CssClass="treeViewNodeText" runat="server" Text="CCU DATA TRACKER"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Timer ID="timerRefreshGrid" OnTick="refreshTimer" runat="server" Interval="30000">
                </asp:Timer>
            </td>
        </tr>
        <tr>
            <td style="height: 260px">
                <div>
                    <table border="1" cellpadding="0" cellspacing="0" style="border-color: Black;" width="100%">
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblView" runat="server" Text="VIEW:" CssClass="treeViewNodeText"></asp:Label>
                                        </td>
                                        <td style="width: 150px">
                                            <asp:DropDownList ID="ddlView" Font-Bold="true" Width="150px" AutoPostBack="true"
                                                CssClass="comboboxText" runat="server" OnSelectedIndexChanged="ddlView_SelectedIndexChanged">
                                                <asp:ListItem Text="Server files"></asp:ListItem>
                                                <asp:ListItem Text="CCU devices"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td style="width: 400px; text-align: center">
                                            <div class="Tabdiv">
                                                <ul id="ServerFilesTabMenu">
                                                    <li><a id="lblDataTracker" class="liOnClick" runat="server" onclick="itemClicked(this,'DATATRACKER')"
                                                        onmouseover="this.style.cursor='pointer'">DATATRACKER<span></span></a> </li>
                                                    <li style="border-right: 0px"><a id="lblLogger" runat="server" onmouseout="this.style.cursor='default'"
                                                        onclick="itemClicked(this,'LOGGER')" onmouseover="this.style.cursor='pointer'">LOGGER<span></span></a></li>
                                                </ul>
                                            </div>
                                        </td>
                                        <td align="right" style="width: 200px">
                                            <asp:LinkButton ID="linkBtnRefresh" Text="REFRESH LIST" runat="server" Font-Underline="false"
                                                CssClass="linkBtn" OnClick="linkBtnRefresh_Click"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="border: 0px">
                                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <asp:Panel ID="Datatrackerpnl" runat="server">
                                    <div style="height: 220px; width: 100%;">
                                        <asp:UpdatePanel ID="upGridCCUData" UpdateMode="Always" runat="server">
                                            <ContentTemplate>
                                                <asp:HiddenField ID="hdnFileType" runat="server" />
                                                <telerik:RadGrid ID="gridCCUDataTracker" AllowPaging="true" OnSelectedIndexChanged="gridCCUDataTracker_SelectedIndexChanged"
                                                    AutoGenerateColumns="false" AllowAutomaticInserts="true"
                                                    OnNeedDataSource="gridCCUDataTracker_NeedDataSource" GridLines="Horizontal" ClientSettings-EnableRowHoverStyle="true"
                                                    EnableAjaxSkinRendering="false" MasterTableView-RowIndicatorColumn-ItemStyle-BorderColor="ActiveBorder"
                                                    Height="220px" Width="100%" runat="server">
                                                    <ClientSettings Scrolling-AllowScroll="true" EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true"
                                                        Scrolling-UseStaticHeaders="true">
                                                    </ClientSettings>
                                                    <MasterTableView AllowPaging="true" DataKeyNames="OBJID,FILEPATH,FILENAME,CREATE_DATE,DOWNLOADED"
                                                        Visible="true" Width="100%" TableLayout="Fixed" EnableViewState="true" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center">
                                                        <Columns>
                                                            <telerik:GridTemplateColumn UniqueName="imgStatus" DataField="DOWNLOADED" HeaderStyle-Width="5%">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkdownloaded" Enabled="false" Checked='<%# Convert.ToInt32(Eval("DOWNLOADED"))== 1 ? true:false %>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridBoundColumn DataField="DEVICE.WINDTURBINE" HeaderStyle-Font-Bold="true"
                                                                HeaderStyle-Width="7%" HeaderText="WTG">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="DEVICE.MODEL" HeaderText="TYPE" HeaderStyle-Font-Bold="true"
                                                                HeaderStyle-Width="25%">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="FILENAME" SortExpression="POWER" HeaderStyle-Font-Bold="true"
                                                                HeaderStyle-Width="40%" HeaderText="FILE">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridTemplateColumn DataField="DOWNLOADED" HeaderStyle-Width="15%" HeaderStyle-Font-Bold="true"
                                                                HeaderText="LOCAL">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblLocal" Text='<%# Convert.ToInt32(Eval("DOWNLOADED"))== 1 ? "YES":"NO" %>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </telerik:GridTemplateColumn>
                                                        </Columns>
                                                        <HeaderStyle CssClass="GridHeader" />
                                                    </MasterTableView>
                                                    <PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Bottom" Position="Bottom" AlwaysVisible="true" />
                                                </telerik:RadGrid>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Loggerpnl" runat="server" Style="display: none">
                                    <div style="height: 220px; width: 100%;">
                                        <asp:UpdatePanel ID="upGridLoggerData" UpdateMode="Always" runat="server">
                                            <ContentTemplate>
                                                <telerik:RadGrid ID="gridCCULogger" AllowPaging="true" OnSelectedIndexChanged="gridCCULogger_SelectedIndexChanged"
                                                     AutoGenerateColumns="false" AllowAutomaticInserts="true"
                                                    OnNeedDataSource="gridCCULogger_NeedDataSource" GridLines="Horizontal" ClientSettings-EnableRowHoverStyle="true"
                                                    EnableAjaxSkinRendering="false" MasterTableView-RowIndicatorColumn-ItemStyle-BorderColor="ActiveBorder"
                                                    Height="220px" Width="100%" runat="server">
                                                    <ClientSettings Scrolling-AllowScroll="true" EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true"
                                                        Scrolling-UseStaticHeaders="true">
                                                    </ClientSettings>
                                                    <MasterTableView AllowPaging="true" DataKeyNames="OBJID,FILEPATH,FILENAME,CREATE_DATE,DOWNLOADED,MODIFIED_DATE"
                                                        Visible="true" Width="100%" TableLayout="Fixed" EnableViewState="true" HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center">
                                                        <Columns>
                                                            <telerik:GridTemplateColumn UniqueName="imgStatus" DataField="DOWNLOADED" HeaderStyle-Width="5%">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkdownloaded" Enabled="false" Checked='<%# Convert.ToInt32(Eval("DOWNLOADED"))== 1 ? true:false %>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridBoundColumn DataField="DEVICE.WINDTURBINE" HeaderStyle-Font-Bold="true"
                                                                HeaderText="WTG" HeaderStyle-Width="7%">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="DEVICE.MODEL" HeaderText="TYPE" HeaderStyle-Font-Bold="true"
                                                                HeaderStyle-Width="21%">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="FILENAME" SortExpression="POWER" HeaderStyle-Font-Bold="true"
                                                                HeaderStyle-Width="45%" HeaderText="FILE">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="MODIFIED_DATE" HeaderStyle-Font-Bold="true" HeaderStyle-Width="35%"
                                                                HeaderText="MODIFIED">
                                                            </telerik:GridBoundColumn>
                                                        </Columns>
                                                        <HeaderStyle CssClass="GridHeader" />
                                                    <PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Bottom" Position="Bottom" AlwaysVisible="true" />
  
                                                    </MasterTableView>
                                                </telerik:RadGrid>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentInfo" runat="server">
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="padding-top: 2%">
                <asp:Label ID="lblActions" CssClass="treeViewNodeText" Text="AVAILABLE ACTIONS:"
                    runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddlActions" CssClass="comboboxContenet" AutoPostBack="true"
                    runat="server" OnSelectedIndexChanged="ddlActions_SelectedIndexChanged">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem Text="Configure server parameters" Value="Configure server parameters"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="padding-top: 2%">
                <asp:Image ID="imageAvailable" Width="100%" Height="2px" runat="server" Style="width:144px;"
                    ImageUrl="~/Images/line.jpg" />
            </td>
        </tr>
        <tr>
            <td style="padding-top: 2%">
                <asp:Label ID="lblfile" CssClass="text_content_heading !important" Text="SELECTED FILE"
                    runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblfileName" runat="server" CssClass="text_content"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblcreateDate" Text="Created : " runat="server" CssClass="text_content"></asp:Label>
                <asp:Label ID="lblcreateDateValue" runat="server" CssClass="text_content"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblSize" runat="server" Text="Size : " CssClass="text_content"></asp:Label>
                <asp:Label ID="lblSizeValue" runat="server" CssClass="text_content"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblselectedfileaction" Text="Please select action:" runat="server"
                    CssClass="treeViewNodeText"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddlfileActions" CssClass="comboboxContenet" EnableViewState="true"
                    runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlfileActions_SelectedIndexChanged">
                    <asp:ListItem Value="None" Text=""></asp:ListItem>
                    <asp:ListItem Value="Download file" Text="Download file"></asp:ListItem>
                    <asp:ListItem Value="Remove file from server" Text="Remove file from server"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 2%; padding-top: 2%">
                <asp:Image ID="imgSelected" Width="100%" Height="2px" runat="server" ImageUrl="~/Images/line.jpg"
                    Visible="false" />
            </td>
        </tr>
      
    </table>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentWTNeedHelpDetails" runat="server">
        <UC:Details ID="details" runat="server"></UC:Details>
    </asp:Content>

Thanks,
Gayathri

 

0
Eyup
Telerik team
answered on 31 Jul 2013, 12:28 PM
Hi Gayathri,

This issue has already been addressed. Please download and upgrade your application to the latest RadControls version and the problem should be resolved when PagerStyle-AlwaysVisible is enabled.

Looking forward to your reply.

Regards,
Eyup
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Gayathri
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Gayathri
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or