CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 2/9/2004 10:50:24 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
joe.mckay
Asp.Net User
Postback only on checkbox and not on +-2/9/2004 10:50:24 AM

0/0

Hi,

I have a tree built from a hierarchical database table, and each node in my tree has a corresponding checkbox. In Mozilla, the tree works fine but in IE a very annoying "blinking" effect is caused by the page reloading on postback. To get around this, I want the tree only to postback when I check a checkbox (because I do some server side code then to automatically check the parent nodes of the selected item all the way up to the top of the tree) and not to postback on expand / collapse.

Anyone know how?

Thanks in advance.
- - -

joe -at- streamon -dot- net
Kabindas
Asp.Net User
Re: Postback only on checkbox and not on +-2/10/2004 1:03:24 AM

0/0

Open the treeview.htc file and change the Javascript.
On the function "function nodePlusMinusClick()" comment the lines
"if (doNodePlusMinusClick(el) == true)
fireQueuedEvents();"
joe.mckay
Asp.Net User
Re: Postback only on checkbox and not on +-2/10/2004 8:14:54 AM

0/0

Thanks Kabindas.

Just one small note for other readers who might find this useful: commenting both lines will mean you can't expand or collapse the nodes, so I simply commented out the fireQueuedEvents call ( not forgetting to add { } to the if statement, of course ).
- - -

joe -at- streamon -dot- net
Kabindas
Asp.Net User
Re: Postback only on checkbox and not on +-2/10/2004 9:43:45 AM

0/0

yep, sorry, copy paste bug ;)
Slazy
Asp.Net User
Re: Postback only on checkbox and not on +-2/13/2004 3:24:38 PM

0/0

Thanks for this tip.Unfortunatly,for some reason is not working for me.

I have..............

function nodePlusMinusClick()
{
if (g_bInteractive == false)
return;

var el = this.parentElement.treenode;
if (doNodePlusMinusClick(el) == true)
{
//fireQueuedEvents();
return;
}
}

I am I wrong?
Slazy
Asp.Net User
Re: Postback only on checkbox and not on +-2/13/2004 4:08:15 PM

0/0

I got it thank you..

TIP

If you do not want to post back when a user clicks the node text

comment the 'fireQueuedEvents();' as I shown below


function nodeClick()
{
if (g_bInteractive == false)
return;

var el = this.parentElement.treenode;
if (doNodeClick(el) == true)
{
if (element.getAttribute("selectExpands") == true)
doNodePlusMinusClick(el);
//fireQueuedEvents();
}
}
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Beginning ASP.NET 1.1 with VB.NET 2003 Authors: Chris Ullman, John Kauffman, Chris Hart, David Sussman, Pages: 888, Published: 2003
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Learning C# 2005: Get Started with C# 2.0 and .NET Programming Authors: Jesse Liberty, Brian MacDonald, Pages: 528, Published: 2006
Programming Microsoft ASP.NET Authors: Dino Esposito, Pages: 1165, Published: 2003
Beginning ASP.NET 1.1 with Visual C# .NET 2003 Authors: Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry, Pages: 888, Published: 2004
ASP.NET for Web Designers Authors: Peter Ladka, Pages: 648, Published: 2002
ASP.NET and VB.NET Web Programming Authors: Matt J. Crouch, Pages: 768, Published: 2002
Pro ASP.NET Web Forms Techniques Authors: Alex Homer, Pages: 580, Published: 2003
ASP.NET AJAX Programming Tricks Authors: Matthew David Ellis, Matthew Ellis, Pages: 388, Published: 2007

Web:
Only returning one checkbox on postback This is a discussion on "Only returning one checkbox on postback" within the ASP . ... You may not post new threads. You may not post replies ...
Custom checkbox control and postback - .NET ASP All worked correctly, only custom checkbox control postback value change only if I ... So, I can only set status to checked, not the other. ...
Problem with postback and checkboxes not returned in Request.Form ... Problem with postback and checkboxes not returned in Request. ... When I submit this for (postback to server), only the checkboxes that are ...
FarPoint Forums - Formula working only on 1st postback Formula working only on 1st postback. Last post 08-06-2007, 2:02 PM by scotts .... Maybe if you can tell me why the checkbox is not updating ...
GridViewGuy You must create the GridView only if IsPostBack!=true. If you don't do this, .... Subject: grid view checkbox postback not happening on subsequent page ...
Checkbox value being lost on postback restore their value correctly, but the checkbox does not. ... that do postback off a button click and this is the only one with a checkbox. ...
The Technical Blog of Stefan Keir Gordon: PostBack on TreeView ... Since you added a postback event to the checkbox (forcing a postback of the full page), I would think you'd only need to override the CheckedChanged event ...
Selected checkboxes in Gridview rows not reflecting on postback ... Hi, I have a page with gridview where each row in gridview has the following columns: 1) Employee Description 2) Employee Number 3) Checkbox to multi select ...
ASP.NET CheckBox inside Datagrid returns Checked=false in Postback ... Oct 11, 2006 ... NET CheckBox inside Datagrid returns Checked=false in Postback, if the column is not visible. Left by Cedd Burge at 5/30/2007 4:02 AM ...
how to only postback the single DropDownList control within the ... So my question is how can I only postback one single DropDownList server control ... this means the checkbox can not maintain it's state. ...




Search This Site:










vwd integration with cms?

ot: print preview in asp.net

vs2008 and vs2005 on the same project

scroll to node in treeview asp.net 2.0

how do i upload skin with codebehind

editing text for registration screen - dnn 2.1.2

asp.net 2005

ul on one line

can i use enterprise library - january 2006 in microsoft visual web developer 2005 express edition?

custom authentication/authorization for webparts page

creating a .ascx file that can be used in a skin

remove project path from relative path?

is there a change in dnn 3.1 on how the visibility icons are displayed.

is anyone else missing the "survey" module? v3.0.13 (newest version)

xmldatasource remote (xml) datafile connection (via proxy server) problem

rsa user-level

errors again.

another skin/site for designers to review

dnn 2.2 release date?

books section

treeview populateondemand working in firefox and opera, but not in ie 7.0?

content screen blanks out

edit module control is different

how do i create hyperlinks within same page?

vs creating double folder

reducing required fields on registration process

install dnn 4.0 with sql express 2005

db content based on user roles

where is dnn4 module codeb?

error "could not load file or assembly" after computer crash

 
All Times Are GMT