Default.Aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" OnClientResized="ClientResized"
AutoGenerateColumns="False" AllowMultiRowSelection="true" OnNeedDataSource="RadGrid1_NeedDataSource"
PageSize="15" ShowStatusBar="True" AlternatingItemStyle-BackColor="LightBlue"
Skin="WebBlue" Width="100%" Height="650px" OnItemCreated="RadGrid1_ItemCreated"
OnItemDataBound="RadGrid1_ItemDataBound" Style="margin-top: 0px" OnDataBound="RadGrid1_DataBound"
OnItemCommand="RadGrid1_ItemCommand">
<AlternatingItemStyle BackColor="LightBlue" />
<MasterTableView ClientDataKeyNames="PUR_CAT,CAT_TOT,FTMC,TOT_PUR_CAT,Dependent_PO,Dependent_RM"
TableLayout="Fixed" Width="100%">
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
<ItemStyle Height="5px" />
<CommandItemSettings ExportToPdfText="Export to PDF" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridClientSelectColumn HeaderStyle-Font-Bold="true" UniqueName="ClientSelectColumn">
<HeaderStyle Font-Bold="True" Width="3%" />
</telerik:GridClientSelectColumn>
<telerik:GridBoundColumn DataField="PUR_CAT" FooterText="Total:" HeaderStyle-Font-Bold="true"
HeaderStyle-Width="9%" HeaderText="Purchase Category">
<HeaderStyle Font-Bold="True" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TOT_EXT_QTY" DataType="System.Double" HeaderStyle-Font-Bold="true"
HeaderStyle-Width="7%" HeaderText="Total Qty" ItemStyle-HorizontalAlign="Right"
UniqueName="TOT_EXT_QTY">
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" Width="7%" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="TOT_PUR_CAT,Dependent_PO" HeaderStyle-Font-Bold="true"
HeaderStyle-Width="40%" ItemStyle-HorizontalAlign="Left" UniqueName="TOT_PUR_CAT,Dependent_PO">
<HeaderTemplate>
<table width="100%" style="table-layout: fixed;">
<tr>
<td colspan="5" class="style17">
<div style="float: left;">
-100</div>
<div style="float: right;">
100</div>
<telerik:RadSlider ID="RadSliderPOCAT" runat="server" MaximumValue="100" MinimumValue="-100"
OnClientSlideEnd="CalculateNewProductCostPO" OnClientSlideStart="ClientSlideStart"
OnClientValueChanged="ClientValueChangedPO" SelectionEnd="<%# POEndSlider %>"
SelectionStart="<%# POStartSlider %>" ShowDecreaseHandle="true" ShowIncreaseHandle="true"
Skin="Forest" SmallChange="1" Style="float: left" Value="0" Width="385px" CssClass="ApplyPosition" />
</td>
</tr>
<caption>
PO Price
<tr>
<td align="justify" style="border-style: solid; border-color: #455F77; border-width: 1px;
width: 20%;">
Total PO Price
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-bottom-style: solid; border-top-style: solid;">
Future PO Price
</td>
<td align="center" style="border-color: #455F77; border-width: 1px; width: 20%; border-right-style: solid;
border-bottom-style: solid;">
Current Selection
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-top-style: solid; border-bottom-style: solid;">
Other Affected PO
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-bottom-style: solid; border-top-style: solid;">
Future Other Affected PO
</td>
</tr>
</caption>
</table>
</HeaderTemplate>
<ItemTemplate>
<table border="1" width="100%" style="table-layout: fixed; ">
<tr>
<td align="justify" style="width: 20%">
<asp:Label ID="lbl_tot_putcat" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem,"TOT_PUR_CAT","{0:#,###0}"))%>'></asp:Label>
<%--<asp:Label ID="lbl_tot_putcat" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "TOT_PUR_CAT", "{0:C}")%>'></asp:Label>--%>
<%-- <%#DataBinder.Eval(Container.DataItem, "TOT_PUR_CAT", "{0:C}")%>--%>
</td>
<td align="justify" style="width: 20%">
<asp:Label ID="lbl_FUT_TOT_PUR_CAT" ForeColor="#3C0000" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "FUT_TOT_PUR_CAT", "{0:#,###0}"))%>'></asp:Label>
<%-- <%#DataBinder.Eval(Container.DataItem, "FUT_TOT_PUR_CAT", "{0:C}")%>--%>
</td>
<td align="center" style="width: 20%">
<asp:Label ID="lblCurSelPO" runat="server" Text="Current Selection: 0" />
</td>
<td align="justify" style="width: 20%">
<%-- <%#CheckEmpty(DataBinder.Eval(Container.DataItem, "Dependent_PO", "{0:C}"))%>--%>
<asp:LinkButton ID="lnk_totpo" runat="server" ForeColor="Blue" Text=' <%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "Dependent_PO","{0:#,###0}"))%>'></asp:LinkButton>
</td>
<td align="justify" style="width: 20%">
<%-- <%#CheckEmpty(DataBinder.Eval(Container.DataItem, "FUT_Dependent_PO", "{0:C}"))%>--%>
<asp:Label ID="lnk_effpo" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "FUT_Dependent_PO", "{0:#,###0}"))%>'></asp:Label>
</td>
</tr>
<%-- <tr>
</tr>--%>
</table>
</ItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="CAT_TOT,Dependent_RM" HeaderStyle-Font-Bold="true"
HeaderStyle-Width="40%" ItemStyle-HorizontalAlign="Left" UniqueName="CAT_TOT,Dependent_RM">
<HeaderTemplate>
<table width="100%" style="table-layout: fixed;">
<tr>
<td colspan="5">
<div style="float: left;">
-100</div>
<div style="float: right;">
100</div>
<telerik:RadSlider ID="RadSlider1" runat="server" MaximumValue="100" MinimumValue="-100"
OnClientSlideEnd="CalculateNewProductCost" OnClientSlideStart="ClientSlideStart"
OnClientValueChanged="ClientValueChanged" SelectionEnd="<%# endSlider %>" SelectionStart="<%# startSlider %>"
ShowDecreaseHandle="true" ShowIncreaseHandle="true" Skin="Forest" SmallChange="1"
Value="0" Width="385px" Style="float: left" CssClass="ApplyPosition" />
</td>
</tr>
<caption>
Material Cost
<tr>
<td align="justify" style="border-style: solid; border-color: #455F77; border-width: 1px;
width: 20%;">
Total Material Cost
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-bottom-style: solid; border-top-style: solid;">
Future Total Material Cost
</td>
<td align="center" style="border-color: #455F77; border-width: 1px; width: 20%; border-right-style: solid;
border-bottom-style: solid;">
Current Selection
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-top-style: solid; border-bottom-style: solid;">
Other Affected RM
</td>
<td align="justify" style="border-color: #455F77; border-width: 1px; width: 20%;
border-right-style: solid; border-bottom-style: solid; border-top-style: solid;">
Future Other Affected RM
</td>
</tr>
</caption>
</table>
</HeaderTemplate>
<ItemTemplate>
<table border="1" width="100%" style="table-layout: fixed;">
<tr>
<td align="justify" style="width: 20%">
<asp:Label ID="lbl_CAT_TOT" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "CAT_TOT", "{0:#,###0}"))%>'></asp:Label>
<%--<%#DataBinder.Eval(Container.DataItem, "CAT_TOT", "{0:C}")%> <%#Eval("CAT_TOT") %>--%>
</td>
<td align="justify" style="width: 20%">
<asp:Label ID="lbl_FTMC" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "FTMC", "{0:#,###0}"))%>'></asp:Label>
<%-- <%#DataBinder.Eval(Container.DataItem, "FTMC", "{0:C}")%>--%>
</td>
<td align="center" style="width: 20%">
<asp:Label ID="lblCurSel" runat="server" Text="Current Selection: 0" />
</td>
<td align="justify" style="width: 20%">
<asp:LinkButton ID="lnk_rm" runat="server" ForeColor="Blue" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "Dependent_RM", "{0:#,###0}"))%>'></asp:LinkButton>
<%--<%#CheckEmpty(DataBinder.Eval(Container.DataItem, "Dependent_RM", "{0:C}"))%>--%>
</td>
<td align="justify" style="width: 20%">
<asp:Label ID="lnk_effrm" runat="server" Text='<%#"$"+CheckEmpty(DataBinder.Eval(Container.DataItem, "Future_Dependent_RM", "{0:#,###0}"))%>'></asp:Label>
<%--<%#CheckEmpty(DataBinder.Eval(Container.DataItem, "Future_Dependent_RM", "{0:C}"))%>--%>
</td>
</tr>
</table>
</ItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings Scrolling-AllowScroll="true">
<ClientEvents OnRowDeselected="RowSelected" OnRowSelected="RowSelected" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="50"></Scrolling>
<Selecting AllowRowSelect="true" />
</ClientSettings>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" OffsetY="-1" EnableShadow="true"
Position="BottomRight" Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Mouse"
Width="500px" Height="250px" Style="font-size: 18px; text-align: center; font-family: Arial;"
RenderInPageRoot="true" Skin="Forest" AutoCloseDelay="2000" HideDelay="0" ShowDelay="0"
ContentScrolling="Auto" ShowEvent="OnMouseOver" AnimationDuration="1" HideEvent="ManualClose">
</telerik:RadToolTipManager>
ASpx.CS:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
{
LinkButton lnk_rm1 = item.FindControl("lnk_rm") as LinkButton;
if (!Object.Equals(lnk_rm1, null))
{
if (!Object.Equals(this.RadToolTipManager1, null))
{
//Add the button (target) id to the tooltip manager
string str = (e.Item as GridDataItem).GetDataKeyValue("PUR_CAT").ToString().Replace("<br/>", "/");
string[] ariba_cat2 = str.Split('.');
string last = ariba_cat2[2];
this.RadToolTipManager1.TargetControls.Add(lnk_rm1.ClientID, last, true);
}
}
}
}
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
this.UpdateToolTip(args.Value, args.UpdatePanel);
}
private void UpdateToolTip(string elementID, UpdatePanel panel)
{
Control ctrl = Page.LoadControl("CategoryDetailsfromIndex.ascx");
panel.ContentTemplateContainer.Controls.Add(ctrl);
CategoryDetailsfromIndex details = (CategoryDetailsfromIndex)ctrl;
details.Ariba21 = elementID;
}
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Sort" || e.CommandName == "Page")
{
RadToolTipManager1.TargetControls.Clear();
}
}
CategoryDetailsfromIndex.Ascx
<telerik:RadGrid ID="RadGrid_det" runat="server" Skin="Forest">
</telerik:RadGrid>
CategoryDetailsfromIndex.Ascx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace CPT_NEW
{
public partial class CategoryDetailsfromIndex : System.Web.UI.UserControl
{
Home obj = new Home();
private string Ariba2;
public string Ariba21
{
get { return Ariba2; }
set { Ariba2 = value; }
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
RadGrid_det.DataSource = obj.Get_DetailsfromIndexMapping(Ariba21);
RadGrid_det.DataBind();
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
<
td
valign
=
"top"
>
<
telerik:RadRating
ID
=
"VendorRating"
runat
=
"server"
Skin
=
"CustomSkin"
EnableEmbeddedSkins
=
"false"
EnableEmbeddedBaseStylesheet
=
"false"
/>
<
asp:RangeValidator
ID
=
"RatingValidator"
runat
=
"server"
ControlToValidate
=
"VendorRating"
MinimumValue
=
"1"
MaximumValue
=
"5"
ErrorMessage
=
"Please provide a rating!"
></
asp:RangeValidator
>
</
td
>
This table also contains a textbox for comments and a save button. When the save button is clicked, VendorRating.Value is saved to the database. The save functionality all works properly, and the validator on VendorRating works.
This table sits inside a control that is hidden until the user clicks an "Add a Review" button that sits at the bottom of a table containing all of the existent reviews. It is when the "Add a Review" button that displays the radrating that the error occurs.
The problem is that when I view the website outside of the development environment, on certain computers the rating stars consistently don't show up at all (they look like white space) and that whitespace turns to black boxes when clicked. This happens consistently on affected computers, but never on others. The stars in the existing ratings display properly on page load, but when the user control to enter a review is made visible, those stars also render strangely.
I have attached a screenshot to demonstrate the viewing error. The RadRatings use a custom skin (all I did for that was to edit the sprite image to match my needs. The RadRatings in the existing reviews are disabled so the number of stars cannot be changed. The RadRating in the write review control is enabled to allow users to select the rating value.
Any help is greatly appreciated!
Kaleb
<
rad:RadEditor
ID
=
"EmailBody"
runat
=
"server"
Width
=
"100%"
ToolsFile
=
"~/_CSS/EditorBasicTools.xml"
OnClientLoad
=
"EmailBody_OnClientLoad"
StripFormattingOptions
=
"NoneSupressCleanMessage"
Skin
=
"Default"
SpellCheckSettings-DictionaryPath
=
"~/App_Data/RadSpell/"
SpellCheckSettings-DictionaryLanguage
=
"en-US"
EditModes
=
"Design"
ContentFilters
=
"RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, IndentHTMLContent, EncodeScripts, OptimizeSpans"
>
<
ContextMenus
>
<
rad:EditorContextMenu
Enabled
=
"false"
TagName
=
"IMG"
>
</
rad:EditorContextMenu
>
<
rad:EditorContextMenu
Enabled
=
"false"
TagName
=
"A"
>
</
rad:EditorContextMenu
>
</
ContextMenus
>
</
rad:RadEditor
>
<
div
id
=
'dvEmailHistory'
><
div
style
=
'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'
><
p
class
=
MsoNormal
><
b
><
span
style
=
'font-size:12.0pt;font-family:"Times New Roman"'
>From:</
span
></
b
><
span
style
=
'font-size:12.0pt;font-family:"Times New Roman"'
> Ruba.Shannak@aramex.com <
br
/><
b
>Sent:</
b
> 4/24/2012 3:26:00 PM<
br
/><
b
>To:</
b
> DEV.TEST@aramex.com<
br
/><
b
>Cc:</
b
> <
br
/><
b
>Subject:</
b
> RE: Test<
o:p
></
o:p
></
span
></
p
></
div
><
br
/><
html
xmlns:v
=
"urn:schemas-microsoft-com:vml"
xmlns:o
=
"urn:schemas-microsoft-com:office:office"
xmlns:w
=
"urn:schemas-microsoft-com:office:word"
xmlns:m
=
"http://schemas.microsoft.com/office/2004/12/omml"
xmlns
=
"http://www.w3.org/TR/REC-html40"
>
<
head
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html; charset=us-ascii"
>
<
meta
name
=
"Generator"
content
=
"Microsoft Word 14 (filtered medium)"
>
<
style
><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></
style
><!--[if gte mso 9]><
xml
>
<
o:shapedefaults
v:ext
=
"edit"
spidmax
=
"1026"
/>
</
xml
><![endif]--><!--[if gte mso 9]><
xml
>
<
o:shapelayout
v:ext
=
"edit"
>
<
o:idmap
v:ext
=
"edit"
data
=
"1"
/>
</
o:shapelayout
></
xml
><![endif]-->
</
head
>
<
body
lang
=
"EN-US"
link
=
"blue"
vlink
=
"purple"
>
<
div
class
=
"WordSection1"
>
<
p
class
=
"MsoNormal"
>This is the email body..... <
span
style
=
"font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#8AB131"
><
o:p
></
o:p
></
span
></
p
>
<
p
class
=
"MsoNormal"
><
o:p
> </
o:p
></
p
>
</
div
>
</
body
>
</
html
></
div
>
<
HTML
>
<
HEAD
>
<
TITLE
></
TITLE
>
</
HEAD
>
<
BODY
lang
=
EN
-US
vLink
=
purple
link
=
blue
>
<
DIV
class
=
WordSection1
>
<
P
class
=
"MsoNormal"
>This is the email body.....<
SPAN
style
=
"FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: #8ab131; FONT-SIZE: 8pt"
><
o:p
></
o:p
></
SPAN
></
P
>
<
P
class
=
"MsoNormal"
><
o:p
> </
o:p
></
P
>
</
DIV
>
</
BODY
>
</
HTML
>
Protected Sub RadButtonBudgetSettingsEdit_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
Dim script As String = "function f(){$find(""" + RadWindowBudgetIDNo.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
'
'Based on the User's input in the RadWindow displayed above, I want to execute some code before leaving this procedure
'The user's input is captured in a Session variable.
'
'e.g.
NewSubRoutineToBeExecutedBeforeLeavingThisClickEvent(Session("UserSelectedIDNo")
End Sub
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindowBudgetIDNo"
NavigateUrl
=
"SelectBudget.aspx"
Modal
=
"true"
></
telerik:RadWindow
>
Dim
strIds as string=
".wmv, .mp4, .pdf, .swf"
Dim
ids
As
String
() = {strIds}
Upload1.AllowedFileExtensions = ids
function
clientNodeChecked(sender, eventArgs) {
var
node = eventArgs.get_node();
var
s = node.get_text();
var
currentObject = node.get_parent();
while
(currentObject !=
null
) {
if
(currentObject != node.get_treeView()) {
s = currentObject.get_text() +
" > "
+ s;
}
else
{
break
;
}
currentObject = currentObject.get_parent();
}
var
tbPath;
tbPath = $get(
"<%= lblFullPath_InvGroupOwner.ClientID %>"
);
tbPath.innerHTML = s;
}
Team,
I am using a fieldset in radsplitter control(vista skin).
The background of the splitter pane is not getting applied when we move the scrollbar.
It is only happening with the scrollbars. If I resize the splitter pane; it Fieldset works properly.
Using <Style=”overflow:auto”> for the fieldset inside the splitter pane is solving the problem, but that is breaking the scrollbar.
I have seen this issue in IE 7,8,9.
But working proper in chrome & FF.
I have attached the screenshot for it.
Please let me know the solution for this problem As soon as possible.
Thanks
Sampada