Web.UI ASP.NET Grid: Synchronize Checkbox States with Row Selection

Posted by: ComponentArt WebLogs, on 16 Jun 2009 | View original | Bookmarked: 0 time(s)

One can use the Grid's itemBeforeCheckChange and itemBeforeSelect client events to synchronize the state of checkboxes and row selection. Some extra logic is required since checkbox clicks also trigger row selection. I use the load client event is used to initially set all checked rows as selected. ASPX: <ComponentArt:Grid id="Grid1" ...> <ClientEvents> <itemBeforeCheckChange eventhandler="Grid1_onItemBeforeCheckChange" /> <itemBeforeSelect eventhandler="Grid1_onItemBeforeSelect"...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1556 | Hits: 48

Similar Posts

  • Take Caution with WinForms DataGridView RowPrePaint more
  • Silverlight Release History : Q2 2009 (version 2009.2.701) more
  • WPF Release History : Q1 2009 SP2 (version 2009.1.526) more
  • Silverlight Release History : Q1 2009 SP2 (version 2009.1.526) more
  • Silverlight Release History : Q1 2009 SP1 (version 2009.1.413) more
  • WPF Release History : Q1 2009 SP1 (version 2009.1.413) more
  • Convert Web.UI Grid into a data entry spreadsheet more
  • ASP.NET Data Control Events more
  • Intersoft WebUI Studio 2008 R2 SP1 is Now Available more
  • WebUI Studio.NET 2008 R2 is now official more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD