Dec 09, 2010, 9:17 AM
[CLOSED] Reach Command coloumn at run time with javascript
im just move my post to premium support.
my problem as following :
1.I'm using EXT.NET RC,.NET Framework 3.5 SP1,Visual Studio 2010 Proffessional version,windows 7 64 bit.
2.I have a EXT grid and this Grid contained an ImageCommandColoum and this coloumn contained two command (follow,unfolow), at prepare event handler at client side (javascript) i depend on other coloumn value to decide wether display one of command(follow,unfollow) and hide the other per record , where i can depened on commands parameter of the record.
3.I have a listener on the grid and this listener calls a Javascript function this javascript function contains a call to a DirectMethod depends on the command user clicked , inside my javascript function i detect success or failure of the direct method call, in case of success i need to hide the clicked command and show the other, the problem i cant :confused:.
4. i solve it by rebind my Store object at the directMethod code at server side so the prepare function calleded again.
5. The solution was slow take a 5-7 seconds :mad: since my store depends on get its data from a server located other country (Australia).
6. is there a way get to refrences to commands collection of the record inside my javascipt function which call the direct method.\
7.also i will gratefull if you have any other solution to achieve this.
i hope you respond to me ASAP.
my problem as following :
1.I'm using EXT.NET RC,.NET Framework 3.5 SP1,Visual Studio 2010 Proffessional version,windows 7 64 bit.
2.I have a EXT grid and this Grid contained an ImageCommandColoum and this coloumn contained two command (follow,unfolow), at prepare event handler at client side (javascript) i depend on other coloumn value to decide wether display one of command(follow,unfollow) and hide the other per record , where i can depened on commands parameter of the record.
3.I have a listener on the grid and this listener calls a Javascript function this javascript function contains a call to a DirectMethod depends on the command user clicked , inside my javascript function i detect success or failure of the direct method call, in case of success i need to hide the clicked command and show the other, the problem i cant :confused:.
4. i solve it by rebind my Store object at the directMethod code at server side so the prepare function calleded again.
5. The solution was slow take a 5-7 seconds :mad: since my store depends on get its data from a server located other country (Australia).
6. is there a way get to refrences to commands collection of the record inside my javascipt function which call the direct method.\
7.also i will gratefull if you have any other solution to achieve this.
i hope you respond to me ASAP.
Last edited by Daniil; Dec 10, 2010 at 5:40 AM.
Reason: [CLOSED]