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
<entity-name>My Own Entity</entity-name>
<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.
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.onRowSelectedChanged = function(value, i)
I used the above code to show the checkbox . Everything works good.