Alpha Software is focused on enabling developers to create robust, data-driven business applications that run on any PC, Tablet or Smartphone in the fastest, most efficient and cost-effective manner possible.

Share this blog:

Showing posts with label Checkbox column. Show all posts
Showing posts with label Checkbox column. Show all posts

Wednesday, November 17, 2010

How to total values in a column using JavaScript

If your end user is dealing with a lot of numbers in their application, whether it's prices or quantities, they might benefit from having a running total of the values they select. For instance, when your end user selects a row using a checkbox, the value in that row is added to the running total in a free-form edit region.

Check the whole column, just a few, or uncheck a row. Or whatever you like. The numbers will constantly update to reflect the correct value. To get these number calculating, you need to create a client-side JavaScript event. Watch the video to learn how to create one that will fire every time the end user selects a row.

Thursday, October 14, 2010

Alpha Five Version 10.5 feature peek #9: Pumping up the power of the checkbox

Pity the meager checkbox. People click it. It gets a check. The row is selected. Or it selects an option. Well we decided that the checkbox is deserving of a lot more muscle. So we're pumping it up. And that's exactly what we've done.

Now when you check a row, it's easy to make the text change color and enable buttons. There is also a new event in System Events called onGridRowCheck. It fires whenever the a box is checked or unchecked leaving a message at the top of the Grid.

In addition, if you check a bunch of rows, you can easily execute a filter on the server that selects only the rows that have been checked. Before you had to write a lot of code to accomplish this. But not anymore. The Grid has a new method called filterCheckedRows that does all the labor for you.

Watch part one of the video to see how to enable of all these new functions. When you're done, watch parts two and three to see more new functions, including how to use checkbox columns in your custom Ajax callbacks.

Part one

Part two

Part three

Related Posts Plugin for WordPress, Blogger...