power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

Jquery Selected Value in Prado #352

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I am using jQuery push method to fill data in TActiveDropDownList but I am 
not able to get selected Value for that control. Plz help
2.
3.

What is the expected output? What do you see instead?
Expected : Selected Value 
Result : Not coming with selected value

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ezeerese...@gmail.com on 23 Jul 2011 at 12:24

GoogleCodeExporter commented 8 years ago
Please implement a small example that we can use to understand what you mean 
and test. Then, attach it to the ticket.

Original comment by ctrlal...@gmail.com on 23 Jul 2011 at 3:32

GoogleCodeExporter commented 8 years ago
Hi, Thanks for your reply.

I have created one demo application for more details.

please check attached file.

I am trying to do below process
1) On page load in demo.tpl file loading some JSON formatted data & storing 
that that to local Storage.
2) Then I am calling function fillCombo() for filling storage data to 
dynamically on "lstRoom" dropdownbox.
3) On button Click I am trying to retrieving selected value for drowpdown.

Please reply soon. Thanks for your help

Original comment by ezeerese...@gmail.com on 25 Jul 2011 at 7:17

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The problem is that you populate your dropdown list on the client-side, which 
Prado's server-side components know nothing about. Therefore when you try to 
query the item selected you won't get any meaningful results, because the items 
listed on the client side aren't represented on the server-side.

For this purpose you should create your own TActiveDropDownList descendant and 
override its loadPostData() method to store the raw data value for the control 
for you for later processing, which then could be queried by another method 
also implemented by you (for ex. by one named getSelectedValueRaw() or 
something like that).

Original comment by google...@pcforum.hu on 25 Jul 2011 at 11:37

GoogleCodeExporter commented 8 years ago
Can you give me example for this?

Original comment by ezeerese...@gmail.com on 26 Jul 2011 at 4:04

GoogleCodeExporter commented 8 years ago
No, I'm not doing your homework. I've explained everything you need to know. 
The rest is up to you.

Original comment by google...@pcforum.hu on 27 Jul 2011 at 1:02

GoogleCodeExporter commented 8 years ago

Original comment by ctrlal...@gmail.com on 27 Jul 2011 at 6:28

GoogleCodeExporter commented 8 years ago
override TActiveDropDownList loadPostData() method is not solution for us 
actually dear.
We want to load data on client side only , if we have to to use server side 
binding then it is same like using databind().

DO you have any other alternatives?

Original comment by ezeerese...@gmail.com on 27 Jul 2011 at 10:01

GoogleCodeExporter commented 8 years ago
loadPostData() is not the method where data gets transferred from the 
serverside to the clientside. Instead, it's the place where the actual 
clientside selected value returns to the serverside, so that's the place when 
you can grab it.
Anyway, since what you're asking for is something outside the normal way prado 
controls's been engineered to work, of course it will require some work by your 
side.

Original comment by ctrlal...@gmail.com on 28 Jul 2011 at 7:53

GoogleCodeExporter commented 8 years ago
I am not satisfied with prado support Thanks

Original comment by absolute...@gmail.com on 24 Oct 2011 at 5:57

GoogleCodeExporter commented 8 years ago
So, what is your suggestion to satisfy you ?  

Original comment by lon...@gmail.com on 24 Oct 2011 at 9:35