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 sizes
28/12/2008
10:42
Avatar
dhoover
Member
Members
Forum Posts: 23
Member Since:
28/12/2008
sp_UserOfflineSmall Offline

New here, so sorry if I am repeating something already requested (I did look). When the add/edit form is displayed, it appears that the overall dimensions and the widths of the text (and textarea) input fields are not configurable. Is that correct? I just added a few more columns to the page I am experimenting with and the modal dialog box was displayed with the buttons hidden because it was too short.

28/12/2008
13:49
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

for the edit form hight you must declare it at navGrid properties

$Grid.navGrid('#pager'
        , { edit: true, add: true, del: true}//options

        , { height: 400, top: 100, left: 100, reloadAfterSubmit: true, modal: true, checkInput: true} // edit options
        , { height: 280, reloadAfterSubmit: true} // add options
        , { reloadAfterSubmit: true} // del options
        , { top: 100, left: 100, sopt: ['cn', 'bw', 'eq', 'ew']} // search options

);

unfortunately it cannot be set t0 '100%'.

as for Edit's fileds width, it's in editoptions: {size:20, maxlength: 25}

28/12/2008
15:39
Avatar
dhoover
Member
Members
Forum Posts: 23
Member Since:
28/12/2008
sp_UserOfflineSmall Offline

Thanks, I tried what you suggested (it actually covered several questions I have scattered about on the forum), but the navGrid options did not seem to do anything. The editoptions suggestion for setting the size of a text field does work. I'm not sure waht I might be doing wrong, but isn't it possiible for the dialog to determines how big it should be on its own, based on what is being drawn inside it?

I only set the edit options, just to test it out, and used exactly what you specified in the context of my code:

}).navGrid('#pager2',
                   {edit:true,add:true,del:true},       // options
                   {height: 400, top: 100, left: 100, reloadAfterSubmit: true, modal: true, checkInput: true},    // edit options
                   {},    // add options
                   {},    // del options
                   {}     // search options
                  );

29/12/2008
02:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

We can use the auto property for the width or height, but there is a bug in jqDnR when we use a auto height. I have notified the author about this problem and hope that it will be corrected soon.

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.

31/12/2008
12:54
Avatar
pkinsman
Member
Members
Forum Posts: 7
Member Since:
31/12/2008
sp_UserOfflineSmall Offline

dhoover said:

Thanks, I tried what you suggested (it actually covered several questions I have scattered about on the forum), but the navGrid options did not seem to do anything. The editoptions suggestion for setting the size of a text field does work. I'm not sure waht I might be doing wrong, but isn't it possiible for the dialog to determines how big it should be on its own, based on what is being drawn inside it?

I only set the edit options, just to test it out, and used exactly what you specified in the context of my code:

}).navGrid('#pager2',
                   {edit:true,add:true,del:true},       // options
                   {height: 400, top: 100, left: 100, reloadAfterSubmit: true, modal: true, checkInput: true},    // edit options
                   {},    // add options
                   {},    // del options
                   {}     // search options
                  );


I just tried this out and it works in Firefox and IE7 but not in IE6.

04/01/2009
09:38
Avatar
dhoover
Member
Members
Forum Posts: 23
Member Since:
28/12/2008
sp_UserOfflineSmall Offline

Interesting. Seems to work and not work intermittently, even when I do a clear reload.

04/01/2009
09:58
Avatar
dhoover
Member
Members
Forum Posts: 23
Member Since:
28/12/2008
sp_UserOfflineSmall Offline

My bad. I have my grid set up to edit a row by clicking on the navbar icon or by double clicking on the row itself. I did not realize that I need to duplicate the properties for each specification. Sorry.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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