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

Padding and Margin

20 Answers 149 Views
Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Serge
Top achievements
Rank 1
Serge asked on 01 Dec 2009, 07:52 PM
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?

20 Answers, 1 is accepted

Sort by
0
Ralph
Top achievements
Rank 1
answered on 02 Dec 2009, 03:51 PM
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
0
Alex Gyoshev
Telerik team
answered on 04 Dec 2009, 03:06 PM
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.
0
Serge
Top achievements
Rank 1
answered on 04 Dec 2009, 03:23 PM
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
0
Alex Gyoshev
Telerik team
answered on 04 Dec 2009, 04:08 PM
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.
0
Serge
Top achievements
Rank 1
answered on 04 Dec 2009, 04:14 PM
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
0
Ralph
Top achievements
Rank 1
answered on 04 Dec 2009, 04:22 PM
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
0
Alex Gyoshev
Telerik team
answered on 10 Dec 2009, 08:22 AM
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.
0
Robert
Top achievements
Rank 1
answered on 14 Jan 2010, 09:43 PM
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.


0
alo
Top achievements
Rank 1
answered on 14 Jan 2010, 11:22 PM
I have the same problem updating and saving any of the pad, margin, height, and width values for the Menu control. 
0
Alex Gyoshev
Telerik team
answered on 20 Jan 2010, 09:27 AM
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.
0
Robert
Top achievements
Rank 1
answered on 21 Jan 2010, 12:31 AM
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.
0
Alex Gyoshev
Telerik team
answered on 25 Jan 2010, 08:14 AM
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.
0
Benyamin Yabets
Top achievements
Rank 1
answered on 16 Feb 2010, 03:10 PM
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

 

0
Alex Gyoshev
Telerik team
answered on 19 Feb 2010, 08:48 AM
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.
0
Benyamin Yabets
Top achievements
Rank 1
answered on 21 Feb 2010, 09:10 AM
Hello Alex,

I only see SAVE button at the top of the screen, Did you mean this SAVE button  ?
0
Alex Gyoshev
Telerik team
answered on 22 Feb 2010, 08:16 AM
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.
0
Benyamin Yabets
Top achievements
Rank 1
answered on 22 Feb 2010, 12:11 PM
Hi Alex

Yes, I save the changes every time I change anything and yet it doesn't save the changes.
0
Alex Gyoshev
Telerik team
answered on 23 Feb 2010, 08:05 AM
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.
0
Benyamin Yabets
Top achievements
Rank 1
answered on 24 Feb 2010, 07:49 AM
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.


0
Alex Gyoshev
Telerik team
answered on 24 Feb 2010, 08:31 AM
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.
Tags
Visual Style Builder
Asked by
Serge
Top achievements
Rank 1
Answers by
Ralph
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Serge
Top achievements
Rank 1
Robert
Top achievements
Rank 1
alo
Top achievements
Rank 1
Benyamin Yabets
Top achievements
Rank 1
Share this question
or