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
jQuery UI Dialog throwing ".dialog is not a function" error
29/04/2011
18:33
Avatar
eguyer
Chicago, IL
New Member
Members
Forum Posts: 2
Member Since:
29/04/2011
sp_UserOfflineSmall Offline

I'd like to add a dialog to the add/edit function of a subgrid that enables a part number lookup.  Seems straightforward but I'm getting ".dialog is not a function" errors when I place $(function() {$( "#lookupForm" ).dialog();}); anywhere in the index or js files.  Is there a compatibility issue with jQuery 1.5.2 and Grid 4.0.0?

Code:

subGridRowExpanded: function(subgrid_id, row_id) {

subgrid_table_id = subgrid_id+"_t";

pager_id = "p_"+subgrid_table_id;

$("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");

r = $("#partitions").getRowData(row_id),

h_id = r.h_id,

$("#"+subgrid_table_id).jqGrid({

url:"getBOM.php?h_id="+h_id,

datatype: "json",

colNames: ['Partition ID','Part #','Software','Unit List Price'],

colModel: [

{name:"partition_id", hidden: true, editable: false},

{name:"part_num", width: 100, editable: true}, //would like to include a button to press here in order to "open" the modal dialog

{name:"prod_desc", width: 400, editable: false},

{name:"price", width: 100, editable: false}

],

viewrecords: true,

editurl: 'addBOM.php',

height: 100,

pager: pager_id,

rowNum: 10,

sortname: 'prod_desc',

sortorder: 'asc',

sortable: true

});

29/04/2011
20:34
Avatar
eguyer
Chicago, IL
New Member
Members
Forum Posts: 2
Member Since:
29/04/2011
sp_UserOfflineSmall Offline

Unbelievable.  I forgot to include jquery-ui.min.js.  Two days of frustration.  Oh well.

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