radCube Resizing

10 posts, 1 answers
  1. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 17 Jul 2008 Link to this post

    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

  2. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 17 Jul 2008 Link to this post

    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

  3. DevCraft banner
  4. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 21 Jul 2008 Link to this post

    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
  5. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 21 Jul 2008 Link to this post

    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
  6. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 21 Jul 2008 Link to this post

    Thanks!
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Jul 2008 Link to this post

    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
  8. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 22 Jul 2008 Link to this post

    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
  9. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Jul 2008 Link to this post

    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
  10. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 22 Jul 2008 Link to this post

    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
  11. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 24 Jul 2008 Link to this post

    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
Back to Top
DevCraft banner