Page 1 of 1

Datagrid Issues with Scrollbar :(

Posted: Fri Jul 05, 2013 5:41 pm
by makeshyft
Hi everyone,

I am creating a datagrid, which I have successfully done before ..... and I am having problems with the scrollbar. It isn't activating / updating on FILLINDATA.

I have made a datagrid before.... compared the code of both ....1 works the other doesn't. But the code doesn't seem like its doing anything much different. Filling in text of fields and thats it.

The one that works is actually more complex.

What are the reasons why datagrid scrollbar wouldn't update?

Thanks,

Tom

Re: Datagrid Issues with Scrollbar :(

Posted: Fri Jul 05, 2013 7:07 pm
by Simon
Hi Tom,
This is a good one I think... :)
It might not be the scripting that is a problem but the settings. Before I go on and blab about the differences:

Did you set "auto" for hScrollbar and vScrollbar in the DG Inspector?

Simon

Re: Datagrid Issues with Scrollbar :(

Posted: Fri Jul 05, 2013 7:34 pm
by makeshyft
The one that works is set to true and the one that doesn't .... doesn't show the bar at all if its set to auto.
the script on FILLINDATA is literally 1 line at this point.

Could it be a wait issue? maybe it doesn't have time to update. where would I put the wait command?

I clear it by setting dgdata to empty
and refresh it by assigning an array to dgdata.



Cheers