Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Change width of grid cell via javascript

My app is
http://appery.io/app/view/bea405ad-0a...

Logon test/test

Choose "Alannah Jo" from drop down list and go to invoices The event is left swipe of the previous invoice items. It will show alert of 1 which is what its set to and doesn't change with the above code.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Change width of grid cell via javascript

Aeneas,

Could you please provide print screen with event with your code? I can't find it in Invoicing page

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Change width of grid cell via javascript

Hi Aeneas,

You need to pass "50px" instead of "50".

Try following JS code:

pre

var gridcell2=$(this).find("[name=mobilegridcell_271]");
try{
gridcell2.width("50px");
alert(gridcell2.width());
}
catch(err){
alert(err.message);
}

/pre

Regards.

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Change width of grid cell via javascript

This still doesn't work??

try{
gridcell2.width("50px");
alert(gridcell2.width());}
catch(err){
alert(err.message);
}

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Change width of grid cell via javascript

Hello Aeneas,

Could you please specify does your alert still show '1' or do you have some errors in console?

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Change width of grid cell via javascript

There are no errors its just not changing width.

Thanks,
Aeneas

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Change width of grid cell via javascript

Hello Aeneas,

Sorry for delay. It works for us. Could you please try different values like 100px or 150px to be sure that value doesn't applied?

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Change width of grid cell via javascript

I have tried other values but still the same. Did u change it on my app and get it to work?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Change width of grid cell via javascript

Hello,

1) You have 2 errors in your project JavaScript code, debug it carefully.
2) Action is working for us in your app, but the width should be less.
Here is the result
http://appery.io/app/mobile-frame?src...

Return to “Issues”