Hi
Just upgrading our prototype product from RadControls Q1 2007 to RadControls Q2 2009, which in itself has been a bit of a leap ... but the majority of it has worked fine. There is one control that I'm currently upgrading which uses a bit more client side script then every other section of the associated web projects.
The problem I have is that on the original client side object model, you could query a row's `ItemType` member, when referring to a row object from the rows collection of a table view:
During migration process, I have revised the code and now initialise my rows variable in the above example with the following:
But for the life of me, I can't find anything equivalent of a row/GridItem `ItemType` in the Q2 2009 client side object model, and the client-side API reference is a little thin- I've found a lot of control functions relating to editing items, e.g:
But these all change the state of the items when all I want to know is what state the item is in. Is there a collection of GridItems that are dangling off the edge of the object model somewhere, or a simple property I'm missing or a function to evaluate? Please help!
Thanks
Tom
Just upgrading our prototype product from RadControls Q1 2007 to RadControls Q2 2009, which in itself has been a bit of a leap ... but the majority of it has worked fine. There is one control that I'm currently upgrading which uses a bit more client side script then every other section of the associated web projects.
The problem I have is that on the original client side object model, you could query a row's `ItemType` member, when referring to a row object from the rows collection of a table view:
| for (var i = 0; i < rows.length; i++) { |
| if (rows[i].ItemType == "EditItem") { editedRow = rows[i]; break; } |
| } |
During migration process, I have revised the code and now initialise my rows variable in the above example with the following:
| var view = grid.get_masterTableView(); |
| var rows = view.get_dataItems(); |
But for the life of me, I can't find anything equivalent of a row/GridItem `ItemType` in the Q2 2009 client side object model, and the client-side API reference is a little thin- I've found a lot of control functions relating to editing items, e.g:
| masterTable.editItem(masterTable.get_dataItems()[0].get_element()); |
| masterTable.editSelectedItems(); |
| masterTable.updateEditedItems(); |
| masterTable.editAllItems(); |
But these all change the state of the items when all I want to know is what state the item is in. Is there a collection of GridItems that are dangling off the edge of the object model somewhere, or a simple property I'm missing or a function to evaluate? Please help!
Thanks
Tom