Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
My edit form is not draggable and resizable
13/02/2010
09:21
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

Hi,

My edit form is neither draggable nor resizable. Here are my includes:

        <script type='text/javascript' src='js/jquery/jquery.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery.multi-ddm.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery-ui.min.js'></script>
        <script type='text/javascript' src='js/jquery/grid/i18n/grid.locale-en.js'></script>
        <script type='text/javascript' src='js/jquery/grid/jquery.jqGrid.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery.layout.min.js'></script>
        <script type='text/javascript' src='js/jquery/jqDnR.js'></script> <===== including this does not work either

        <script type='text/javascript' src='js/jquery/jqModal.js'></script> <===== including this does not work either

and here is my js:

        ).jqGrid('navGrid','#pager', {},         
                 {height:400, width:280, reloadAfterSubmit:true, closeAfterEdit:true, mtype:'post', drag:true, resize:true, modal:true,
                    onInitializeForm:function(formid)
                    {
                        $('#EffDate', formid).datepicker({dateFormat:'m/dd/yy'});
                        $('#ExprDate', formid).datepicker({dateFormat:'m/dd/yy'});
                        $('#RecDate', formid).datepicker({dateFormat:'m/dd/yy'});
                    }
                 }/*edit options*/,
                 {height:380, width:280, reloadAfterSubmit:true, closeAfterAdd:true, mtype:'post'}/*add options*/,
                 {reloadAfterSubmit:true}/*del options*/)
         .jqGrid('gridResize',{minWidth:550, maxWidth:1800, minHeight:80, maxHeight:350});

I downloaded everything. However, to make sure my jquery-ui.min.js does have draggable and resizable, I issued this command "grep 'draggable' jquery-ui.min.js" It shows the word draggable.

What am I missing? Thanks.

13/02/2010
16:03
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi,

there is no css included in your code fragment. Verify, that you have following css included:

  1. jQueryUI-css coresponds used jQueryUI version and theme. For example, "themes/redmond/jquery-ui-1.7.2.custom.css"
  2. jqGrid css like "ui.jqgrid.css"
  3. optional, if you use searching possibilities of jqGrid, include "jquery.searchFilter.css"
  4. optional, if you use possibilities like 'gridResize' etc.: "ui.multiselect.css"

moreover, because you use 'gridResize' feature, you have to include "ui.multiselect.js". If you use searching possibilities of jqGrid, include "jquery.searchFilter.js" also.

Best regards

Oleg

13/02/2010
17:58
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

Hi Oleg,

Thanks for your response.

For some reason, I missed posting the css section in the question. However, I did have it in my codes. I took your advice and added multiselect js and css files. Still not working. Here is my entire <head> section:

    <head>
        <link rel='stylesheet' type='text/css' href='css/Core.css'/>
        <link rel='stylesheet' type='text/css' href='css/main/Ddm.css'/>
        <link rel='stylesheet' type='text/css' href='css/theme/redmond/ui.all.css'/>
        <link rel='stylesheet' type='text/css' href='css/theme/redmond/jquery-ui.css'/>
        <link rel="stylesheet" type="text/css" href="css/theme/my-ui.css"/>
        <link rel="stylesheet" type="text/css" href="css/grid/ui.jqgrid.css"/>

        <link rel="stylesheet" type="text/css" href="js/jquery/multiselect/css/common.css"/>
        <link rel="stylesheet" type="text/css" href="js/jquery/multiselect/css/ui.multiselect.css"/>

        <link rel="stylesheet" type="text/css" href="css/admin/Training.css"/>
        <link rel="stylesheet" type="text/css" href="css/admin/Admin.css"/>

        <script type='text/javascript' src='js/jquery/jquery.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery.multi-ddm.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery-ui.min.js'></script>
        <script type='text/javascript' src='js/jquery/grid/i18n/grid.locale-en.js'></script>
        <script type='text/javascript' src='js/jquery/grid/jquery.jqGrid.min.js'></script>
        <script type='text/javascript' src='js/jquery/jquery.layout.min.js'></script>

        <script type='text/javascript' src='js/jquery/multiselect/js/ui.multiselect.js'></script>

        <script type='text/javascript' src='js/jquery/jqDnR.js'></script>
        <script type='text/javascript' src='js/jquery/jqModal.js'></script>

        <script type='text/javascript' src='js/Core.js'></script>
        <script type='text/javascript' src='js/admin/Admin.js'></script>
    </head>

Thanks for any further response.

17/02/2010
12:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

If you use jQuery 1.4. there please use 3.6.4 version where this bug is fixed.

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

18/02/2010
05:37
Avatar
phamtranquocviet
Member
Members
Forum Posts: 22
Member Since:
06/02/2010
sp_UserOfflineSmall Offline

Hi Tony,

I selected all components and downloaded 3.6.4, and it still does not work. When I switched back to jquery 1.3.x, it works. Thanks.

18/02/2010
13:36
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi, phamtranquocviet!

The error is probably in the part of you code, which you not describe here. In my code, for example, everything works OK. If you prepare a small html/javascript code without any server code (you can set datatype to 'local' or 'clientSide' and fill table with at least one row of test data with respect of addRowData). So one could be easy localize and fix you problem.

Best regards
Oleg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information