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
getting datepicker to work
19/09/2009
18:51
Avatar
tim
Guest
Guests

Ok I've tried to get this to work, but the calendar will not pop up.

Can someone tell me what I am doing wrong ?

Live example:

http://blackstag.com/json-example

Thanks,

-------

* when I remove the editoptions - the cell edit begins to work.

$(document).ready(function(){

2 jQuery("#list").jqGrid({
3 url: 'tree-json',
4 datatype:'json',
5 forceFit:true,
6 cellEdit:true,
7 cellsubmit:'remote',
8 cellurl: 'budget-handler',
9 treeGrid: true,
10 ExpandColumn:'thing',
11 colNames: ["NAMES","DATE"],
12 colModel: [{name: 'thing', index: 'thing', width: 220, hidden: false, sortable: false},
13 {name: 'myDate', index: 'myDate', width: 120, sortable:true, datefmt:"d/m/Y", editrules:{minValue:0, date:true},
14 editable:true, sorttype:"date", editoptions:{size:12, dataInit:function(elem){$(elem).datepicker({dateFormat:'dd/mmm/yy'});}}}
15 ],
16 height: 300,
17 width: 400,
18 imgpath: 'css/sunny/images',
19 caption: 'My Things!',
20 });
21});
19/09/2009
19:23
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

which version of jqModal? and what are your js files in your page?

19/09/2009
19:56
Avatar
tim
Guest
Guests

> which version of jqModal?

I am not sure what this means. What is jqModal? is it not included in jQGrid?

I don't see jqModal in the requirements:

http://www.trirand.com/jqgridw.....iki:system


This is what I have:

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="grid.locale-en.js"></script>

<script type="text/javascript" src="jquery.jqGrid.min.js"></script>



> what are your js files in your page?

This is my jQgrid js:

http://blackstag.com/json.js


This is my json data:

http://blackstag.com/tree-json
19/09/2009
22:58
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

Sorry I meant jqGrid, and not jqModal. I presume you're using jqgrid 3.5 you need to include also     jquery-ui-1.7.1.custom.min.js this i sthe core file of UI since you are using datepicker.

19/09/2009
23:08
Avatar
tim
Guest
Guests

Thanks, MamaliFrenchi.

I just figured it out too. You're right - I didn't include "js/jquery-ui-1.7.2.custom.min.js".

oops. - though nowhere in the docs or in the forum does it say it's required.

Thanks,

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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