

| <telerik:RadGrid ID="rdgSelektionResult" ShowGroupPanel="true" AllowPaging="True" |
| Height="480px" Width="100%" AllowSorting="True" runat="server" PageSize="10" |
| AllowFilteringByColumn="false" AllowMultiRowSelection="False" EnableLinqExpressions="false" |
| GridLines="None" ShowStatusBar="true" OnPageIndexChanged="rdgSelektionResult_PageIndexChanged" |
| OnSortCommand="rdgSelektionResult_SortCommand" OnNeedDataSource="rdgSelektionResult_NeedDataSource" |
| OnColumnCreated="rdgSelektionResult_ColumnCreated"> |
| <clientsettings allowexpandcollapse="false" allowcolumnhide="true" allowcolumnsreorder="true" |
| allowdragtogroup="true" allowgroupexpandcollapse="true" allowkeyboardnavigation="true"> |
| <Scrolling UseStaticHeaders="true" AllowScroll="true" SaveScrollPosition="true" /> |
| </clientsettings> |
| <groupingsettings showungroupbutton="true" /> |
| <pagerstyle mode="NextPrevNumericAndAdvanced"></pagerstyle> |
| <MasterTableView DataKeyNames="RowKey" EnableHeaderContextMenu="true" AllowMultiColumnSorting="true" |
| ShowGroupFooter="true" TableLayout="auto"> |
| <ItemStyle Width="100" /> |
| <HeaderStyle Width="100" /> |
| <AlternatingItemStyle Width="100" /> |
| </MasterTableView> |
| </telerik:RadGrid> |
| public void ConfigureExport() |
| { |
| rdgSelektionResult.ExportSettings.ExportOnlyData = true; |
| rdgSelektionResult.ExportSettings.IgnorePaging = true; |
| rdgSelektionResult.ExportSettings.OpenInNewWindow = true; |
| rdgSelektionResult.ExportSettings.FileName = "Selektion_" + DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second + "_" + base.Page.User.Identity.Name; |
| } |
| void HeaderControl_OnExportClick() |
| { |
| if (!string.IsNullOrEmpty(base.Request_CurrentRowKey)) |
| { |
| rdgSelektionResult.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Html; |
| ConfigureExport(); |
| base.Page.ApplyView(rdgSelektionResult, base.Page.CurrentListe.DefaultView, false, false, false,true); |
| rdgSelektionResult.MasterTableView.ExportToExcel(); |
| } |
| } |
| protected void rdgSelektionResult_ColumnCreated(object sender, GridColumnCreatedEventArgs e) |
| { |
| if (e.Column is GridBoundColumn) |
| { |
| GridBoundColumn column = (GridBoundColumn)e.Column; |
| if (column != null) |
| { |
| if (column.DataType == typeof(Guid)) |
| column.Display = false; |
| if (column.UniqueName == "Land" || column.UniqueName == "ColumnLand") |
| { |
| column.HeaderText = Properties.Resources.Alle_Land; |
| } |
| else if (column.UniqueName == "Sender" || column.UniqueName == "ColumnSender") |
| { |
| column.HeaderText = Properties.Resources.Alle_Sender; |
| } |
| else if (column.UniqueName == "Sendung" || column.UniqueName == "ColumnSendung") |
| { |
| column.HeaderText = Properties.Resources.Alle_Sendung; |
| } |
| else if (column.UniqueName == "Datum" || column.UniqueName == "ColumnDatum") |
| { |
| column.HeaderText = Properties.Resources.Alle_Datum; |
| column.DataFormatString = "{0:dd.MM.yy}"; |
| } |
| else if (column.UniqueName == "dtmStart" || column.UniqueName == "ColumndtmStart") |
| { |
| column.HeaderText = "Zeit"; |
| column.DataFormatString = "{0:HH:mm}"; |
| } |
| else if (column.UniqueName == "SendungsArt" || column.UniqueName == "ColumnSendungsart") |
| { |
| column.HeaderText = Properties.Resources.Alle_Sendungsart; |
| } |
| //else if (column.UniqueName == "RW Sendung (Zielgruppe Standard)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "MA Sendung (Zielgruppe: Standard)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "RW (Beitrag) (Zielgruppe Standard)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "MA Beitrag (Zielgruppe: Standard)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Bemerkung") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Wettbewerb") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "WettbewerbOffizname") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "WettbewerbOrt") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "Wettbewerbsbeginn" || column.UniqueName == "ColumnWettbewerbsbeginn") |
| { |
| column.DataFormatString = "{0:dd.MM.yy}"; |
| } |
| else if (column.UniqueName == "Wettbewerbsende" || column.UniqueName == "ColumnWettbewerbsende") |
| { |
| column.DataFormatString = "{0:dd.MM.yy}"; |
| } |
| //else if (column.UniqueName == "Anlass") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Ereignis") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Sportart") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "SportartAnhang") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Disziplin") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "Ereignisbeginn" || column.UniqueName == "ColumnEreignisbeginn") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:dd.MM.yy}"; |
| } |
| else if (column.UniqueName == "Ereignisende" || column.UniqueName == "ColumnEreignisende") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:dd.MM.yy}"; |
| } |
| //else if (column.UniqueName == "EreignisGeschlecht") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "EreignisOrt") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Paarung") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Team 1") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Team 2") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "S-Dauer" || column.UniqueName == "ColumnS-Dauer") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm:ss}"; |
| } |
| else if (column.UniqueName == "W-Dauer" || column.UniqueName == "ColumnW-Dauer") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm:ss}"; |
| } |
| //else if (column.UniqueName == "Beitragsart") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "Beitragsbeginn" || column.UniqueName == "ColumnBeitragsbeginn") |
| { |
| // column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm}"; |
| } |
| else if (column.UniqueName == "BeitragsEnde" || column.UniqueName == "ColumnBeitragsEnde") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm}"; |
| } |
| //else if (column.UniqueName == "Beitragart") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Beitrag.Bemerkung") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Live") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "E-Index (SD)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Sponsor") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Werbebotschaft") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Werbemittel") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "UnterWerbemittel") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "Klar" || column.UniqueName == "ColumnKlar") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm:ss}"; |
| } |
| //else if (column.UniqueName == "seq_klar") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| else if (column.UniqueName == "Assoz" || column.UniqueName == "ColumnAssoz") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm:ss}"; |
| } |
| else if (column.UniqueName == "Werbedauer" || column.UniqueName == "ColumnWerbedauer") |
| { |
| //column.HeaderText = ""; |
| column.DataFormatString = "{0:HH:mm:ss}"; |
| } |
| //else if (column.UniqueName == "seq_assoz") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "seq") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Werbewert") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "Werbepreis") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "S-Index (SD)") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| //else if (column.UniqueName == "TKP") |
| //{ |
| // column.HeaderText = ""; |
| // column.DataFormatString = ""; |
| //} |
| } |
| } |
| } |

