or
Private Sub rgDefects_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgDefects.ItemDataBound 'don't process anything other than data rows If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then With DirectCast(e.Item, Telerik.Web.UI.GridDataItem) 'set the UOM_Text based upon the UM based upon the UM .Item("UM").Text = Measure.DisplayUoM(UnitType.Linear, UserAccount.UnitSystemPreference) End With End IfEnd Sub
I have recently upgraded to the newest RadGrid control and am still having a problem where the grid will not expand when using Firefox but it works fine in IE 8. I click on the expand and it does work but never expands. I am posting my ASPX page below:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.Master" AutoEventWireup="true" CodeBehind="ParameterGrid.aspx.cs" Inherits="NTE.NTEx.Web.App.OptimizationScenarios.ParameterGrid" Title="Parameter" %> <%@ MasterType TypeName="NTE.NTEx.Web.MainMaster" %> <asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server"> <br /> <center><asp:Label ID="Label1" CssClass="NormalTextBold" runat="server" ></asp:Label></center> <telerik:RadGrid ID="RadGrid1" Skin="Web20" runat="server" Width="95%" AutoGenerateColumns="False" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemUpdated="RadGrid1_ItemUpdated" BorderStyle="None" OnNeedDataSource="RadGrid1_NeedDataSource" PageSize="3" AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="False" GridLines="Horizontal" ShowStatusBar="true"> <PagerStyle Mode="NumericPages"></PagerStyle> <ClientSettings AllowExpandCollapse="True"> </ClientSettings> <MasterTableView DataKeyNames="CategoryName" AllowMultiColumnSorting="True" HierarchyLoadMode="Client" Width="100%" HierarchyDefaultExpanded="False"> <DetailTables> <telerik:GridTableView DataKeyNames="ParameterId" Width="100%" EditMode="InPlace"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="CategoryName" MasterKeyField="CategoryName" /> </ParentTableRelation> <Columns> <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn> <telerik:GridBoundColumn UniqueName="ParameterId" Visible="false" DataField="ParameterId"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ParameterName" ReadOnly="true" HeaderText="Name" HeaderButtonType="TextButton" DataField="ParameterName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ParameterDescription" ReadOnly="true" HeaderText="Description" HeaderButtonType="TextButton" DataField="ParameterDescription"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="DefaultValue" HeaderText="Default" ReadOnly="true" Visible="true" DataField="Initial_value"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MinimumValue" HeaderText="Minimum" ReadOnly="true" Visible="true" DataField="Minimum_value" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ParameterValue" HeaderText="Value" HeaderButtonType="TextButton" DataField="ParameterValue" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-CssClass="NormalTextBold" > </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MaximumValue" HeaderText="Maximum" ReadOnly="true" Visible="true" DataField="Maximum_value" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"></telerik:GridBoundColumn> </Columns> <SortExpressions> <telerik:GridSortExpression FieldName="ParameterName"></telerik:GridSortExpression> </SortExpressions> <EditFormSettings ColumnNumber="1" CaptionFormatString="Edit details for optimization scenario with ID {0}" CaptionDataField="ID"> <FormTableItemStyle Wrap="True"></FormTableItemStyle> <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle> <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" /> <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module" Height="110px" Width="100%" /> <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle> <EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit"></EditColumn> <FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> </EditFormSettings> </telerik:GridTableView> </DetailTables> <Columns> <telerik:GridBoundColumn UniqueName="CategoryName" HeaderText="Category" HeaderButtonType="TextButton" DataField="CategoryName"> </telerik:GridBoundColumn> </Columns> <SortExpressions> <telerik:GridSortExpression FieldName="CategoryName"></telerik:GridSortExpression> </SortExpressions> </MasterTableView> </telerik:RadGrid> </asp:Content> 
<
telerik:RadFileExplorer ID="RadFileExplorer" Skin="Windows7" Configuration-MaxUploadFileSize="10485760" DisplayUpFolderItem="false" runat="server" OnClientFileOpen="OnClientFileOpen" OnClientItemSelected="OnClientItemSelected" OnItemCommand="RadFileExplorer_ItemCommand">
<Configuration ViewPaths="~/Dummy" UploadPaths="~/Dummy" DeletePaths="~/Dummy" />
</telerik:RadFileExplorer>
or if someone can tell me any way by which i can display a confirmation message saying "some of your file were not uploaded".
Thank you
Tarun Juneja