Page 2 of 3

Change width of grid cell via javascript

Posted: Tue Feb 24, 2015 8:54 pm
by Aeneas McBurney

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.


Change width of grid cell via javascript

Posted: Tue Feb 24, 2015 9:30 pm
by Evgene Karachevtsev

Aeneas,

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


Change width of grid cell via javascript

Posted: Tue Feb 24, 2015 9:40 pm
by Aeneas McBurney

Change width of grid cell via javascript

Posted: Thu Feb 26, 2015 2:26 am
by Yurii Orishchuk

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.


Change width of grid cell via javascript

Posted: Thu Feb 26, 2015 2:43 am
by Aeneas McBurney

This still doesn't work??

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


Change width of grid cell via javascript

Posted: Fri Feb 27, 2015 8:31 pm
by Evgene Karachevtsev

Hello Aeneas,

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


Change width of grid cell via javascript

Posted: Fri Feb 27, 2015 8:34 pm
by Aeneas McBurney

There are no errors its just not changing width.

Thanks,
Aeneas


Change width of grid cell via javascript

Posted: Mon Mar 02, 2015 10:36 am
by Evgene Karachevtsev

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?


Change width of grid cell via javascript

Posted: Mon Mar 02, 2015 7:09 pm
by Aeneas McBurney

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


Change width of grid cell via javascript

Posted: Tue Mar 03, 2015 12:30 pm
by Alena Prykhodko

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...