hey guys,
i have gone through many articles suggesting many solutions, the best one which worked for me on the development enviroment but not on the production is to replace the RadScripManager with the ScriptManager, no script errors appeared any longer but this runied other parts in the content paga, by the way i HAVE A ONE Master page and i put the scriptManager there,
what is ruined from remioving the RadScript and putting the scriptManger:
I have got some many script errors like:
1) Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered
The solution suggested by some people:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="Telerik.Web.UI.Common.Core.js" Assembly="Telerik.Web.UI" />
<asp:ScriptReference Name="Telerik.Web.UI.Upload.RadUpload.js" Assembly="Telerik.Web.UI" />
</Scripts>
</asp:ScriptManager>
2) Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=jJZh4CK_PGSYJ-f57lEgQFzI3N0cQpNuzrmEgrdYC37pG2G4CbZ9dT8joZiZnlVO0&t=633927569740000000' failed to load.
The solution suggested by some people:
// fixing Error: Sys.ScriptLoadFailedException: The script <url for script> could not be loaded.
if( Sys && Sys.Application )
{
Sys.Application.notifyScriptLoaded();
}
if( typeof(Sys) != "undefined" && typeof(Sys.Application) != "undefined" )
{
Sys.Application.notifyScriptLoaded();
}
3) Sys.InvalidOperationExceptionSys.InvalidOperationException: A control is already registered with the element.
The solution suggested by some people:
Use RadScriptManager instead of scriptManager, and this solves the problem, but it keeps showing “sys is undefined” on login page, how can I fix all of these errors without ruining anything.
the weird thing that when i put back the radscriptmanager, i didn''t get the third error, but it still keeps getting "sys is undefined" on the login page, some people said that is due to authorization, i tried what they recommended but nothing is worked for me..
regardign the web.config, it is configured very well, i reviewd every single line ( handlers, modules ... )..
actually i didn't give up figuring out the problem but it is very kind of you of you give your hand in this.
all the best,
hanan
Good morning
I’m trying to create a custom skin for a combobox but the default skin for the combobox in my installed files doesn’t contain the images listed in your tutorial:
default.gif
rcbArrowcell.gif
rcbMoreresults.gif
It only contains the following 3 attached files:
rcbsprite.png
rcbspriteIE6.png
defult.gif
Where can I find the listed files asI urgently need t customise the defulat skin and these files seem incrediblt difficult to customise.
Your help will be greatly appreciated!
Danielle