Forum

November 2nd, 2014
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
Edit Form Position
07/01/2009
13:02
Avatar
maggie
Member
Members
Forum Posts: 49
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

As shown on the edit row example demo , when click  on the "Edit Selected" button, the edit form appear on the left upper corner of the grid.

Also, I see this from the doc :   
"If the top and left off-set properties are not set, the dialog appears at the upper left corner of the grid. Top and left off-sets are in relation to the viewing window, not the grid, so {top:10, left:10} will be indented slightly from the window, and may be nowhere near the grid."

But I got this problem: the edit form displays on the left upper corner of the browser window, and pushes  the grid down on the page. I used the default top and left properties.

My html codes:

<table id="editgrid" class="scroll" cellpadding="0" cellspacing="0"></></table>
  <div id="pager" class="scroll" style="text-align: center;"></div>
  
  <input type="BUTTON" id="bedata" value="Edit Selected" />

And the  code for button on click:

$("#bedata").click(function(){
       var gr = jQuery("#editgrid").getGridParam('selrow');
       if( gr != null ) jQuery("#editgrid").editGridRow(gr,{ height:280, reloadAfterSubmit:false});
       else alert("Please Select Row");
    });

Thanks!

Maggie

08/01/2009
08:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

To be a sure that you load the jqModal.css and jqModal.js and jqDnR.js files properly.

Regards

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.

08/01/2009
09:17
Avatar
maggie
Member
Members
Forum Posts: 49
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

Here are my codes that load the css and js:

 <link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/basic/grid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/jqModal.css" />
   
<script src="jquery/jquery.js" type="text/javascript"></script>
<script src="jquery/jquery.jqGrid.js" type="text/javascript"></script>
<script src="jquery/js/jqModal.js" type="text/javascript"></script>
<script src="jquery/js/jqDnR.js" type="text/javascript"></script>

To test the pathing, I directly access to the files and can access them:

http://localhost:8080/ReportsP.....qModal.css   -2kb

http://localhost:8080/ReportsP.....jqModal.js    3.3kb

http://localhost:8080/ReportsP.....s/jqDnR.js   1.42 kb

It seems that the css and js load ok but there is still the same problem.

Thanks,

Maggie

08/01/2009
10:02
Avatar
maggie
Member
Members
Forum Posts: 49
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

Hello,

I tried to run my page using firefox, the edit form position looks right using firefox,  but it still messes up using IE 7. It seems that the css of my page can't be loaded correctly by IE 7, though I can use IE 7 to run the demo page (http://trirand.com/jqgrid/jqgrid.html, live data manipulation -> edit row) and the edit form demo looks good there.

Thanks, Maggie

08/01/2009
10:09
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What is your DOCTYPE definition?

Try with this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Regards

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.

08/01/2009
10:15
Avatar
maggie
Member
Members
Forum Posts: 49
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

Thanks Tony! 

I use your DOCTYPE definition and my page works for IE 7 now!  Thank you so much!

Laughing

Maggie

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
54 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