Hello,
I'm trying to resize a radCube but I'm having trouble with the cube showing the current selected side.
I've got small area that the cube fits in (200 x 200) and its ok until the cube starts to rotate. When the cube rotates it actually requires more space in order to render the entire object with cutting off the corners.
So, I set the original size of the cube object to be (100 x 100) until a side is selected then I resize it to be 200 x 200. My issue is that when I resize the object it reloads and shows the wrong side or face. How can I set the proper side to show after resizing?
Thanks!
Dave
9 Answers, 1 is accepted
Here's the code I'm using to resize the cube:
RadCube1_SideSelected <this is server side event>
Dim instance As RadCube
Dim value As Integer
instance = sender
value = instance.SelectedSideIndex
RadCube1.XWidth = 200
RadCube1.YWidth = 200
RadCube1.ZWidth = 200
RadCube1.SelectedSideIndex = value
RadCube1.UpdateLayout()
I hope this give you a clue.
Thanks,
Dave
I have a quick question; does it matter if use server side code instead of client side code to create the desired affect?
Maybe that's what's causing the cube to reset to the default side when clicked?
Please let me know and thanks!
Dave
I reproduced the problem - it seems to be a bug in the RadCube - once you set the X/Y/ZWidth properties the SelectedIndex is no more correct. We willl fix this for the beta that is coming in the next few days.
Thanks for reporting this!
All the best,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please find the attached project with a workaround of the problem.
Let us know if you need more help on this.
Kind regards,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for the information. I have a quick question... are you using a version of radCube that we don't have? Because your server side code is using the "RadCube_SelectedIndexChanged" but my version doesn't have it.
If that's the case then I'll have to wait?
Let me know and thanks,
Dave
yes - the sample project contiants a new version of the controls - feel free to use them. We will make it official tommorow with some slight changes.
Kind regards,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Since the next version of controls are scheduled to be released tomorrow I'll just wait and try your solution with the actual release version. I've got plenty of work to keep my busy till then.
Thanks again!
Dave
Well, I've completed upgrading my dev pc and successfully implemented your suggestion - and it works as advertised.
With a minor adjustment I was able to get it working just as I'd imagined it working.
Thanks for your help!
Dave