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

RadSlider is not fully rendered

3 Answers 108 Views
Slider
This is a migrated thread and some comments may be shown as answers.
kascheev
Top achievements
Rank 1
kascheev asked on 15 Jan 2014, 06:22 PM
Hello Support,

I'm using Telerik Version = 2012.3.1308.35 and have the following problem:

RadSlider is not fully rendered when inside RadGrid GridTemplateColumn and RadGrid is located inside a <div> element and postback is initiated

Please find attached a sample application:
- Run application
- Press 'Show Grid' button
- Ticks and tick labels are not rendered

3 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 16 Jan 2014, 11:59 AM
Hello,

Since you are showing the RadGrid with the RadSliders via postback (most probably an AJAX request), I would suggest checking the following help article and trying the included approach: http://www.telerik.com/help/aspnet-ajax/slider-troubleshooting-broken-skin-when-loading-with-ajax.html.

If you are still having difficulties, you can also get the client-side object of the slider and call its function repaint() when the grid is shown.

Regards,
Slav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
kascheev
Top achievements
Rank 1
answered on 16 Jan 2014, 08:20 PM
Hello Slav,

Thank you. Yes, I'm using AJAX.

I have already found "repaint" solution before posting this issue and it was used in my code. Without it the size of RadSlider was invalid. "Repaint" fixes RadSlider size but does not fix style issue (ticks and tick labels).

Adding links to style fixed issue. I even did not have to add
EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
as it is specified in
http://www.telerik.com/help/aspnet-ajax/slider-troubleshooting-broken-skin-when-loading-with-ajax.html

However I was not able to make "<link ..>" working inside a user control. It works only on the page level.

So, my question is: is there a way to add links to user control, I'd rather not have it on the page level if possible?

Regards,
Anton.
0
Slav
Telerik team
answered on 20 Jan 2014, 12:21 PM
Hi Anton,

It is recommended to place the link tags in the head section of the page, so if you want to load the style sheets on the page at another location, I would suggest using the RadStyleSheetManager control as shown in the help article I linked. Have you tried this approach and how did it go?

Regards,
Slav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Slider
Asked by
kascheev
Top achievements
Rank 1
Answers by
Slav
Telerik team
kascheev
Top achievements
Rank 1
Share this question
or