2012-10-24 43 views
10

我開發了一個使用ASP.NET Telerik控件和組件的網站。它在移動設備上無法正常工作(定位,屏幕分辨率)很好(跨分辨率縮放)。Bootstrap與ASP.NET Telerik控件兼容嗎?

我決定將bootstrap集成到我的網站中,但引導響應式樣式不會調整我所需要的。

有沒有人試過用asp.net Telerik組件引導?都兼容?

任何建議/正確的指導?

回答

1

一些框架如Bootstrap和Telerik之間存在不兼容性。主要的問題是不同的框架使用CSS樣式名稱,如果兩個不同的框架使用相同的名稱,將會有衝突。我注意到最新版本的Bootstrap(3.0)和Telerik的最新版本,在某些Telerik控件中,複選框格式被Bootstrap覆蓋。不幸的是,修復非常棘手,您需要對其進行定製,以免根本不使用框架。

+1

這不是關於名稱的問題,而是全局元素選擇器引導程序使用的問題,它們可能會弄亂任何佈局或控件/控件。 – rdmptn

+1

@rdmptn你可以用bootstrap作爲前綴來幫忙。 –

0

鏈接顯示的是,當我用引導

It depends on what you're trying to accomplish. In general, bootstrap

2.0 is a lot easier to work with along with Telerik because they style less of the default elements, like . In 2.0, they require you to add some class to a element, which means that they don't try to style a Telerik grid, for example. This makes it look better.

What you won't get is a "Bootstrap themed" version of the Telerik controls. Continuing with the Telerik grid example, if you use that in conjunction with Bootstrap it will look like a Telerik grid, not a Bootstrap table, with it's nice pager buttons, etc. That will take a lot of work to change, and I don't recommend it. Telerik emits html with its own CSS class names and mapping that back to Bootstrap would be a chore. I've found, actually, that with Bootstrap I use a lot less of Telerik than I did before, and just use more straight html + Bootstrap.

If you do decide to integrate Telerik in your site, I recommend the Telerik "Simple" theme, which seems to match Bootstrap's default colors best.

+0

Telerik現在有Bootstrap皮膚,所以它可以幫助進行這種整合。 – rdmptn

0

RadImageEditor圖標被隱藏。

所以我必須說它不是100%兼容。

+0

你可以請分享如何重現隱藏的圖標問題?我試圖用最新的2014年第二季度版Telerik.Web.UI重現它,但無濟於事。這是測試:http://screencast.com/t/GekspoZMDFo –

-1

是的,我最近使用Bootstrap和Telerik ASP.NET Ajax版本2015年第二季度和.NET Framework 4.5.1構建ASP.NET 2013 Web應用程序。 在我的本項目的實施,我有一個問題: •一個問題是,當我使用RadAjaxManager,我得到這個錯誤:

Controls集合不能修改,因爲該控件包含代碼塊(即<% ...%>)。

•要解決這個問題,我用控件包裝了代碼部分。