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
problem with jqgrid 3.5 and jquery-ui-1.7.2.
04/09/2009
07:47
Avatar
mirko
Guest
Guests

Hi,

I'm trying to use jqgrid 3.5 with jquery-ui-1.7.2 but when I activate the row in edit mode no data request for select is issued ( checked by http sniffer) and an error rise up when the datepicker  is bound to the grid.

Please help me

Thanks

thi is the error:

Microsoft JScript runtime error: Object doesn't support this property or method

and this is my code:

$(

"#list").jqGrid(

{

url:

'/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Autorizzazioni/',

datatype:

'json',

mytype:

'GET',

height: 255,

autowidth:

true,

colNames: [

'Fondo', 'Dal', 'Al', 'Percentuale'],

colModel: [

{

name:

'Fondo',

index:

'Fondo',

width: 200,

editable:

true

edittype:

'select',

editoptions: {dataUrl:

"/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Fondi/"

}

},

{

name:

'Dal',

index:

'Data_Di_Autorizzazione',

label:

'Dal',

width: 90,

align:

'center',

sortable:

true,

sorttype:

'date',

editable:

true,

editoptions:

{

size:12,

dataInit:

function(el)

{

$(el).datepicker({dateFormat:

'yy-mm-dd'

});

.......

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

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

Hello,

What data is returned from server whn you call “/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Fondi/"

The retuened data should be a valid select element. Please check what you return from server or you have all the needed modules loaded - see jqGrid installation and inline editing.

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/09/2009
09:33
Avatar
mirko
Guest
Guests

Hi,

The function return a string.

This is the code:



public ActionResult Elenco_Fondi()

{

StringBuilder sb = new StringBuilder();

sb.Append(

“<select><option value='FE'>FedEx</option><option value='TN'>TNT</option><option value='IN'>Intime</option></select>”


);

return Content(sb.ToString());

}

I tryed inline and form edit but  didn't work

Thanks

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

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

Hello,

Maybe you should load the appropriate code in script tag for the datapicker. Do you have loaded
jquery-ui-1.7.2.custom.min.js

bouded with datepicker?

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/09/2009
09:56
Avatar
mirko
Guest
Guests

Hi,

The datepicker is in the jquery-ui-1.7.2.custom.min.js. I think I have the same problem of RobGMille and glemarie

Mirko

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

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

Hello,

To be a sure if the jquery-ui-1.7.2.custom.min.js is loaded. Check in FireBug.

I think that this is the problem. If this is not the case, please sena a link to the problem.

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.

09/09/2009
09:53
Avatar
mirko
Guest
Guests

Hi,

I downloaded version 3.5.3 and now the function in editoption for 'select' works.

I'm using form edit and ui-lightness theme.

The select is created but in show mode the value passed is not displayed.

How can I set the select value ??

The datepicker now works but it's displayed in backgroud and when I click it disappears.

How can I put the datepicker in foreground ??

Thanks

Mirko

10/09/2009
04:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

"The select is created but in show mode the value passed is not displayed." - what you mean with this?

How do you pass the value?

Check you z-index in order to diplay the datepicker.

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.

10/09/2009
05:37
Avatar
mirko
Guest
Guests

Hi,

 the column ' Fondo ' displays "undefined".

 For the datepicker I set the z-index to 1000 and inline edit works but not in form edit.

when i set jqModal = true it doesn't work; it seems it's linked to the table and not to the form. when I set jmodal = false it works but the datepicker is moved to the background and hidden by the form 

for the select these are the dates ('/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Autorizzazioni/'):

{"total":1,"page":1,"records":2,"rows":
[
{"i":1,"cell":["VG","7/24/2009","9/18/2009","150"]},
{”i”:2,”cell”:["YF","9/10/2009","10/22/2009","120"]}
]
}

and the init ('/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Fondi/') :

<select><option value=''>Seleziona un fondo</option><option value='YF'>AMERICA</option> …<option value='VG'>EURO</option> …</select>

and this is my code :

$(”#list”).jqGrid(
{
    url: '/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Autorizzazioni/',
    datatype: 'json',
    mytype: 'GET',
    height: 255,
    autowidth: true,
    colNames: ['Fondo', 'Dal', 'Al', 'Percentuale'],
    colModel: [
        {
            name: 'Fondo', index: 'Fondo', width: 200, editable: true, sortable: false, edittype: 'select', formatter: 'select',
            editoptions:
            {
                rows:'1', cols:'2', dataUrl: '/Autorizzazioni_Supero_Limiti_CDA.aspx/Elenco_Fondi/'
            },
            editrules:{required:true}
        },
        {
            name: 'Dal', index: 'Data_Di_Autorizzazione', label: 'Dal', width: 90, align: 'center', sortable: false, editable: true,
            editoptions:
            {
                rows:'2', cols:'2', size: 10, maxlenght: 10,
                dataInit: function(el)
                {
                    $(el).datepicker(
                    {
                        beforeShowDay: $.datepicker.noWeekends, dateFormat: 'mm/dd/yy', showOn:'focus'
                    }).css({ 'z-index' : '1000' });
                },
            },
            editrules: { required: true }
        },
  …..

 ],
pager: $('#pager'), rowNum: 10, rowList: [10, 20, 30], multiselect: false, viewrecords: true, imgpath: '/scripts/themes/ui-lightness/images',
caption: 'Elenco Autorizzazioni', viewsortcols: true, altRows: true
})
.navGrid( pager,{ edit: true, add: true, del: true, refresh: false, search: false },
                {
                    reloadAfterSubmit: true, jqModal: false, closeOnEscape: true, closeAfterEdit: true, top: 260, width: 360,
                    url: '/Autorizzazioni_Supero_Limiti_CDA.aspx/Modifica_Autorizzazione/',
                },

...

Thanks

Mirko

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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