Greetings,
I have applied a site-wide skin in my web.config file like so:
<appSettings>
<add key="Telerik.Skin" value="Default" />
</appSettings>
I have specified a loading panel in my master page(s) like so:
<telerik:RadAjaxLoadingPanel runat="server" ID="MainLoadingPanel" CssClass="load-panel" IsSticky="true" Skin="Metro" />
Please note the difference in skins. My objective is to have all loading panels observe the Metro skin while all other controls side-wide observe the Default skin. As it currently stands, the Default skin is applied to the loading panel when opening a Rad Window. All other actions display the Metro loading panel as desired - it's only the loading panel that is visible when opening a Rad Window that fails. What am I doing wrong?
Many Thanks,
Paul
I have the following code in the " radGrid1_OnInfrastructureExporting" method:
foreach (Cell cell in e.ExportStructure.Tables[0].Columns[1].Cells)
{
var count = 0.00;
count++;
var numStyles = NumberStyles.AllowParentheses | NumberStyles.AllowThousands |
NumberStyles.AllowDecimalPoint;
var cellValue = string.Empty;
cellValue = cell.Text;
cellValue = cellValue.Replace("<
b
>", "").Replace("</
b
>", "").Replace("--", "").Replace(" ", "");
cell.Value = cellValue;
var outCellValue = 0.00;
var isNumeric = double.TryParse("cellValue", out outCellValue);
var isEmptyOrNull = string.IsNullOrEmpty(cellValue);
var isText = !isNumeric && !string.IsNullOrEmpty(cellValue) ? true : false;
//if (cellValue.Length >0 && !)
if (!isText && !isEmptyOrNull)
{
cellValue = Double.Parse(cellValue, numStyles).ToString();
cell.Value = GetLocalizedValueForExcelExport(Convert.ToDouble(cellValue));
}
}
Now I know i have columns[1].Cells so i'm only touching one column but for the life of me I cannot seem to get at all the columns in the grid?
If I type the following into a watch at run time I get:
e.ExportStructure.Tables[0].Columns.Count = 1
So this should be a simple fix. How can I iterate all columns.
Every way that I have tried to get access to all columns in the OnInfrastructureExporting has failed?
thanks
Hi
I am not able to read detail table oldvalues and newvalues from the below code, i am able to read the master table cells
Protected Sub radDataEntry_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles radDataEntry.BatchEditCommand
Dim newValues As Hashtable
Dim oldValues As Hashtable
For Each command As GridBatchEditingCommand In e.Commands
If (command.Type = GridBatchEditingCommandType.Update) Then
newValues = command.NewValues
oldValues = command.OldValues
' Dim ID As String = newValues("ID").ToString()
End If
Next
End Sub
Please let me know how to get the detail table cell values using GridBatchEditingCommand , i have attached the structure of the grid where i am not able to read 9999 whereas i am able to read 8888
Thanks
Hi
I am working on Batch Edit on heirarchical grid, I am able to read the cell values bound to master grid, but not able to read the detail grid cell values. I am binding both master and detail grid using the datasource .
.aspx
<telerik:RadGrid ID="radDataEntry" runat="server" MasterTableView-NoDetailRecordsText=""
AllowAutomaticDeletes="true" AllowAutomaticUpdates="false"
OnItemDeleted="radDataEntry_ItemDeleted"
MasterTableView-NoMasterRecordsText="" EnableEmbeddedSkins="false" Skin="DV" OnBatchEditCommand="radDataEntry_BatchEditCommand" OnItemUpdated="radDataEntry_ItemUpdated"
SortingSettings-EnableSkinSortStyles="false" BorderStyle="None" EnableEmbeddedBaseStylesheet="false">
<MasterTableView ShowFooter="false" EditMode="Batch" CommandItemDisplay="Top" AutoGenerateColumns="false" Name="source" Width="100%" ExpandCollapseColumn-Visible="true"
TableLayout="Auto">
<ItemStyle Height="30px" HorizontalAlign="Center" />
<AlternatingItemStyle Height="30px" />
<BatchEditingSettings EditType="Cell" />
<CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />
<DetailTables>
<telerik:GridTableView HierarchyDefaultExpanded="true" Name="AccountDetails" AutoGenerateColumns="False" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" NoDetailRecordsText="<%$ Resources:Generic,NoResults %>" ShowHeader="false" EditMode="Batch" AllowPaging="false" HierarchyLoadMode="Client">
<ItemStyle Height="30px" HorizontalAlign="Center" />
<AlternatingItemStyle Height="30px" />
<BatchEditingSettings EditType="Cell" />
<CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />
<Columns>
<telerik:GridBoundColumn DataField="Account.AccountID" HeaderText="" Display="false" />
<telerik:GridBoundColumn DataField="Account.AccountNumber" ReadOnly="true" HeaderText="" />...........
<telerik:GridBoundColumn HeaderText="<%$ Resources:Generic,Total %>" UniqueName="Total"
DataField="<%$ Resources:Generic,Total %>" HeaderStyle-Width="3%" ItemStyle-Width="3%">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn HeaderText="Locations" UniqueName="Source" DataField="<%$ Resources:Generic,Source %>" HeaderStyle-Width="10%" ItemStyle-Width="10%" ItemStyle-Font-Bold="true">
</Columns>
</MasterTableView>
</telerik:RadGrid>
.vb
Protected Sub radDataEntry_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles radDataEntry.BatchEditCommand
Dim newValues As Hashtable
Dim oldValues As Hashtable
For Each command As GridBatchEditingCommand In e.Commands
If (command.Type = GridBatchEditingCommandType.Update) Then
newValues = command.NewValues
oldValues = command.OldValues
' Dim ID As String = newValues("ID").ToString()
End If
Next
End Sub
Here i am getting e.Commands count as 0 when trying to read the detail grid edited cell values., I have attached a screenshot where i am able to read the 8888 value which is bind to master grid and not able to read the 9999 value which is bind to the detail grid.
Please let me know to read the detail grid cell values
Thanks
Ramesh
Hi Team,
I am developing Gantt chart using RadChart control. Can you please tell me how to mark weekends(sat, sun) in different color.
series.Type = ChartSeriesType.Gantt;
series.Appearance.LabelAppearance.Visible = false;
series.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;
series.DataYColumn = "FromDate";
series.DataYColumn2 = "ToDate";
series.DataLabelsColumn = "Event";
Thanks,
Suresh.
i want to Show a .png icon in place of RadAsycUpload control
how i can set height using css ?
div.RadUpload_Default .ruBrowse, div.RadUpload_Default .ruBrowse .ruButtonHover, .ruButton.ruButtonFocus
{
background-image
:
url
(
'../Images/Document-icon.png'
)
!important
;
background-repeat
:
no-repeat
;
background-position
:
0
-5px
!important
;
width
:
122px
!important
;
background-
size
:
32px
32px
;
height
:
132px
!important
;
width
:
32px
!important
;
}
div.RadUpload_Default .ruFakeInput{
display
:
none
;
}
div.RadUpload_Default.ruFileInput
{
display
:
none
;
}
<
telerik:RadAsyncUpload
runat
=
"server"
DisablePlugins
=
"true"
EnableInlineProgress
=
"false"
ID
=
"AsyncUpload1"
OnClientFileUploaded
=
"OnClientFilesUploaded"
<br> UploadedFilesRendering="BelowFileInput" MultipleFileSelection="Automatic" InputSize="20"><
br
> <
Localization
Select
=
""
/><
br
> </
telerik:RadAsyncUpload
>
Hi
We have an OLAP cube we want to view with the PivotGrid in an ASP.NET website.
We need to allow different users only to view their own data from the cube with some kind of pre-filter or sub query.
Any help to achieve this would be appreciated.
Thanks in advance
Richard
http://www.baumrucker.com/ver5
Server Error in '/ver5' Application.Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +736
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +284
System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521
[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931916
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248
I'm having troubles with the RadEditor which I am using on my ASP.NET site. I'm trying to use the EmptyMessage feature to tell the user that this field is optional by displaying a "Optional" watermark. Here is what I have:
<
telerik:RadEditor
EditModes
=
"Design"
SpellCheckSettings-DictionaryPath
=
"./RadSpell"
ID
=
"optionalEditorField"
runat
=
"server"
Height
=
"150px"
ToolbarMode
=
"ShowOnFocus"
EmptyMessage
=
"Optional"
>
<
Tools
>
<
telerik:EditorToolGroup
>
...
The above code is not displaying the "Optional" watermark. I use similar settings for Telerik text editors and those watermarks work fine. Would anyone know what I might be doing wrong?
I have a slightly older telerik version, I think 2012 or so.