Hi, i'm using a RadTreeViewContextMenu, the problem in RadMenu,When I select an option and this option open a popup, when close the popup the RadMenu disappears
aspx:
<div class="row">
<asp:Repeater ID="dtlProcesosValor" runat="server">
<ItemTemplate>
<div class="col-md-4">
<asp:HiddenField ID="IdProceso" runat="server" Value='<%# Eval("IdProceso") %>' />
<telerik:RadTreeView ID="rtvProcesos" runat="server" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" LoadingMessage="<%$ Resources:MensajeCargando %>" DataFieldID="idproceso" DataFieldParentID="procesoantecesor" DataTextField="nombre" DataValueField="idproceso">
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="Editar" Text="Editar" runat="server" PostBack="true" Visible='<%#TienePermisoEdicion() %>'></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Eliminar" Text="Eliminar" runat="server" PostBack="true" Visible='<%#TienePermisoEliminacion() %>'></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Detalle" Text="Detalle" runat="server" PostBack="true" Visible='<%#TienePermisoConsulta() %>'></telerik:RadMenuItem>
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
<Nodes>
<telerik:RadTreeNode>
<NodeTemplate>
<%# DataBinder.Eval(Container, "Text")%>
</NodeTemplate>
</telerik:RadTreeNode>
</Nodes>
</telerik:RadTreeView>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
CodeBehind:
switch (e.MenuItem.Value)
{
case "Editar":
{
Response.Redirect("EdicionProcesos.aspx?Operacion=Buscar&Proceso=" + id);
break;
}
case "Detalle":
{
Hashtable parametros = new Hashtable();
parametros[DetalleProceso.PROCESO] = procesoSeleccionado;
Master.AbrirPopupRadWindow(this.Page, "~/Proceso/DetalleProceso.aspx", string.Empty, Comunes.AnchoPopups, Comunes.AltoPopups, parametros);
break;
}
case "Eliminar":
{
this.ProcesoBorrar = this.ProcesoController.BuscarProceso(procesoSeleccionado);
this.MensajeBorradoLogicoFisico.btnBorradoLogico.Enabled = this.ProcesoBorrar.Activo.HasValue && this.ProcesoBorrar.Activo.Value;
this.MensajeBorradoLogicoFisico.MostrarMensaje(this.GetLocalResourceObject("msjConfirmarEliminar") != null ? this.GetLocalResourceObject("msjConfirmarEliminar").ToString() : "");
break;
}
What kind of value can I set for the Telerik.AsyncUpload.ConfigurationEncryptionKey. Is it a random string? If yes how long it should be.
HI,
I have added a Radwindow to my aspx page as below.
<telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="false"
Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" >
My AutoSize attribute is false. Inside my "RadWindowAddOthers_Show" method i am resetting few textboxes.
I am using ie11 in Ie9 mode.
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<html class="t-ie t-ie9 _Telerik_IE9">
The above renders as below:
<div class="RadWindow RadWindow_Default rwNormalWindow rwTransparentWindow" id="RadWindowWrapper_ctl00_MainPageContentPlaceHolder_rdWin" style="top:770px;left: 433px; width: 500px; height: 300px; visibility: visible; position: absolute; z-index: 3002; transform: none;" unselectable="on"><table class="rwTable" style="height: 300px;" cellSpacing="0" cellPadding="0">
The top and left attributes are not as per the given values.
Also in the content template i have a div as follows which encloses all the content:
<div class="RadGrid RadGrid_Default" style="width: 500px;">
As an attempt to fix i have modified it to the following to make sure my content height is calculated properly:
<telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="true"
Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" OnClientAutoSizeEnd="OnClientAutoSizeEnd">
function OnClientAutoSizeEnd(sender) {
if ($telerik.isIE9) {
setTimeout(function () {
sender.set_height(sender.get_height());
}, 0);
}
}
I see that the radwindow is still positioned wrongly(i mean the top and left attributes are wrong). Can anyone suggest a fix to this issue?
All my telerik controls are not working when deploy to server.
the screenshot 1.jpg shows the telerik control that I deploy on Live, the screenshot 2.jpg shows the telerik control that is my development laptop and it working perfectly.
Question
Kindly help me if I need to register the dll link in the server?
Thanks in advance
Telerik Team,
We are using ASP.NET Telerik RadTextBox controls in our application. Lets say I entered some text of 10 characters long and click on search button.
After the page postbacks(ajax postabck) we are seeing the search text entered in the textbox getting trimmed off from the right side.
This is only happening in if I enable Enterprise Mode internet explorer Version 11. By going into Tools > Enterprise Mode
Any help would be really appreciated.
Thanks,
Nishith Ghoshal
Hi,
I don't have really problem, my code work fine but I have got some questions about SaveImageOnServer of RadImageEditor.
First question:
What is the protocol used to save the picture on the server used by SaveImageOnServer ?
Second question:
What about the transferring security? I must do something to secure transfert or telerik takes charge of the security?
Thanks to spend time for me :)
Hi Folks,
I having an issue when i set some rows ClientSelectColumn checkboxes to checked server side, but when i access them client side in the RowCreated event I get the wrong answer.
function
RowCreated(sender, args) {
var
ID = args.getDataKeyValue(
"InstrumentID"
);
if
(selected[ID]) {
args.get_gridDataItem().set_selected(
true
);
ExpandGroups(args);
}
if
(args.get_gridDataItem().get_selected()) { //Always False!
RowSelected(sender, args);
}
else
RowDeselected(sender, args);
}
The Server side is setting the checkbox like:
//load the Grid
foreach (GridDataItem gdi in _GrdFunds.MasterTableView.Items)
{
if (gdi["selectColumn"] != null)
{
CheckBox gdiCheckbox = (CheckBox)gdi["selectColumn"].Controls[0];
if (isInstrumentSaved(gdi["InstrumentId"].Text, report))
{
gdiCheckbox.Checked = true;
gdi.Selected = true;
}
else
{
gdiCheckbox.Checked = false;
gdi.Selected = false;
}
}
}
And Grid is defined as:
<telerik:RadGrid ID="_GrdFunds"
runat="server"
AllowMultiRowSelection="True"
AllowFilteringByColumn="True"
CellSpacing="0"
GridLines="None"
ShowGroupPanel="True"
Skin="Metro"
DataSourceID="FundsList"
Style="margin-top: 5px;"
OnColumnCreated="_GrdFunds_ColumnCreated"
OnItemCreated="_GrdFunds_ItemCreated"
OnItemDataBound="_GrdFunds_ItemDataBound"
OnGroupsChanging="_GrdFunds_GroupsChanging" AllowSorting="True" Font-Size="X-Small" Height="100%">
<GroupingSettings CaseSensitive="False" ShowUnGroupButton="True" />
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
<Selecting AllowRowSelect="True"></Selecting>
<Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowResizeToFit="True" ShowRowIndicatorColumn="True"></Resizing>
<ClientEvents OnRowCreated="RowCreated" OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" OnGridCreated="GridCreated"
OnColumnCreated="_GrdFunds_OnColumnCreated" OnMasterTableViewCreated="_GrdFunds_OnMasterTableViewCreated" />
<Animation AllowColumnReorderAnimation="True" />
</ClientSettings>
<MasterTableView AutoGenerateColumns="True" ClientDataKeyNames="InstrumentID" DataKeyNames="InstrumentID" DataSourceID="FundsList" GroupLoadMode="Client" GroupsDefaultExpanded="False" TableLayout="Fixed">
<CommandItemSettings ExportToPdfText="Export to PDF" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="False">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridClientSelectColumn DataType="System.Boolean" Reorderable="False" Resizable="False" UniqueName="selectColumn">
<HeaderStyle Width="36px" />
<ItemStyle Width="36px" />
</telerik:GridClientSelectColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>