Padding and Margin

Thread is closed for posting
21 posts, 0 answers
  1. Serge
    Serge avatar
    3 posts
    Member since:
    Dec 2009

    Posted 01 Dec 2009 Link to this post

    Hi,

    I started using VSB yesterday and so fare it works great.. except for the padding and margin properties.

    Whenever I change one of these values (for example in a grid cell) the VSB doesn't save the values I enter.

    Am i doing someting wrong?
  2. Ralph
    Ralph avatar
    7 posts
    Member since:
    Dec 2007

    Posted 02 Dec 2009 Link to this post

    Yes. I am having this same issue as well. This looks like something that would be very useful, but padding and margins are VERY important to me.

    Thank you,
    Ralph
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 04 Dec 2009 Link to this post

    Hello Ralph, Serge,

    You can't set margins for grid cells, just as you can't set margins for HTML table elements.

    I just tried out the padding and it works - I'm attaching the custom skin that I created. Please make sure that you have the "Data item cell" and "Alternating Data item cell" cells selected when you adjust the paddings.

    Which is the UI element that you have trouble styling?

    Sincerely yours,
    Alex
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Serge
    Serge avatar
    3 posts
    Member since:
    Dec 2009

    Posted 04 Dec 2009 Link to this post

    Alex,

    thanks for answering my question.

    When you say that I should make sure to have the "Data item cell" and "Alternating Data item cell" cells selected in order to adjust the padding...

    ... how can I simultaneously select both in Visual Style Builder?

    Thanks,

    Serge
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 04 Dec 2009 Link to this post

    Hi Serge,

    You should select them one-by-one and apply the padding to each (there is no multi-selection).

    Regards,
    Alex
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Serge
    Serge avatar
    3 posts
    Member since:
    Dec 2009

    Posted 04 Dec 2009 Link to this post

    Alex,

    ok, but the point is that in VSB, if I set a padding values in the "date Cell" and go to set the same in "Alternate Data cell"... when I come back to the "Data Cell" the padding values are back to default.

    What am I doing wrong?

    Serge
  8. Ralph
    Ralph avatar
    7 posts
    Member since:
    Dec 2007

    Posted 04 Dec 2009 Link to this post

    Alex,

    I am having this problem with the menu system, as well.

    1. I click the padding value around the box element that I am trying to edit
    2. delete the old value by backspacing
    3. type in my new value
    4. either tab, to go to the next element, or enter, or just clicking off of the element.

    Then, if I click on another item to edit and come back to the one that I just edited, the old default values for the padding are there. Not mine. I have even clicked Save after each edit, and it still doesn't work.

    I hope this explanation of my process helps to you figure out the issue
  9. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 10 Dec 2009 Link to this post

    Hello Ralph, Serge,

    Thank you for describing the steps that show the problem - I've reproduced it and I'll fix it right away. In the meantime, you can adjust the padding with the up/down arrows - it's what I've been trying all the time and it works.

    Thank you very much for pointing this out.

    Kind regards,
    Alex
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Robert
    Robert avatar
    4 posts
    Member since:
    Mar 2009

    Posted 14 Jan 2010 Link to this post

    I have run across the same issue and have an element that won't keep the value entered if typed OR if selected using the arrow keys. Specifically the in Menu >> Hovered : Width as well as sub-menu items width, disabled width, expandable/expanded width. Disabled is also not recognizing center alignment as well.


  11. alo
    alo avatar
    53 posts
    Member since:
    Jan 2009

    Posted 14 Jan 2010 Link to this post

    I have the same problem updating and saving any of the pad, margin, height, and width values for the Menu control. 
  12. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 20 Jan 2010 Link to this post

    Hello guys,

    The width of the menu items is calculated dynamically when the menu loads, and there is a 20px right padding that may seem like the centering does not work. If that is not the case, please provide a more specific example (i.e. the steps to reproduce the issues).

    Regards,
    Alex Gyoshev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  13. Robert
    Robert avatar
    4 posts
    Member since:
    Mar 2009

    Posted 20 Jan 2010 Link to this post

    If the widths of these items are calculated dynamically, why is there a field to change the width?
    Since the widths are calculated dynamically, how is the calculation made? I ask because my menus are not the right width for the various elements.
  14. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 25 Jan 2010 Link to this post

    Hello Robert,

    > If the widths of these items are calculated dynamically, why is there a field to change the width?

    The StyleBuilder UI does not reflect this case - you can still set the width, but it will be overridden by the client-side script of the menu.

    > Since the widths are calculated dynamically, how is the calculation made? I ask because my menus are not the right width for the various elements.

    You can use the GroupSettings-Width property to set the width of the child menus.

    Sincerely yours,
    Alex Gyoshev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  15. Benyamin Yabets
    Benyamin Yabets avatar
    10 posts
    Member since:
    Oct 2007

    Posted 16 Feb 2010 Link to this post

    Hello Telerik,

    I have the same kind of problems when I want to build a menu skin based on sunset:
    • I am trying to set a fix menu width and use bg image (button like) , The width is not saved
    • I am trying to set the padding of main item then I save the skin, I click on any other item and when I click main item again all the changes I made are gone
    • All chnges in the BOX parameters doesn't show the change online and they are not saved

     

  16. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 19 Feb 2010 Link to this post

    Hello Benyamin,

    Have you clicked the "Apply changes" button after you make a change?

    Regards,
    Alex Gyoshev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  17. Benyamin Yabets
    Benyamin Yabets avatar
    10 posts
    Member since:
    Oct 2007

    Posted 21 Feb 2010 Link to this post

    Hello Alex,

    I only see SAVE button at the top of the screen, Did you mean this SAVE button  ?
  18. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Feb 2010 Link to this post

    Hello Benyamin,

    Yes, the "Save" button. (It was "apply changes" in previous versions, sorry about the confusion). The button is used to synchronize the edited skin with the server - after it is saved, the changes should be included in the download.

    All the best,
    Alex Gyoshev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  19. Benyamin Yabets
    Benyamin Yabets avatar
    10 posts
    Member since:
    Oct 2007

    Posted 22 Feb 2010 Link to this post

    Hi Alex

    Yes, I save the changes every time I change anything and yet it doesn't save the changes.
  20. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 23 Feb 2010 Link to this post

    Hello Benyamin,

    As I could not reproduce any of the issues that you described, can you please provide details on which skin you use as base and which browser you use when you work with the style builder?

    Regards,
    Alex Gyoshev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  21. Benyamin Yabets
    Benyamin Yabets avatar
    10 posts
    Member since:
    Oct 2007

    Posted 24 Feb 2010 Link to this post

    Hello Alex,

    I tried all major browsers (IE 8 , FF 3.6, Chrome) , on several skins. Please check this short video on the link to see what I was doing.


  22. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 24 Feb 2010 Link to this post

    Hi Benyamin,

    This is certainly a bug - I'll fix it right away. Until the next upload, you can use the up/down arrows to adjust the values.

    Greetings,
    Alex Gyoshev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017