Groups | Blog | Home
all groups > asp.net > april 2007 >

asp.net : Ajax : dynamic control creation at client side


Peter Bromberg [C# MVP]
4/11/2007 12:56:03 PM
Don't think so. All the AJAX controls (even though they are designed to use
Remote Scripting (xmlhttp and callbacks) are still ASP.NET Server controls.
What's the real goal ?
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




[quoted text, click to view]
Ben Rush
4/11/2007 9:23:35 PM
I'm not aware of anything off the top of my head that would allow you to do
this within the collapsable panel itself; though it is very possible to
figure out the format for the panel and somehow manipulate it with script, I
wouldn't recomend it and it wouldn't withstand the test of time.

Another option you could employ is to make your asynchronous web service
call and trigger a partial postback to the server to update the panel and
its contents; this would have a similar effect (might not be as fast, but
the page still wouldn't require a full reload).

If you need help figuring out how to do anything special, give me the
specific details and I can help you knit the code together.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog


[quoted text, click to view]

Kursat
4/11/2007 10:50:28 PM
Hi,

I want to add new collapsable panel items using java script at client side.
Is this possible to create Ajax components like collapsable panel without
server round trip?

Thanks in advance.

Kursat
4/11/2007 11:56:05 PM
Thank you for your interest and the goal is that :
I have some business logic components implemented as a web service. I call
web methods asynchronously via client side Javascript and I want to display
returned results on a collapsable panel as a categorized list. So I focus to
create collapsable panel items dynamically at client side.

Do you have any suggestion?

"Peter Bromberg [C# MVP]" <pbromberg@yahoo.yabbadabbadoo.com> wrote in
message news:8115385C-17D7-43E6-83DD-D0598D91A58A@microsoft.com...
[quoted text, click to view]

Ben Rush
4/12/2007 9:46:10 AM
Ah, well, my guess is the best and quickest (and possibly cheapest involving
time) would be to just buy their component. I don't think it can be done in
ASP.net AJAX stock.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog


[quoted text, click to view]

Kursat
4/12/2007 12:28:12 PM
Thank you for your interest, Ben.

You may know ComponentArt client side components.(Here is their treeview
demo :
http://atlas.componentart.com/Client-side_APIs/TreeView_Designer/Default.aspx)

One can dynamically manipulate these components at client side. No partial
or complete postback required.

I just want to know how to build a component like ComponentArt's treview?


[quoted text, click to view]

AddThis Social Bookmark Button