PDA

View Full Version : Pass Parameter to View to hide Components



chichasonu
26 Jan 2016, 10:30 AM
Hi,

In the Below Fiddle ,Add Stuff to Center-->Add Form->View
On clicking on the view Button, i need to display the same from in the center region when i click on ass button,but all the fields should be only readable,and the docked items should be removed.
Please help me in achieving this
Thanks in advance.

https://fiddle.sencha.com/#fiddle/13f3

Gary Schlosberg
26 Jan 2016, 1:42 PM
I'm having a bit of trouble understanding. You want the combos in the form to be disabled and the docked Save button remove?

jdkhamba
26 Jan 2016, 6:32 PM
Looks like you are calling the same function on "View" as you did on "Add" . All you need to do is write a separate function for view that would just collapse the west region and hide the "Save" button.

chichasonu
28 Jan 2016, 10:03 AM
Hi
Thanks for the Reply.
in the same fiddle , i need to pass the data from grid to other View.how can i do it
Can you please help me with the same.
Thanks in advance

jdkhamba
28 Jan 2016, 3:07 PM
What have you tried so far?

chichasonu
28 Jan 2016, 9:28 PM
Hi
I am new to this MVC Architecture.I am not sure how to do this.
Can you please help me with some sample Snippet Code.
Thanks in Advance

jdkhamba
29 Jan 2016, 4:54 AM
Take a look at this:

https://fiddle.sencha.com/#fiddle/14nk