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

alignment problem

5 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gokul
Top achievements
Rank 1
Gokul asked on 23 Apr 2013, 10:18 AM
hi ,
   Currently i had developed a web page,if my web page is  viewed by in some other system some alignment are missing and if we view it in a small moniter alingment are totally get collapsed............................can any one suggest me how to solve this major issue ...................
                                    thanks

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Apr 2013, 02:10 PM
Hi,

As far as I know Telerik controls are not responsive towards design. One suggestion is to provide the measurements either in percentage or em.

Thanks,
Princy.
0
Gokul
Top achievements
Rank 1
answered on 24 Apr 2013, 04:06 AM
thanks princy..
any other suggesion ........
0
Prathyusha
Top achievements
Rank 1
answered on 25 Apr 2013, 06:33 AM

You have to wrile Javascript for getting screen reolution
function getresolution()
{
var winW = document.documentElement.clientWidth;
var  winH = document.documentElement.clientHeight;
}
pass these values to Codebehind by using hiddenfields.

You have to write a method for getting ScreenResolution in CodeBehind,based on resolution You have to set your controls(like RadGrid) Height and width.

in Codebehind

private void GETResolution()
{
if(hiddenfileld1.value>720)
radgrid,height=400;//Like that

if(hiddenfileld1.value>1280)
radgrid,height=700;//Like that
}
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Apr 2013, 09:05 AM
Hi,

One option is to use media queries to make your webpage responsive according to the width of the screen.

Thanks,
Princy.
0
Gokul
Top achievements
Rank 1
answered on 25 Apr 2013, 12:28 PM
hi,
  thank you Prathyusha and Princy.............
Tags
General Discussions
Asked by
Gokul
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Gokul
Top achievements
Rank 1
Prathyusha
Top achievements
Rank 1
Share this question
or