Page 1 of 1
					
				Datagrid Bug
				Posted: Wed Aug 22, 2012 1:24 pm
				by alasdair23
				I've found what I can only describe as a "bug" with Datagrids on Mac OS X.  I am a reasonably competent RunRev coder, so I hope that this is just a case of me not reading a particular bit of documentation... however:
In the enclosed stack there are two data grids - one shows 7 lines [of 30] and the other shows 23 lines [of 30].  Populate the grids with the same content.
Then when one clicks on an item in the grid, it puts it's long name in the messagebox.
However, if one scrolls [in ether grid] down to reveal the lower items and clicks on these, the WRONG name is returned.
Looks like this has something to do with scrolling.  I can't imaging this is a feature.
HELP!
			 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 1:37 pm
				by Klaus
				Hi Alasdair,
this is the way it works!  
 
 
Check "cached controls" for the grids and all is fine!
When this is UNCHECKED, then the DG library will only copy that much template groups to the datagrid that are VISIBLE in the grid!
If checked then ALL necessary groups are copied to the datagrid at once.
In any way do NOT rely on the names of the groups and their containing objects if possible 
 
 
Best
Klaus
 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 1:38 pm
				by Klaus
				And since this is not OS X specific, I will move this thread to the "Talking LiveCode" forum. 

 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 2:21 pm
				by dunbarx
				Klaus.
Fascinating. But where is this "cached controls" to be found?
Craig
			 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 2:54 pm
				by Klaus
				Hi Craig,
in the inspector "Basic Properties" right under the "lineheight" text field.
Oh, it is named "cache controls" without a D
Best
Klaus
			 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 3:19 pm
				by dunbarx
				Klaus.
Ah. I didn't see it because it is grayed out. What property allows it to be checked?
Thanks,
Craig
			 
			
					
				Re: Datagrid Bug
				Posted: Wed Aug 22, 2012 3:33 pm
				by Klaus
				Hi Craig,
this is only available for "Form" datagrids.
Best
Klaus
			 
			
					
				Re: Datagrid Bug
				Posted: Thu Aug 23, 2012 3:14 pm
				by alasdair23
				Klaus wrote:Hi Alasdair,
this is the way it works!  
 
 
Check "cached controls" for the grids and all is fine!
When this is UNCHECKED, then the DG library will only copy that much template groups to the datagrid that are VISIBLE in the grid!
If checked then ALL necessary groups are copied to the datagrid at once.
In any way do NOT rely on the names of the groups and their containing objects if possible 
 
 
Best
Klaus
 
Klaus, you are a star - thank you so much!