Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

RadioButtonList inside ListView causing flicker (full postback)

$
0
0

Dear all:

Hope you can help me out with a minor, but very annoying problem I've run into. I'm using a fairly standard ListView control, which includes among other things, a RadioButtonList in the InsertItemTemplate to switch between two options (this is not a databound RBL, just a standard, manually-typed list to choose between two options. The problem is that when I click between the two, a full postback occurs, causing the page to reload/flicker.

To check how common this is, I created a bare-bones RBL in the LayoutTemplate as well. The same thing occurs. Ditto if I put it in the ItemTemplate. Similarly, two RadioButton controls cause a flickering full postback. A few things to note:

  • A CheckBoxList, in exactly the same location, works perfectly (partial postback, no flicker)
  • A RadioButtonList outside the ListView has no problems, either
  • The entire section of the page, ListView and some surrounding text, is enclosed in a single UpdatePanel, with UpdateMode="Conditional" set, and no manual triggers (since the ListView is within it and not updating anything else elsewhere on the page just yet).
  • The flicker occurs if I enclose the LayoutTemplate/InsertItemTemplate in a separate UpdatePanel.
  • The same problem occurs if I switch everything on the page to be UpdateMode="Always"
  • I tried putting the entire page in a single huge UpdatePanel, just to check. Again, flicker, but ONLY with RBL controls inside the ListView
  • A single RadioButton, with AutoPostback="True" DOESN'T cause flicker when selected, but if the GroupName property is set, it does. 

Any help would be greatly appreciated, please. I'm really stumped!


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>