This is a migrated thread and some comments may be shown as answers.

radCube Resizing

9 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave Navarro
Top achievements
Rank 2
Dave Navarro asked on 17 Jul 2008, 08:15 PM

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

Sort by
0
Dave Navarro
Top achievements
Rank 2
answered on 17 Jul 2008, 08:59 PM
Hello,

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

0
Dave Navarro
Top achievements
Rank 2
answered on 21 Jul 2008, 05:05 PM
Hello,

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
0
Accepted
Valentin.Stoychev
Telerik team
answered on 21 Jul 2008, 06:39 PM
Hello David,

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
0
Dave Navarro
Top achievements
Rank 2
answered on 21 Jul 2008, 07:21 PM
Thanks!
0
Valentin.Stoychev
Telerik team
answered on 22 Jul 2008, 06:22 AM
Hello David,

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
0
Dave Navarro
Top achievements
Rank 2
answered on 22 Jul 2008, 07:28 AM
Hello,

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
0
Valentin.Stoychev
Telerik team
answered on 22 Jul 2008, 09:14 AM
Hello David,

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
0
Dave Navarro
Top achievements
Rank 2
answered on 22 Jul 2008, 03:58 PM
Thanks for reply.

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
0
Dave Navarro
Top achievements
Rank 2
answered on 24 Jul 2008, 10:33 PM
Hello,

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
Tags
General Discussions
Asked by
Dave Navarro
Top achievements
Rank 2
Answers by
Dave Navarro
Top achievements
Rank 2
Valentin.Stoychev
Telerik team
Share this question
or