Radgrid寻呼机控制正在下推或消失。 [英] Radgrid pager control is pushing down or disappearing.

查看:148
本文介绍了Radgrid寻呼机控制正在下推或消失。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中实现了RadGrid来显示数据。但面对一个严重的问题,当试图回发或转到下一页时,寻呼机控制正在向下移动。为了根据页面高度和宽度修复网格高度和宽度,我在页面加载中实现了下面的java脚本。但不幸的是,在回发后它无效。



I have implemented RadGrid in my project for displaying data. But facing one severe issue, when trying to post back or going to the next page, the pager control is shifting down. In order to fix Grid height and width according to the page height and width, i have implemented bellow java script in page load. But unfortunately after post back it is not working.

var grid, gridHeight;
   gridHeight = document.documentElement.offsetHeight - 130;
   grid = $find('<%= GridControl1.FindControl("RadGrid4").ClientID %>');
   if(grid !== null){
        contentPane.set_height(document.documentElement.offsetHeight - 90);  
        grid.get_element().style.height = gridHeight+ "px";
        contentSplitter.repaint();
        grid.repaint();
    }
    else{
        grid = $get('<%= GridControl1.FindControl("RadGrid4").ClientID %>');
        contentPane.set_height(document.documentElement.offsetHeight - 75);
        grid.get_element().style.height = gridHeight+ "px";
        contentSplitter.repaint();
        grid.repaint();
    }



另外在其他部分尝试使用下面给出的java脚本来修复网格的高度,但遗憾的是它无法正常工作。

grid.get_element()。style.height = gridHeight +px;



请建议,如何修复帖子背面的网格高度以便寻呼机控制不要向下移动或消失。



提前致谢。

Dipak



我尝试过:




Additionally in else section have tried to fix the height of grid by using bellow given java script, but unfortunately it is not working.
grid.get_element().style.height = gridHeight+ "px";

Kindly suggest, how to fix Grid height in post back so that pager control should not shift down or disappear.

Thanks in advance.
Dipak

What I have tried:

In else section have tried to fix the height of grid by using bellow given java script, but unfortunately it is not working.
grid.get_element().style.height = gridHeight+ "px";

推荐答案

find(' <%= GridControl1.FindControl(RadGrid4)。ClientID%>');
if (grid!== null ){
contentPane.set_height(< span class =code-sdkkeyword> document .documentElement.offsetHeight - 90 );
grid.get_element()。style.height = gridHeight + px;
contentSplitter.repaint();
grid.repaint();
}
else {
grid =
find('<%= GridControl1.FindControl("RadGrid4").ClientID %>'); if(grid !== null){ contentPane.set_height(document.documentElement.offsetHeight - 90); grid.get_element().style.height = gridHeight+ "px"; contentSplitter.repaint(); grid.repaint(); } else{ grid =


get(' <%= GridControl1.FindControl(RadGrid4)。ClientID%>');
contentPane.set_height( document .documentElement.offsetHeight - 75 );
grid.get_element()。style.height = gridHeight + px;
contentSplitter.repaint();
grid.repaint();
}
get('<%= GridControl1.FindControl("RadGrid4").ClientID %>'); contentPane.set_height(document.documentElement.offsetHeight - 75); grid.get_element().style.height = gridHeight+ "px"; contentSplitter.repaint(); grid.repaint(); }



另外在其他部分尝试使用下面给出的java脚本来修复网格的高度,但遗憾的是它无法正常工作。

grid.get_element()。style.height = gridHeight +px;



请建议,如何修复帖子背面的网格高度以便寻呼机控制不要向下移动或消失。



提前致谢。

Dipak



我尝试过:




Additionally in else section have tried to fix the height of grid by using bellow given java script, but unfortunately it is not working.
grid.get_element().style.height = gridHeight+ "px";

Kindly suggest, how to fix Grid height in post back so that pager control should not shift down or disappear.

Thanks in advance.
Dipak

What I have tried:

In else section have tried to fix the height of grid by using bellow given java script, but unfortunately it is not working.
grid.get_element().style.height = gridHeight+ "px";


这篇关于Radgrid寻呼机控制正在下推或消失。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