Datagrid template not opening
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Datagrid template not opening
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?
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
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.
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.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
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? 

-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
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?
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
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.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder