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

[Solved] RadGird EditForm and Tablet device

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefano
Top achievements
Rank 1
Stefano asked on 22 Apr 2013, 03:03 PM

I have some questions / problems with Telerik RadGrid and editmode 'popUp' with EditFormSettings setted

<EditFormSettings PopUpSettings-Modal="true"
InsertCaption="Aggiunta nuovo record"
EditFormType="WebUserControl" UserControlName="supedit.ascx"
            PopUpSettings-ShowCaptionInEditForm="false">
   </EditFormSettings>

 

 

 

1. the popUp window dos not draggable with iPad or tablet devices, there is a solution ?

2. The popUp page does not display correcty in the center of the screen. I have just try a telerik javascript solution but it is not good for my scope, my solution is

var popUp;
$.fn.centerMe = function () {
var winH = $(window).height();
var winW = $(window).width();
var T = (winH - this.outerHeight()) / 2 + ($(window).scrollTop() / 2);
var L = (winW - this.outerWidth()) / 2 + ($(window).scrollLeft() / 2);
T = Math.round(T);
L = Math.round(L);
this.attr('style', 'max-height:590px; width: 400px; position: fixed; z-index: 99999 !important; left: ' + L + 'px; top:' + T + 'px;');
    };
 
function PopUpShowing(sender, eventArgs) {
        var w = $(window);
        popUp = eventArgs.get_popUp();
        $("#" + popUp.id).centerMe();
    }


With
<clientsettings><ClientEvents OnPopUpShowing="PopUpShowing" /> </clientsettings>

My question is: Is there a better solution?

Very THX !

 

 

 

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 25 Apr 2013, 09:47 AM
Hi,

 1. Indeed currently the popup is not draggable on touch devices. We will try to improve this behavior for future versions of the controls

2. The javascript solution with handling the PopUpShowing event is the recommended approach to center the popup on the page in this case. If necessary you can further adjust it to fit your particular scenario.

Greetings,
Marin
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.
Tags
Grid
Asked by
Stefano
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or