471,071 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Clearing a datagrid clientside

I have a server side datagrid control. I'd like to clear the grid before the
post occurs using javascript. Anybody know how to do this? It would be a
similar effect to binding to a null dataset in the codebehind, sorta.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Nov 18 '05 #1
5 1535
huh? If you need to clear it then do it in the code-behind first thing.
the datagrid results mostly in clientside HTML, not a "grid" that is
"clear-able".

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Alvin Bruney" <vapor at steaming post office> wrote in message
news:Om*************@tk2msftngp13.phx.gbl...
I have a server side datagrid control. I'd like to clear the grid before the post occurs using javascript. Anybody know how to do this? It would be a
similar effect to binding to a null dataset in the codebehind, sorta.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b

Nov 18 '05 #2
That's what i am trying to avoid. If the grid has 2000 rows rendered, any
postback on the page attempts to roundtrip the 2000 rows. If I can drop all
that data clientside BEFORE the postback, the speed of the postback will be
considerably improved.

I've used this performance trick successfully in other controls. I'm looking
to extend it to the datagrid. I'm sure it can be done. I don't know how yet.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
huh? If you need to clear it then do it in the code-behind first thing.
the datagrid results mostly in clientside HTML, not a "grid" that is
"clear-able".

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Alvin Bruney" <vapor at steaming post office> wrote in message
news:Om*************@tk2msftngp13.phx.gbl...
I have a server side datagrid control. I'd like to clear the grid before

the
post occurs using javascript. Anybody know how to do this? It would be a
similar effect to binding to a null dataset in the codebehind, sorta.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b


Nov 18 '05 #3
Consider dropping support for viewstate on the grid?

On Mon, 12 Jan 2004 13:47:50 -0600, "Alvin Bruney" <vapor at steaming
post office> wrote:
That's what i am trying to avoid. If the grid has 2000 rows rendered, any
postback on the page attempts to roundtrip the 2000 rows. If I can drop all
that data clientside BEFORE the postback, the speed of the postback will be
considerably improved.

I've used this performance trick successfully in other controls. I'm looking
to extend it to the datagrid. I'm sure it can be done. I don't know how yet.


Nov 18 '05 #4
I've turned off viewstate like what one poster suggested. This is working
quite well. I had to re-architect a bit to get this to work right because
there was a lot of customization in the datagrid, but the end result is that
it has resulted in a quick a performance boost.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Alvin Bruney" <vapor at steaming post office> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
That's what i am trying to avoid. If the grid has 2000 rows rendered, any
postback on the page attempts to roundtrip the 2000 rows. If I can drop all that data clientside BEFORE the postback, the speed of the postback will be considerably improved.

I've used this performance trick successfully in other controls. I'm looking to extend it to the datagrid. I'm sure it can be done. I don't know how yet.
--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
huh? If you need to clear it then do it in the code-behind first thing.
the datagrid results mostly in clientside HTML, not a "grid" that is
"clear-able".

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Alvin Bruney" <vapor at steaming post office> wrote in message
news:Om*************@tk2msftngp13.phx.gbl...
I have a server side datagrid control. I'd like to clear the grid before
the
post occurs using javascript. Anybody know how to do this? It would be

a similar effect to binding to a null dataset in the codebehind, sorta.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b



Nov 18 '05 #5
I've turned off viewstate like u suggested. This is working quite well. I
had to re-architect a bit to get this to work right because there was a lot
of customization in the datagrid, but the end result is that it has resulted
in a quick a performance boost. Thanks

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Dan Brussee" <db******@nc.rr.com> wrote in message
news:9d********************************@4ax.com...
Consider dropping support for viewstate on the grid?

On Mon, 12 Jan 2004 13:47:50 -0600, "Alvin Bruney" <vapor at steaming
post office> wrote:
That's what i am trying to avoid. If the grid has 2000 rows rendered, any
postback on the page attempts to roundtrip the 2000 rows. If I can drop allthat data clientside BEFORE the postback, the speed of the postback will beconsiderably improved.

I've used this performance trick successfully in other controls. I'm lookingto extend it to the datagrid. I'm sure it can be done. I don't know how
yet.

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Gary | last post: by
3 posts views Thread by Brad | last post: by
3 posts views Thread by Jay | last post: by
2 posts views Thread by Daniel Walzenbach | last post: by
2 posts views Thread by Niclas Lindblom | last post: by
7 posts views Thread by Joel Reinford | last post: by
2 posts views Thread by DaveP | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.