Page 1 of 1
Datagrid template not opening
Posted: Thu Sep 24, 2009 6:49 pm
by Paul D
When I click Row Template... on some of my datagrids, the stack doesnt open. I have 20 something cards in my Data Grid Templates stack. How do I edit that datagrids template? Is there a way to find which card id goes to which datagrid? or get to that template if it doesnt open?
Posted: Thu Sep 24, 2009 8:31 pm
by trevordevore
You can check the dgProps["row template"] property of a data grid. It will return a control reference to the control being used as the row template.
If the data grid template stack isn't opening I would first look in the preopenstack or openstack handlers of your mainstack script. If you have logic in there that assumes it is the mainstack opening errors can be generated that keep the data grid template stack from opening.
Posted: Thu Sep 24, 2009 9:10 pm
by Paul D
im not getting any errors. it just doesnt open. and its only happening to some datagrids. other datagrids on the same card open just fine. when i try to delete the datagrid that wont open row templates it wont delete them if i click yes to deleting the record template answer box, if i click no it deletes. what did i break?

Posted: Fri Sep 25, 2009 5:26 am
by trevordevore
Just because an error isn't displayed doesn't mean an error isn't occurring. The Revolution IDE might not be displaying the error to you. I'm not sure what would keep the Data Grid template from being deleted (I don't work with the IDE code). What does the dgProps["row template"] proeprty return for the Data Grid you can't delete? Does the control that the "row template" point to exist?
Posted: Fri Sep 25, 2009 12:49 pm
by Paul D
dgProps returns group id 1016 of card id 1015 of stack "Data Grid Templates 1249935398629"
card id 1015 does not exist. hmm... that's unfortunate. ill just delete the datagrid and drag a new one. not really sure what happened though.
Posted: Fri Sep 25, 2009 2:39 pm
by trevordevore
Hmm, you must have deleted it somehow. By any chance did you duplicate another Data Grid to create this one? I think it you duplicate a Data Grid it shares the same row template with the original. If you deleted the original Data Grid and the row template associated with it then that might explain what happened.