Pages

How to group radio buttons in gridview

Here I am going to show how to make radio buttons work when they are in gridview column. Radio button's GroupName property does not work because of the way asp.net sets name property of the child controls of a data bound control. I will show how to select exactly one radio button from a gridview column. I will keep it very simple and short.

Draw hierarchical tree in html using organizational chart control

Few years back, I created multilevel marketing web application and one of the obvious requirements was to display customer network that included its sponsor as well as the customers who were sponsored by that customer. In other words, this was nothing but to display hierarchical data in a tree format on a web page.

Load partial data in Gridview using JQuery Ajax

Data controls in asp.net, by default, display all the data that you provide them. However some (in fact many) time, you may want to display only first few records initially and remaining on subsequent user interactions. There are number of ways to achieve this. For example, enabling pagination support on the control (if it supports), implementing server side pagination in your stored procedures or writing custom logic in application code to fetch only required sets of data etc.

Select rows using header checkbox in gridview

Here I am going to show a simple jQuery code that selects all the checkboxes from grid rows when header checkbox is selected. This is pretty common requirement. Also the code toggles header checkbox depending on whether all the rows have been selected.