Dim window1 As New Telerik.Web.UI.RadWindow |
window1.Modal = True |
window1.Title = "Assign Team" |
window1.VisibleTitlebar = True |
window1.Width = 500 |
window1.Height = 500 |
window1.DestroyOnClose = True |
window1.NavigateUrl = "~/assign_team_mod.aspx" |
windowmanager.Windows.Add(window1) |
window1.VisibleOnPageLoad = True |
sys.webforms.pagerequestmanagerservererrorexception: failed to load viewstate. the control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. for example when adding the controls dynamically, the controls added during the post-back must match the type and position of the controls added during the initial reques |
My users need to copy and paste a link to their file that we would like to use fileexplorer to manage.
Is there an event where this could be shown perhaps outside of the control , or in the path bar?
Example:
Path bar currently shows user "/MyFiles/" when "My Picture.jpg" is selected
I would like to show "https://www.foo.com/abx345/MyFiles/My%20Picture.jpg" somewhere on the page. It doesn't matter if it is inside the control or outside.
Thanks.
I've been working with an application using a fairly old version of Telerik (2012.3.1205.40 , looks like) and I've been looking for a way to modify the style of the column headers in exported Excel files made from a RadGrid. I've tried to attack this a number of ways, but the ExportCellFormatting event and related don't seem to cover the column headers, and attempting to manipulate the HeaderStyle of the RadGrid/the MasterTableView has also had no effect on how the exported column headers look. I've had no problems styling the actual data fields, just the headers. I'm sure I'm missing something very obvious to do this, but haven't found anything clear to point me at it in various searches online and looking through documentation/the API.
The function firing off the export is straightforward:
protected void lnkExportExcel_Click(object sender, EventArgs e)
{
radgridResult.ExportSettings.ExportOnlyData = true;
radgridResult.ExportSettings.OpenInNewWindow = true;
radgridResult.ExportSettings.IgnorePaging = true;
...
radgridResult.MasterTableView.ExportToExcel();
}
The omitted piece is just some wrangling of the exported file's name and shouldn't matter.
TIA!When doing a copy / paste of numeric values from excel to RadSpreadsheet initial zero values are lost. So, when I copy for example value 07657656 it gets pasted as 7657656.
Is there any workaround this behavior?
In our application we use a RadEditor with
this.EditModes = EditModes.All
and
this.NewLineMode = EditorNewLineModes.P
so that the user can write text that is then translated into a paragraph html element.
We also use this code for formatting options
this
.StripFormattingOptions = EditorStripFormattingOptions.MSWordRemoveAll
| EditorStripFormattingOptions.ConvertWordLists
| EditorStripFormattingOptions.Span;
The Problem: For some reason our RadEditor is allowing the user to backspace so far that the <p> element for the NewLineMode actually gets deleted and removed, and the following text that is entered by the user is no longer translated into the paragraph html we need from the html mode. Does anyone know why this might be happening to the RadEditor? Perhaps we have some scripts/styles that are crossing the functionality but I have done a pretty thorough read through and figured it would be worth asking to see if anyone has an idea off the top of their head.
Any help is much appreciated and thank you.
Dave
Is there any way to get current rows from RadGrid on Server side, because I want to call some method end set some of the fields only for currently showed rows. I'm using OnNeedDataSource and i have grouping and sorting in my RadGrid.
For better understanding here is example:
I have 1000 elements in database and i want my method to apply only on items that i'm showing (10/20/50) one current page of paggination.
<div class="demo-container no-bg">
<telerik:RadGrid runat="server"
ID="OrdiniDashboard_Grid"
OnNeedDataSource="OnNeedDataSource_OrdiniDashboard"
RenderMode="Lightweight"
PageSize="10"
AllowSorting="True"
AllowMultiRowSelection="True"
AllowPaging="True"
ShowGroupPanel="True"
AutoGenerateColumns="False"
OnPreRender="GridOrdDashboard_PreRender"
OnItemCreated = "OnItemCreated">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" Position="Bottom"></PagerStyle>
<MasterTableView
Width="100%"
GroupLoadMode="Client"
ShowGroupFooter="true"
ClientDataKeyNames="IdOrder, IdCliente,TipologiaCliente,RagSoc,NomeU,CognomeU,Confirm,PriorityId,PriorityCompleteName,FlagPagamento,StatoPagamento, OrdineEsportato, OrdineEsportatoName, totaleImporto,totaleValue">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField
FieldAlias="DataScadenza"
FieldName="DataScadenza"
HeaderText="<%$ Resources: Doc_Labels, dataScadenza %>"
FormatString="{0:dd/MM/yyyy}"
HeaderValueSeparator="from date: "></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField
FieldName="DataScadenza"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField
FieldAlias="StatoOrdineValue"
FieldName="StatoOrdineValue"
HeaderText="Stato"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField
FieldName="StatoOrdineValue"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<Columns>
<telerik:GridBoundColumn
AutoPostBackOnFilter="false"
DataField="IdOrder"
DataType="System.Int32"
UniqueName="IdOrder"
Display="false"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
AutoPostBackOnFilter="false"
DataField="IdCliente"
DataType="System.Int32"
UniqueName="IdCliente"
Display="false"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
AutoPostBackOnFilter="false"
SortExpression="NumeroOrdine"
Groupable="false"
HeaderText=" <%$ Resources: Doc_Labels, numero %>"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
DataField="NumeroOrdine"
Display="true"
Aggregate="Count"
FooterAggregateFormatString="Ordini totali: {0}"
UniqueName="NumeroOrdine">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AutoPostBackOnFilter="false"
SortExpression="JobName"
Groupable="false"
DataField="JobName"
Display="true"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText=" <%$ Resources: Doc_Labels, jobName %>">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn
AutoPostBackOnFilter="false"
SortExpression="Cliente"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
UniqueName="Cliente"
DataField="Cliente"
GroupByExpression="Cliente Group By Cliente"
Groupable="true"
HeaderText=" <%$ Resources: Doc_Labels, cliente %>">
<ItemTemplate>
<a href="../../../Views/settings/Clienti/Gestione_Cliente.aspx?idCliente="></a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn
UniqueName="DataOrdine"
AutoPostBackOnFilter="false"
SortExpression="DataOrdine"
HeaderText=" <%$ Resources: Doc_Labels, dataEmissione %>"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderButtonType="TextButton"
DataField="DataOrdine"
GroupByExpression="DataOrdine Group By DataOrdine"
Groupable="true"
DataFormatString="{0:dd/MM/yyyy}"
Display="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
AutoPostBackOnFilter="false"
SortExpression="DataScadenza"
HeaderText=" <%$ Resources: Doc_Labels, dataScadenza %>"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderButtonType="TextButton"
DataField="DataScadenza"
DataFormatString="{0:dd/MM/yyyy}"
Display="true">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn
AutoPostBackOnFilter="false"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
UniqueName="Confirm"
SortExpression="StatoOrdineValue"
HeaderButtonType="TextButton"
GroupByExpression="StatoOrdineValue Group By StatoOrdineValue"
HeaderText=" <%$ Resources: Doc_Labels, stato %>"
DataField="StatoOrdineValue"
DataType="System.String">
<ItemTemplate>
<div></div>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn
UniqueName="Priority"
HeaderText="Priority"
SortExpression="PriorityCompleteName"
DataType="System.String"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
DataField="PriorityCompleteName"
GroupByExpression="PriorityCompleteName Group By PriorityCompleteName">
<ItemTemplate>
<span class="label label-sm circle popovers infoPopOver"
style="color: white; background-color: rgb(132, 151, 152);"
data-placement="top"
data-trigger="hover"></span>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn
UniqueName="StatoDocumentoFattura"
DataField="StatoDocumentoFattura"
SortExpression="StatoDocumentoFattura"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText=" <%$ Resources: Doc_Labels, gestioneStatoDocumento %>"
GroupByExpression="StatoDocumentoFattura Group By StatoDocumentoFattura">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn
UniqueName="StatoPagamento"
SortExpression="StatoPagamento"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText="<%$ Resources:Doc_Labels, statoPagamento %>"
HeaderStyle-HorizontalAlign="Center"
GroupByExpression="StatoPagamento Group By StatoPagamento"
DataField="StatoPagamento">
<ItemTemplate>
<i class="fa fa-euro popovers"
data-placement="top"
data-trigger="hover"
style="width: 100%"></i>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn
UniqueName="TipoPagamento"
DataField="TipoPagamento"
SortExpression="TipoPagamento"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText=" <%$ Resources: Doc_Labels, tipoPagamento %>"
GroupByExpression="TipoPagamento Group By TipoPagamento">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn
UniqueName="OrdineEsportato"
DataField="OrdineEsportato"
SortExpression="OrdineEsportato"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText=" <%$ Resources: Doc_Labels, esportato %>"
GroupByExpression="OrdineEsportatoName Group By OrdineEsportatoName">
<ItemTemplate>
<i class=" fa fa-check-circle popovers infoPopOver"
data-placement="top"
data-trigger="hover"
style="width: 2%"></i>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn
UniqueName="DataEsportazioneOrdine"
DataField="DataEsportazioneOrdine"
SortExpression="DataEsportazioneOrdine"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText="Data Esportazione Ordine"
DataFormatString="{0:dd/MM/yyyy}"
GroupByExpression="DataEsportazioneOrdine Group By DataEsportazioneOrdine">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
UniqueName="Autore"
DataField="Autore"
SortExpression="Autore"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
HeaderText=" <%$ Resources: Doc_Labels, autore %>"
GroupByExpression="Autore Group By Autore">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn
AutoPostBackOnFilter="false"
DataType="System.Decimal"
UniqueName="totaleImporto"
Display="true"
Aggregate="Sum"
FooterAggregateFormatString="Imponibile: {0:C}"
HeaderText="<%$ Resources: Doc_Labels, imponibile %>"
DataField="totaleImporto"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
Groupable="false">
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn
AutoPostBackOnFilter="false"
DataType="System.Decimal"
UniqueName="totaleValue"
Display="true"
Aggregate="Sum"
FooterAggregateFormatString="Totali: {0:C}"
HeaderText="<%$ Resources: Doc_Labels, totali %>"
DataField="totaleValue"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center"
Groupable="false">
<ItemTemplate>
<div>
</div>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings
ReorderColumnsOnClient="True"
AllowDragToGroup="True"
AllowColumnsReorder="True">
<ClientEvents
OnGroupExpanded="OrdDashboard_OnGroupExpandedCollapse"
OnGroupCollapsed="OrdDashboard_OnGroupExpandedCollapse"
OnRowCreated="OnRowDataBoundOrdini"
OnCommand="OnCommadFunction"></ClientEvents>
<Selecting AllowRowSelect="True" />
<Resizing
AllowRowResize="False"
AllowColumnResize="False"
EnableRealTimeResize="False"
ResizeGridOnColumnResize="False"></Resizing>
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true" RetainGroupFootersVisibility="false" />
</telerik:RadGrid>
</div>
public ResultData GetOrdiniListForDashboard(string filterExpression)