:: Forum >>

CheckBox in Grid shown using XML

I will take a couple of minutes to present my problem. We have a web ui using plain HTML code. My application displays grids using HTML <table> and we display checkbox as the first column in the grid for all our grid. This checkbox allows the users to select the row and then click on a delete button or an edit button which takes the user to another screen.

We want to change our HTML grids to use ActiveWidgets. I have successfully displayed the grid using AW.UI.Grid by using a XML. I am able to show a checkbox as the first column. What i am not able to do is to specify that the id value in the XML(see below) should be the checked value for the checkbox. Meaning when the user clicks on the checkbox and submits the page the ID should go to the server.

The XML that i am using is
<queued-date>01/15/2009 14:55:00</queued-date>
<start-date>01/15/2009 14:55:00</start-date>
<job-date>01/15/2009 14:55:00</job-date>
<entity-name>My Own Entity</entity-name>
<category>Category One</category>
<name>Test Entry in Grid</name>
Wednesday, January 21, 2009
You should define 'id' as another column in the datasource, make it hidden, and then retrieve its value and send to the server in your submit code.

Alex (ActiveWidgets)
Thursday, January 22, 2009
Thnx Alex. I could use the hide column information that you provided. I was also able to show a checkbox using information from another of your post.
obj.setSelectorTemplate(new AW.Templates.CheckedItem);
obj.onRowSelectedChanged = function(value, i)

I used the above code to show the checkbox . Everything works good.

Thnx for your help.
Thursday, January 22, 2009

This topic is archived.

Back to support forum

Forum search