Closed GoogleCodeExporter closed 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
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:
[deleted comment]
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
Can you give me example for this?
Original comment by ezeerese...@gmail.com
on 26 Jul 2011 at 4:04
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
Original comment by ctrlal...@gmail.com
on 27 Jul 2011 at 6:28
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
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
I am not satisfied with prado support Thanks
Original comment by absolute...@gmail.com
on 24 Oct 2011 at 5:57
So, what is your suggestion to satisfy you ?
Original comment by lon...@gmail.com
on 24 Oct 2011 at 9:35
Original issue reported on code.google.com by
ezeerese...@gmail.com
on 23 Jul 2011 at 12:24