I used the "web blue" skin to grid. it looks fine on windows XP OS. but when i run my project on windows Vista OS,the grid skin changes to "default gray".please provide the solution for this.
please reply soon..
Regards,
Satish
7 Answers, 1 is accepted
Where are you setting the Skin? Is it in the web.config? May be this file is different on the two computers?
There is no logical reason why the skin should differ on the two machines, unless there is some setting, which determines this.
If you need further assistance, please send us a simple demo.
Sincerely yours,
Dimo
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.
Thanks for quick reply.
I am set the skin of grid on each page not in the web.config file,as shown bellow
// in .aspx
<
telerik:RadGrid ID="RadGridvw" runat="server" GridLines="None" Skin="WebBlue" AlternatingItemStyle-BackColor="inactivecaptiontext"
Width="100%" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True"
ShowDesignTimeSmartTagMessage="False" PagerStyle-AlwaysVisible="true" PageSize="20">
but still the "Default Gray" skin is applied to the grid on windows vista OS.
please reply soon.
Regards,
Satish
We have no skin called "Default Gray". We have "Default" and "Gray", which are two separate skins. "Gray" is not used any more in the latest versions.
As mentioned earlier, please provide a runnable demo, so that we can see what happens.
Best wishes,
Dimo
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Thanks for quick reply.
When i run my project on windows vista OS. then the skin of RadGrid displayed in "Gray" or "Black". i think that the "Gray" was default skin for grid thats why it is applyed to the grid.I am use the skin settings as given in last post. there is no any further changes in that code for grid skin.
Regards,
Satish
I am asking you to send a runnable demo for the third time. If you don't do that, we will not be able to help you.
Dimo
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Bellow is the sample code which i have tested on windows XP OS & Windows VISTA OS, the color of RadGrid differ on VISTA OS.
on XP it shows the "WebBlue" skin proper but on VISTA it show other skin color not the "WebBlue" as we set it in Default.aspx in code.
please check the code in BOLD style.
please reply as soon as possible.
Regards,
Satish
code : -
// default.aspx
<%@ Page Language="VB" Inherits="Default"
CodeFile="default.aspx.vb" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
<%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
<%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<qsf:HeadTag ID="Headtag1" runat="server"></qsf:HeadTag>
</head>
<body class="BODY">
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<qsf:Header ID="Header1" runat="server" NavigationLanguage="C#" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="CheckBox1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="Label1" />
<telerik:AjaxUpdatedControl ControlID="Label2" />
<telerik:AjaxUpdatedControl ControlID="Label3" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="CheckBox2">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="Label1" />
<telerik:AjaxUpdatedControl ControlID="Label2" />
<telerik:AjaxUpdatedControl ControlID="Label3" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="CheckBox3">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="Label1" />
<telerik:AjaxUpdatedControl ControlID="Label2" />
<telerik:AjaxUpdatedControl ControlID="Label3" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="Label1" />
<telerik:AjaxUpdatedControl ControlID="Label2" />
<telerik:AjaxUpdatedControl ControlID="Label3" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function RequestStart(sender, eventArgs)
{
//Log the start time
startTime = new Date();
}
function ResponseEnd(sender, eventArgs)
{
//Log the end time
var endTime = new Date();
//Display the total time
$get("<%= lblTotal.ClientID %>").innerHTML = endTime - startTime + " ms";
}
</script>
</telerik:RadCodeBlock>
<table>
<tr>
<td style="width: 330px">
<fieldset style="padding: 10px; height: 100px">
<legend style="margin-bottom: 10px">Settings:</legend>
<asp:CheckBox ID="CheckBox3" Text="Enable caching" Checked="true" AutoPostBack="true"
runat="server" />
<br />
<asp:CheckBox ID="CheckBox2" Text="Let RadGrid do sorting instead of SQL Server"
AutoPostBack="true" runat="server" />
<br />
<asp:CheckBox ID="CheckBox1" Text="Show aggregates" AutoPostBack="true" runat="server" />
</fieldset>
</td>
<td style="width: 520px">
<fieldset style="padding: 10px; height: 100px;">
<legend style="margin-bottom: 10px">Measurements:</legend>Time to retrieve data:
<asp:Label ID="Label1" ForeColor="Red" Font-Bold="true" runat="server"></asp:Label>
ms <em>(from Selecting to Selected LinqDataSource events)</em>
<br />
<b>Time to bind, aggregate(if needed) and render data: </b>
<asp:Label ID="Label2" ForeColor="Red" Font-Bold="true" runat="server"></asp:Label>
ms
<br />
Server time:
<asp:Label ID="Label3" ForeColor="Red" Font-Bold="true" runat="server"></asp:Label>
ms <em>(from Init to Render)</em>
<br />
<br />
Total time:
<asp:Label ID="lblTotal" ForeColor="Red" Font-Bold="true" runat="server">
<i>Perform sorting/paging/filtering operation to see total time</i>
</asp:Label>
</fieldset>
</td>
</tr>
</table>
<br />
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="WebBlue" AlternatingItemStyle-BackColor="inactivecaptiontext"
Width="100%" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" ShowDesignTimeSmartTagMessage="False"
PagerStyle-AlwaysVisible="true" PageSize="20">
<PagerStyle Mode="NextPrevAndNumeric" />
<GroupingSettings CaseSensitive="false" />
<MasterTableView TableLayout="Fixed">
<Columns>
<telerik:GridNumericColumn Aggregate="Count" HeaderText="ProductID" DataField="ProductID"
UniqueName="ProductID" SortExpression="ProductID" HeaderStyle-Width="50px" FilterControlWidth="30px"
AutoPostBackOnFilter="true" CurrentFilterFunction="equalto" ShowFilterIcon="false" />
<telerik:GridBoundColumn HeaderText="Product name" DataField="ProductName" UniqueName="ProductName"
SortExpression="ProductName" HeaderStyle-Width="180px" FilterControlWidth="140px"
AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" />
<telerik:GridNumericColumn Aggregate="Sum" DataFormatString="{0:C}" FooterAggregateFormatString="<b>Total Price:</b> {0:C}"
HeaderText="Unit price" DataField="UnitPrice" UniqueName="UnitPrice" SortExpression="UnitPrice"
FilterControlWidth="80px" HeaderStyle-Width="115px" />
<telerik:GridBoundColumn HeaderText="Quantity per unit" DataField="QuantityPerUnit"
UniqueName="QuantityPerUnit" SortExpression="QuantityPerUnit" HeaderStyle-Width="110px"
FilterControlWidth="90px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
ShowFilterIcon="false" />
<telerik:GridNumericColumn Aggregate="Sum" FooterAggregateFormatString="<b>Total Units: </b>{0}"
HeaderText="Units in stock" DataField="UnitsInStock" UniqueName="UnitsInStock"
SortExpression="UnitsInStock" FilterControlWidth="80px" HeaderStyle-Width="120px" />
<telerik:GridCheckBoxColumn DataField="Discontinued" UniqueName="Discontinued" HeaderText="Discontinued"
HeaderStyle-Width="60px" />
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:LinqDataSource AutoPage="False" ID="LinqDataSource1" runat="server" ContextTypeName="LinqToSql.TelerikSamplesDataContext"
TableName="LargeProducts"
Select="new (ProductID, ProductName, QuantityPerUnit, UnitPrice, UnitsInStock, Discontinued)">
</asp:LinqDataSource>
<qsf:Footer ID="Footer1" runat="server"></qsf:Footer>
</div>
</form>
</body>
</html>
// default.aspx.vb
Imports Telerik.Web.UI
Imports System.Linq
Imports LinqToSql
Imports System.Diagnostics
Namespace GridExamplesVB
Partial Class Default
Inherits System.Web.UI.Page
Private watch As New Stopwatch()
Private retrieveWatch As New Stopwatch()
Protected Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Init
watch.Reset()
watch.Start()
End Sub
Protected Sub RadAjaxManager1_AjaxSettingCreating(ByVal sender As Object, ByVal e As AjaxSettingCreatingEventArgs) Handles
RadAjaxManager1.AjaxSettingCreating
If Not e.Updated Is RadGrid1 Then
e.UpdatePanel.RenderMode = UpdatePanelRenderMode.Inline
End If
End Sub
Protected Sub LinqDataSource1_Selecting(ByVal sender As Object, ByVal e As LinqDataSourceSelectEventArgs) Handles LinqDataSource1.Selecting
e.Arguments.TotalRowCount = 300000
If CheckBox3.Checked Then
If Not Cache("MyData") Is Nothing Then
e.Result = Cache("MyData")
End If
End If
retrieveWatch.Reset()
retrieveWatch.Start()
End Sub
Protected Sub LinqDataSource1_Selected(ByVal sender As Object, ByVal e As LinqDataSourceStatusEventArgs) Handles LinqDataSource1.Selected
If CheckBox3.Checked Then
If Not Cache("MyData") Is Nothing AndAlso Not e.Result Is Nothing Then
Cache("MyData") = e.Result
End If
End If
retrieveWatch.Stop()
End Sub
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckBox1.CheckedChanged
RadGrid1.ShowFooter = CheckBox1.Checked
RadGrid1.Rebind()
End Sub
Protected Sub CheckBox2_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckBox2.CheckedChanged
RadGrid1.MasterTableView.OverrideDataSourceControlSorting = CheckBox2.Checked
LinqDataSource1.AutoSort = Not CheckBox2.Checked
RadGrid1.Rebind()
End Sub
Protected Overloads Overrides Sub Render(ByVal writer As HtmlTextWriter)
watch.Stop()
Label1.Text = retrieveWatch.ElapsedMilliseconds.ToString()
Label2.Text = (watch.ElapsedMilliseconds - retrieveWatch.ElapsedMilliseconds).ToString()
Label3.Text = watch.ElapsedMilliseconds.ToString()
MyBase.Render(writer)
End Sub
End Class
End Namespace
The RadGrid skin works as expected on your page. Are you sure that the skin is registered and applied at all on the Vista machine? I suppose you are aware that the HTTP handlers in the web.config are different for IIS6 and IIS7 ?
http://www.telerik.com/help/aspnet-ajax/registering_the_httphandlers_on_windows_vista_iis_7_integrated_mode.html
http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/installtroubleshootingproductionserver.html
http://blogs.telerik.com/AtanasKorchev/Posts/08-07-18/Web_Resources_demystified_Part_3_Troubleshooting.aspx
All the best,
Dimo
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
