Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views

     Hello,  I am brand new to this forum as of today and I do not know where I should post my questions!  I will be asking more for radgrid help and I did not see a specific discussion folder for that... Mind you I am also a new programmer so I really couldn't recognize what some of the topics were for as well...

 

~Derek

Doncho
Telerik team
 answered on 11 Nov 2020
1 answer
124 views

Hi,

Using the sample code below found in the docs, the event doesn't fire when Enter is pressed. Tab-ing or clicking off the combo box does cause the event to fire.  Seems to be a bug.?

Dave

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Test" %>
 
<!DOCTYPE html>
 
<head id="head1" runat="server">
    <title></title>
</head>
 
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManagerProxy1" runat="server" />
 
        <script type="text/javascript">
            function OnClientTextChange(sender, eventArgs) {
                alert("You typed " + sender.get_text());
            }
        </script>
 
        <telerik:radcombobox
            id="RadComboBox1"
            runat="server"
            allowcustomtext="true"
            onclienttextchange="OnClientTextChange"
        </telerik:radcombobox>
 
    </form>
</body>
</html>
Vessy
Telerik team
 answered on 09 Nov 2020
3 answers
2.6K+ views
I'm working with RadMultiPage, this code was working but suddenly I got this error:
Could you help me please?

No se puede cargar el archivo o ensamblado 'Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)

Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: System.IO.FileLoadException: No se puede cargar el archivo o ensamblado 'Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)

Error de código fuente:

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

Rastro al cargar el ensamblado: La información siguiente puede ser útil para determinar porqué no se cargó el ensamblado 'Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4'.

AVS: El registro del enlace de ensamblado está desactivado.
Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: existe una disminución del rendimiento asociada registro de errores del enlace de ensamblado.
Para desactivar esta característica, elimine el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog].

Seguimiento de la pila:

[FileLoadException: No se puede cargar el archivo o ensamblado 'Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)]
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName) +50
   Telerik.Web.UI.WebResource.Exists(HttpContext context, String path, String applicationPath) +904
   Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Información de versión: Versión de Microsoft .NET Framework:2.0.50727.3607; Versión ASP.NET:2.0.50727.3614
Vessy
Telerik team
 answered on 06 Nov 2020
1 answer
381 views

In Radgrid, I use RadComboBox to filter the contents of a column in the code behind as the DataSourceId of RadComboBox needs to be set programmatically based on the user's selection.  The filter works Ok and the SelectedIndexChanged fires an event in the code behind. However, when I select the first item, which I included in the markup to clear out the filter, an event does not fire and I cannot clear out the filter.

The item, which I include in the markup, looks like the following:

<Items>
        <telerik:RadComboBox Text="" Value="" />
</Items>

Any help will be appreciated.

Attila Antal
Telerik team
 answered on 06 Nov 2020
11 answers
1.5K+ views
Hi

I have a grid set up with AllowMutltiRowSelection = "True", a GridClientSelectColumn and the following ClientSettings

<ClientSettings>

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

</ClientSettings>

Selection is working fine.

What I would like to be able to do is, in the ItemDataBound event for the grid, disable the selection of one or more of the bound rows depending on certain conditions (e.g. a control has a paticular value).

I can use e.item.enabled = false but this doesn't stop the selection of the row by either clicking on the row or checking the GridClientSelectColumn's select all checkbox in the grid header.

Can anyone suggest how this can be acheived other than using server-side selection?

Perhaps the grid is lacking a GridDataItem.AllowSelection property that could be checked client side?

Thanks

Andy

Using:
.NET 3.5
WinXP SP2
IE 7.0
RadControls for ASP.NET AJAX Q1 2008
VB.NET
Doncho
Telerik team
 answered on 05 Nov 2020
1 answer
325 views

I run into a scenario where controls in an EditForm loses their values when performing a postback, after recently cancelling an event.

 

For example:

1. Add new item (perform InitInsert), or edit existing item (perform Edit)

2. Make changes to control values

3. If adding, perform PerformInsert command, otherwise Update command

4. I have logic that would cancel the event (whether on ItemCommand or PerformInsert level) based on some values

5. Event cancelled, fire NeedDataSource in the background by default

6. On the EditForm, perform any postback (via cancel or attempt an insert/update again)

7. The control values within the EditForm lose their value

 

I thought if I cancelled on the ItemCommand level, the control values would persist, but this was not the case.

 

Any ideas on what I could do?

Attila Antal
Telerik team
 answered on 04 Nov 2020
10 answers
607 views
I'm currently evaluating RadGrid (Q2 2008) and I'm finding that the column resizing behavior doesn't seem to work properly when I attempt to use the following settings:
  • AllowScroll = true
  • UseStaticHeaders = true (works properly if set to false)
  • AllowResize = true
  • EnableRealTimeResize = true (still breaks if false is set, just not as obvious)
When UseStaticHeaders is set, the column resize action seems to change the column width to a value that is exponentially greater than the user's click-and-drag operation would suggest. Also, attempting to shrink the width of a column actually makes that column wider. If UseStaticHeaders is set to false, the grid behaves as expected.

Is anyone else experiencing this problem? Is this a defect in the product or a defect in my implementation?

-K

Attila Antal
Telerik team
 answered on 04 Nov 2020
9 answers
1.6K+ views

Hi,

I have pdf files stored as a blob in sql database.  Is it possible to load them to PdfViewer? I found this example but it's for MVC.  Do you have an example for webform?

 

 

Thank you,

Helen

 

 

 

Rumen
Telerik team
 answered on 04 Nov 2020
1 answer
97 views
hello. the recurrence exception generated from scheduler is in the format 20201028T053000Z. how can i parse it to datetime in c#?
Vessy
Telerik team
 answered on 03 Nov 2020
4 answers
105 views

I have a RadEditor control on a page with several lines of notes. All lines appear on the page, but when the page is printed some lines are cutoff at the bottom. Are there any RadEditor or CSS settings that will resolve this?

<telerik:RadEditor
    ID="reNotes" runat="server"
    EditModes="Preview" ContentAreaMode="Div" NewLineMode="P"
    ToolsFile="~/App_Data/RadEditor/Tools.xml" ToolbarMode="ShowOnFocus"
    AutoResizeHeight="true" Height="100%" Width="100%"
    Content='<%# Bind("Notes") %>' ContentFilters="RemoveScripts,StripCssExpressions,StripDomEventAttributes"
    OnClientLoad="RadEditorOnClientLoad">
</telerik:RadEditor>
Rumen
Telerik team
 answered on 03 Nov 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?