Shared Data Grid header refresh problem
Posted: Wed Feb 15, 2012 1:31 am
Hi:
I'm fairly new to LiveCode programming. I just started a project that just calls out for a Data Grid, and I have a big problem.
I'm using the Data Grid as a shared background item, and it will be shared on *all* pages of the stack.
The data is shared, but it doesn't show up on the other cards (other than the first), unless I specifically refresh it. The following handler in the stack correctly refreshes the data.
on preOpenCard
dispatch "refreshList" to group "Ships"
pass preOpenCard
end preOpenCard
However, the column headers are not refreshed, and only one card has the headers with text in them (the other column headers are visible but without text). I cannot get the headers to stay visible, even if I go into the Data Grid properties and hit "Refresh Data Grid".
I wish I knew what the code on that button was, because it refreshes both the headers and the data.
I'm starting to tear out my hair over this, so if anybody can help me I'd appreciate it.
I'm fairly new to LiveCode programming. I just started a project that just calls out for a Data Grid, and I have a big problem.
I'm using the Data Grid as a shared background item, and it will be shared on *all* pages of the stack.
The data is shared, but it doesn't show up on the other cards (other than the first), unless I specifically refresh it. The following handler in the stack correctly refreshes the data.
on preOpenCard
dispatch "refreshList" to group "Ships"
pass preOpenCard
end preOpenCard
However, the column headers are not refreshed, and only one card has the headers with text in them (the other column headers are visible but without text). I cannot get the headers to stay visible, even if I go into the Data Grid properties and hit "Refresh Data Grid".
I wish I knew what the code on that button was, because it refreshes both the headers and the data.
I'm starting to tear out my hair over this, so if anybody can help me I'd appreciate it.