Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
129 views

25 Feb to 04 Mar 2026: highlights of the new online resources that we published last week.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/integration/jquery
Summary: Learn how to integrate jQuery with Telerik UI for ASP.NET AJAX controls: add jQuery via ScriptManager or RadScriptManager, use jQuery.noConflict to avoid naming collisions, and safely select control markup while working with client-side APIs via $find. You’ll also see how to reinitialize jQuery plugins and event handlers after partial-page updates (RadAjaxManager, RadAjaxPanel, UpdatePanel) using the ASP.NET AJAX pageLoad/Sys.Application.load pattern instead of relying solely on document.ready.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/grid-cascading-checklist-filtering
Summary: Implement cascading CheckList filtering in Telerik RadGrid for ASP.NET AJAX so each column’s filter items reflect the filters applied to other columns. Handle the FilterCheckListItemsRequested event to compute distinct values from the currently filtered data set (excluding the active column) using the grid’s FilterExpression, with sample approaches for in-memory DataTable filtering and database-backed queries.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/multiselect-preselecting-items-on-page-load
Summary: Learn how to preselect items in the ASP.NET AJAX RadMultiSelect on initial page load. You can set selected items server-side (e.g., mark items Selected=true or assign the selected values in code-behind), and for data-bound or remote data you can hook OnClientLoad/dataBound and call value([...]) on the underlying Kendo widget (or set_value([...]) on the wrapper) after the data is loaded. The article also notes timing and postback considerations so the tokens render reliably with load-on-demand or AJAX binding.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/common-include-external-jquery-prior-2026-q1
Summary: Learn how to make Telerik UI for ASP.NET AJAX (versions before 2026 Q1) use an external jQuery by loading your jQuery before RadScriptManager and preventing the suite’s embedded jQuery from being requested, so only one jQuery instance is present. The article covers registering the external file via RadScriptManager/ScriptManager, overriding the jQuery script reference, handling jQuery.noConflict, and version compatibility considerations.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/disable-drag-drop-radfileexplorer-asyncupload
Summary: Learn how to disable drag-and-drop in Telerik UI for ASP.NET AJAX by preventing file/folder moves in RadFileExplorer and turning off drag-and-drop upload in RadAsyncUpload. The article shows how to use control configuration and client-side JavaScript to cancel drag/drop events and hide drop zones, both for standalone RadAsyncUpload and when it’s embedded in the RadFileExplorer upload dialog.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/kb-security-insufficient-entropy-cve-2026-2878
Summary: This article documents CVE-2026-2878, an insufficient entropy (predictable randomness) vulnerability in Telerik UI for ASP.NET AJAX that can make certain security tokens predictable under specific configurations. It shows you how to assess exposure by checking your Telerik.Web.UI.dll version and relevant app settings, and how to remediate by upgrading to a fixed release, rotating any affected secrets, and applying temporary mitigations or disabling the impacted feature until patched.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/scriptmanager-easing-error-after-upgrade-2026-q1
Summary: Learn why upgrading to Telerik UI for ASP.NET AJAX 2026 Q1 can trigger a client-side “Easing is not defined” (or similar) error when pages use the ASP.NET ScriptManager, caused by a changed/relocated Easing script dependency. Fix it by switching to RadScriptManager or explicitly registering the required Easing script, ensuring the correct Telerik resources load (consider clearing CDN/browser cache and reviewing ScriptMode/CombineScripts settings).

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/grid-enabling-horizontal-scrollbar-for-detail-table
Summary: This article shows how to enable a horizontal scrollbar for a Telerik RadGrid (ASP.NET AJAX) detail table (GridTableView) in a hierarchical grid. It walks you through setting ClientSettings.Scrolling.AllowScroll and UseStaticHeaders, assigning explicit widths to the detail table and columns, and applying CSS to the detail table’s rgDataDiv (overflow-x: auto) so wide content scrolls instead of stretching the master row.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/changing-radradiobuttonlist-item-backcolor-dynamically
Summary: Learn how to dynamically change the background color of individual Telerik RadRadioButtonList items in ASP.NET AJAX using CSS plus per-item styling. The article shows how to assign a custom CssClass or inline style to items on the server (e.g., in PreRender or during data binding) and how to toggle classes on the client with JavaScript via the control’s client-side API and events (such as OnClientLoad or item click), so styles persist across postbacks and respect the skin. It also outlines which element to target in the rendered markup and provides example selectors for applying the background color correctly.

---------------------------------------------------------------------------------------------------------------------------------------------------------

09 Feb to 16 Feb 2026: highlights of the new online resources that we published last week.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/overview
Summary: Learn how to use the SmartPasteButton control in Telerik UI for ASP.NET AJAX to paste clipboard content into a specified input or contenteditable element with automatic cleanup (e.g., remove Word/Excel formatting or paste as plain text). The article shows how to add the control, configure cleanup behavior and the paste target, and handle client-side events and API to integrate paste workflows into your Web Forms pages.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/appearance
Summary: Use this article to configure the SmartPasteButton appearance in Telerik UI for ASP.NET AJAX: set the Skin, enable or disable embedded skins, choose the render mode, and adjust size, icon, text, and drop-down indicator. It documents the DOM/CSS structure and selectors for each visual state (default, hover, active, disabled) so you can safely override styles and build a custom theme for the SmartPasteButton.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/form-fields
Summary: This article explains how to configure SmartPasteButton FormFields in Telerik UI for ASP.NET AJAX so pasted text is parsed and mapped into specific form inputs. You define fields and bind them to controls (RadTextBox, RadNumericTextBox, RadDatePicker, drop-downs, or standard HTML inputs) via IDs/selectors, set metadata (name, label, type, required, hints/synonyms), and specify supported data types to ensure correct population. It also covers client/server configuration and events to validate, inspect, or customize the populated values.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/error-handling
Summary: This article shows you how to handle errors raised by the Telerik UI for ASP.NET AJAX SmartPasteButton, including detecting client-side paste failures and handling server-side exceptions. You’ll subscribe to error events, cancel problematic paste operations, and surface fallback messages/logging for scenarios like denied clipboard access or invalid/unsupported content.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/getting-started
Summary: Set up the SmartPasteButton control in a Telerik UI for ASP.NET AJAX Web Forms page by registering RadScriptManager, placing the control on the page, and configuring its core properties and target elements. You’ll wire up client-side events (and optional server-side handlers) to capture clipboard data and process the pasted content before applying it to your application’s inputs or other components.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/ai-service-integration
Summary: This article shows you how to integrate the ASP.NET AJAX RadSmartPasteButton with an AI provider by routing pasted content through your own server-side endpoint that calls OpenAI or Azure OpenAI and returns the transformed text. You’ll configure the control with the service URL and request options, map SmartPaste actions to prompts, and implement the backend to call a model, handle responses and errors, and keep API keys off the client.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/client-side-programming/enums
Summary: This article documents the client-side enumerations exposed by the ASP.NET AJAX SmartPasteButton (Telerik.Web.UI), including paste modes and status/result values, and lists their members. It shows how to reference these enums in JavaScript and use them in client-side event handlers to detect the selected paste option, branch logic, and handle errors without relying on magic strings. Use these enums to write maintainable code that controls and responds to SmartPasteButton behavior at runtime.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/server-side-programming/enums
Summary: This article documents the server-side enumeration types used by the Telerik UI for ASP.NET AJAX SmartPasteButton control. It lists each enum and its values and shows where they are used in properties and event arguments, so you can configure paste behavior, control available options, and implement clear code-behind logic in C# or VB.NET.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/client-side-programming/events
Summary: This article documents the SmartPasteButton client-side events in Telerik UI for ASP.NET AJAX, including the event sequence during a paste operation, handler signatures, event arguments, and how to subscribe/unsubscribe via JavaScript (add_*/remove_*) or declarative OnClient* properties. Use these hooks to intercept and validate clipboard input, inspect or transform parsed data, handle success and error cases, cancel the default behavior, and integrate the control with your application logic.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/smartpastebutton/client-side-programming/overview
Summary: This article outlines the SmartPasteButton client-side programming model in Telerik UI for ASP.NET AJAX: how to obtain the JavaScript client object, subscribe to client events, and use its methods and properties to control paste behavior at runtime. You’ll see concise patterns and code snippets for wiring event handlers and invoking the API from your page scripts to integrate the control with your application logic.

---------------------------------------------------------------------------------------------------------------------------------------------------------

02 Feb to 09 Feb 2026: highlights of the new online resources that we published last week.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/ai/troubleshooting
Summary: This guide helps you diagnose and fix issues when wiring Telerik UI for ASP.NET AJAX AI integration to OpenAI or Azure OpenAI. It covers common causes—invalid or missing API keys, incorrect base URL or api-version, using model names instead of Azure deployment names, 401/403/404/429 responses, TLS/firewall/CORS problems, and missing ScriptManager/resources—and shows how to verify web.config/code-behind settings, route calls through a server-side proxy, enable provider logging, and test requests independently. Use the checklists to validate payloads and model capabilities, handle timeouts and rate limits with retry/backoff, and confirm the controls are correctly initialized on the page.

---------------------------------------------------------------------------------------------------------------------------------------------------------

10 Nov to 17 Nov 2025: highlights of the new online resources that we published last week.

Summary: Learn how to collapse parent task nodes in Telerik RadGantt for ASP.NET AJAX using the JavaScript client-side API. You’ll see how to collapse all rows on initialization and programmatically toggle a task’s expanded state, so you can start with a compact Gantt and control the hierarchy on demand.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/autocompletebox-html-encoding-items
Summary: Learn how to control HTML encoding in the RadAutoCompleteBox for ASP.NET AJAX. You’ll encode entry/item text (e.g., via HttpUtility.HtmlEncode) to prevent XSS, and use item/token templates to render intended HTML when you need markup in the dropdown or tokens.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/grid-reorder-columns-with-keyboard-shortcut
Summary: This article explains how to implement keyboard-based column reordering in Telerik ASP.NET AJAX RadGrid. You enable client-side reordering, hook a keydown handler to move the focused header left or right via the RadGrid client-side API, and optionally persist the new order by setting the columns’ OrderIndex on the server.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/retrieve-visible-columns-radgrid-aspnet-ajax
Summary: This article shows how to retrieve the currently visible columns in a Telerik RadGrid for ASP.NET AJAX at runtime. It covers server-side enumeration via MasterTableView.RenderColumns (or filtering Columns by Visible and Display) and a client-side approach using masterTableView.get_columns() with column.get_visible()/get_display(), including considerations for columns hidden via the ColumnMenu and built-in utility columns.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/grid-scrolling-with-frozen-columns-with-mousepad
Summary: This article shows how to make two‑finger touchpad (mousepad) scrolling work correctly in the ASP.NET AJAX RadGrid when Frozen Columns are enabled. You’ll capture wheel/touchpad events over the frozen area and forward the delta to the grid’s scrollable container so horizontal and vertical scrolling stay synchronized, with a concise JavaScript example and guidance on wiring it on grid load.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/autocompletebox-disabling-dynamically-added-tokens-server-side
Summary: Learn how to disable dynamically added tokens in the ASP.NET AJAX RadAutoCompleteBox on the server side. You add entries in code-behind and mark them non-removable, then use a TokenTemplate and CSS to render them disabled so users cannot delete or interact with those tokens, while leaving user-added tokens unaffected.

---------------------------------------------------------------------------------------------------------------------------------------------------------

05 Nov to 10 Nov 2025: highlights of the new online resources that we published last week.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/fix-telerik-ui-aspnet-ajax-no-license-error
Summary: This KB explains that the error 'No license found for Telerik UI for ASP.NET AJAX' occurs when Telerik.Licensing cannot detect a valid Telerik license file or Script key (Evidence attribute), which differs based on whether the project is a Web Application or a Web Site. It provides step-by-step remediation paths for both project types, covering NuGet-based licensing, manual Script key integration, and correct placement of the telerik-license.txt or Evidence attribute. Following the appropriate steps and rebuilding the project resolves the licensing validation failure.

---------------------------------------------------------------------------------------------------------------------------------------------------------

29 Oct to 05 Nov 2025: highlights of the new online resources that we published last week.

Summary: Use the SpeechToTextButton control in Telerik UI for ASP.NET AJAX to capture microphone input and insert recognized text into a specified input or textarea using the browser’s Web Speech API. The overview shows how to configure the target element and recognition settings (language/culture, interim/continuous results), lists HTTPS/permission and browser support requirements (e.g., Chrome/Edge), and details the server- and client-side API and events (start, result, end, error) so you can manage the recognition lifecycle in JavaScript.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/appearance
Summary: This article shows you how to style the ASP.NET AJAX SpeechToTextButton using built‑in skins and custom CSS, including setting the Skin property, toggling EnableEmbeddedSkins/EnableEmbeddedBaseStylesheet, and applying a CssClass. It also covers choosing a RenderMode (Classic or Lightweight) and identifying the control’s HTML/CSS hooks so you can create a custom skin and adjust size, colors, and visual states.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/getting-started
Summary: This guide shows you how to add and configure the SpeechToTextButton in Telerik UI for ASP.NET AJAX to capture microphone input and insert recognized text into a target input (e.g., ASP.NET TextBox or RadTextBox). You’ll register the control, add the markup, associate it with the target input, configure recognition language/options, and wire client-side events for start/stop, results, and errors. It also covers browser and security requirements for the Web Speech API (HTTPS origin and microphone permissions) and provides a minimal working example to validate your setup.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/client-side-programming/enums
Summary: This article lists the client-side enums for the ASP.NET AJAX SpeechToTextButton control and explains the meaning of each value and where it’s used in the control’s JavaScript API. Use these enums in your event handlers and custom logic to check recognition state, handle errors and permission changes, and avoid magic strings or numbers. The enums are available on the client side (Telerik.Web.UI) for consistent integration with SpeechToTextButton.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/server-side-programming/enums
Summary: This article documents the server-side enumerations used by the Telerik UI for ASP.NET AJAX SpeechToTextButton. It lists each enum and its members, explains where they apply in the control’s API, and how they affect behavior and appearance so you can set them correctly in markup or code-behind (C#/VB.NET). Use it as a reference when configuring the control via server-side code.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/client-side-programming/events
Summary: Handle the ASP.NET AJAX SpeechToTextButton client-side events in JavaScript to manage recognition lifecycle, receive result notifications, and handle errors. The article shows how to subscribe via the control’s OnClient* properties or programmatically through the client-side object’s add/remove event methods, and details the event arguments you’ll use to access recognition data and status. Use these hooks to capture interim and final transcripts, update UI state, and control when recognition starts, stops, or is canceled from your application code.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/client-side-programming/overview
Summary: Learn how to get the RadSpeechToTextButton client-side instance in ASP.NET AJAX and use its JavaScript API to start/stop speech recognition, handle results and errors, and update input elements. The article summarizes the control’s client-side events, methods, and properties so you can wire up event handlers and control recognition from JavaScript.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/server-side-programming/overview
Summary: Learn how to use the RadSpeechToTextButton server-side in Telerik UI for ASP.NET AJAX: its server-side properties, methods, and events, and how they interact with the ASP.NET Web Forms page lifecycle. Configure the control in code-behind, handle postbacks, and access the recognized text (e.g., via the target input or control state) for validation and processing.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/knowledge-base/asyncupload-display-pdf-preview-file-selection
Summary: Learn how to show a client-side PDF preview immediately after file selection in ASP.NET AJAX using RadAsyncUpload, without uploading to the server. You handle OnClientFileSelected, get the selected File from the underlying input, validate it as a PDF, and render it in an iframe/object or RadPdfViewer via URL.createObjectURL or FileReader, with notes on multiple files and revoking object URLs.

Article: https://www.telerik.com/products/aspnet-ajax/documentation/controls/speechtotextbutton/client-side-programming/properties
Summary: This article documents the client-side properties of the Telerik ASP.NET AJAX SpeechToTextButton and shows how to access them through its JavaScript object ($find) using the standard get_/set_ pattern. You will learn how to read and update behavior, state, and configuration at runtime (for example, enable/disable, target control, and recognition state) so you can integrate speech-to-text into your forms without postbacks.

Feel free to check them out and share your thoughts!

The Telerik Team

Telerik
Top achievements
Rank 1
Iron
 updated question on 04 Mar 2026
47 answers
9.6K+ views

This sticky thread lists known issues and breaking changes introduced in the UI for ASP.NET AJAX releases.


Q3 2011 (Version number: 2011.3.1115)

Problem: When adding items to OData-enabled controls (RadMenu, RadTreeView, RadListBox, RadComboBox) through design time erroneous markup is applied to the control:

<telerik:RadListBox runat="server" ID="RadListBox1">
    <Items>
    </Items>
    <WebServiceSettings>
        <ODataSettings InitialContainerName="">
        </ODataSettings>
    </WebServiceSettings>
</telerik:RadListBox>

Please note the added ODataSettings section. It will cause JavaScript errors on the page.

Solution: Remove the ODataSetting section and the issue will vanish. The problem is also fixed in the Q3 SP1 release, version number 2011.3.1305
Rumen
Telerik team
 updated answer on 02 Mar 2026
1 answer
839 views

When I run my project I'm getting this error

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)

In my web.config I checked that the version in the web.config is the same as the version I'm using in references

<assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2020.2.617.45" newVersion="2020.2.617.45" />

 

Vessy
Telerik team
 answered on 22 Oct 2021
0 answers
5 views

I am filtering a grid (tableview) in javascript  to filter to a single condition. 

 

 $find(tableViewID).filter("Photo_Group", args.get_item().get_value(), "EqualTo");

 

However, where can I find how to filter to multiple conditions.  

Ie the above condition OR filter("Photo_Group", "-1", "EqualTo");

I can see how to do this using the Filtering control,  but I cannot show/use a filtering control on the page.     

Brete
Top achievements
Rank 1
 asked on 03 Mar 2026
1 answer
60 views

I have a user with Win7 and IE8 who was experiencing the dreaded 'Sys' is undefined script error, when trying to load the page that has the RadEditor on it. He is running a clean install of Win7 and IE8. I was unable to reproduce this on my own clean install of Win7 and IE8.

This user did a search looking for "Can't access https sites", and came up with a link:

http://www.daniweb.com/forums/post894841.html#post894841

that recommended :
Trythis in a dos box

regsvr32 softpub.dll
regsvr32 wintrust.dll
regsvr32 initpki.dll
regsvr32 dssenh.dll
regsvr32 rsaenh.dll
regsvr32 gpkcsp.dll
regsvr32 sccbase.dll
regsvr32 slbcsp.dll
regsvr32 cryptdlg.dll

It fixed all problems!

He did this, and resolved the problem! He can now use the Editor.

I believe that these DLLs are involved in crypto used by the browser for SSL, to it is quite a surprise to me that this has resolved the problem for him.

Very strange. I don't see the connection, and, since I was unable to duplicate the problem, I have no way of testing this.

He claims to have been working with a fresh install of Win7.

If anyone sees a connection between "'Sys' is undefined" and these DLLs and wishes to share, I would appreciate it.

Thanks,
-Jon



Rumen
Telerik team
 answered on 03 Mar 2026
0 answers
7 views

After upgrading to version 2026.1.211.462 of Telerik UI for ASP.NET AJAX , we are having a problem with the LoadSettings feature of the RadFilter.   It is generating this error for any existing filters.  We can delete and re-create filters and it seems to be find going forward but we have dozens of existing filters that will not load.

Unexpected character encountered while parsing value: . Path '', line 1, position 1.

Jennifer
Top achievements
Rank 1
 asked on 02 Mar 2026
1 answer
18 views

Language : vb

I have a table that contains a numeric field. Using this field value I generate variable numbers of CheckBoxes in a RadGrid PlaceHolder :

I am attempting reference the CheckBoxes in the selected row and do some processing if the a CheckBox is checked.

I can get the reference to the PlaceHolder : Dim phBlocksCheckBox As PlaceHolder = DirectCast(item.FindControl("phBlocksCheckBox"), PlaceHolder)

But the code to return the CheckBox reference is returning Nothing : Dim BlockCheckBox As CheckBox = DirectCast(phBlocksCheckBox.FindControl("BlockCheckBox_" & cbIndex), CheckBox)

Here is my code :

apsx :
    <div style="clear: both">
        <div style="float: right; margin-right: 10px;">
            <asp:Button ID="GenerateButton" runat="server" Text="Generate Cassette Labels" Disabled="True"/>
        </div>
    </div>

    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" GridLines="None" AllowMultiRowSelection="True" AllowFilteringByColumn="True" EnableLinqExpressions="False">
        <MasterTableView AutoGenerateColumns="False">
            <PagerStyle AlwaysVisible="True"></PagerStyle>
            <Columns>
                <telerik:GridClientSelectColumn UniqueName="checkboxColumn1" HeaderTooltip="SELECT All" ShowSortIcon="False" ShowFilterIcon="False" Reorderable="False">
                    <HeaderStyle Width="30px" />
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn DataField="NumberOfBlocks" HeaderText="Block Count" UniqueName="NumberOfBlocks" AllowFiltering="False" Display="False">
                    <HeaderStyle Width="20px" />
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn DataField="Block" HeaderText="Blocks" UniqueName="Blocks" AllowFiltering="False">
                    <ItemTemplate>
                        <asp:PlaceHolder ID="phBlocksCheckBox" runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>


vb :
    Public dt As DataTable = Nothing
    Protected Sub RadGrid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        If dt Is Nothing Then
            Dim objRadGrid As RadGrid = CType(sender, RadGrid)
            Dim objCommand As New MySqlCommand
            dt = New DataTable()

 
            objCommand.CommandText = "SELECT Block AS NumberOfBlocks FROM samples"
            Call DBClass.TapDB("ConnStr", objCommand, "getRS", "", dt)

            objRadGrid.DataSource = dt
        End If
    End Sub

    Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
        'Ensure we are dealing with a data item (not header, footer, etc.)
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

            'Find the placeholder control defined in the ItemTemplate
            Dim phBlocksCheckBox As PlaceHolder = CType(item.FindControl("phBlocksCheckBox"), PlaceHolder)

            If phBlocksCheckBox IsNot Nothing Then
                Dim NumberOfBlocks As Integer = DataBinder.Eval(item.DataItem, "NumberOfBlocks")

                'Dynamically create and add checkboxes
                If NumberOfBlocks > 0 Then
                    For BlockIndex As Integer = 0 To NumberOfBlocks - 1
                        Dim BlockCheckBox As New CheckBox()
                        BlockCheckBox.ID = "BlockCheckBox_" & (BlockIndex + 1).ToString()
                        BlockCheckBox.Text = (BlockIndex + 1).ToString()
                        BlockCheckBox.Checked = True
                        phBlocksCheckBox.Controls.Add(BlockCheckBox)
                        phBlocksCheckBox.Controls.Add(New LiteralControl("    "))
                    Next
                End If
            End If
        End If
    End Sub


    Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles GenerateCassetteLabelsButton.Click
        Dim NumberOfBlocks As Integer = 0

        For Each item As GridDataItem In RadGrid1.SelectedItems
            NumberOfBlocks = CInt(item("NumberOfBlocks").Text)

            Dim phBlocksCheckBox As PlaceHolder = DirectCast(item.FindControl("phBlocksCheckBox"), PlaceHolder)
            If phBlocksCheckBox IsNot Nothing Then
HttpContext.Current.Response.Write("phBlocksCheckBox IsNot Nothing<br><br>")
                For cbIndex As Integer = 1 To NumberOfBlocks
HttpContext.Current.Response.Write("-BlockCheckBoxID : " & "BlockCheckBox_" & cbIndex & "<br><br>")
                    Dim BlockCheckBox As CheckBox = DirectCast(phBlocksCheckBox.FindControl("BlockCheckBox_" & cbIndex), CheckBox)

                    If BlockCheckBox IsNot Nothing Then
HttpContext.Current.Response.Write("BlockCheckBox IsNot Nothing<br><br>")
                        'Do something with BlockCheckBox.Text
HttpContext.Current.Response.Write("Block : " & BlockCheckBox.Text & "<br><br>")
                    End If
                Next
            End If
        Next

        RadGrid1.Rebind()
    End Sub

 

Vasko
Telerik team
 answered on 02 Mar 2026
1 answer
32 views

Hi , 

We have client facing issue where the RadTreeView control nested under RadComboBox is exceeding the popup space and having a page scroll how can i restrict it ?   Also  RadTreeview Nested under is not detecting the screen boundary and expanding the direction

Vasko
Telerik team
 answered on 23 Feb 2026
1 answer
32 views

Hi , 

I’m working on aligning the loading dropdown that renders under rcbSlide with the width of the RadComboBox, even when an additional icon is present. Since rcbSlide resides outside the RadComboBox container, I need guidance on how to ensure the dropdown inherits or matches the RadComboBox width consistently.

Vasko
Telerik team
 answered on 09 Feb 2026
1 answer
24 views

I have a simple TreeView

    <telerik:RadTreeView ID="radTreeViewIndex" runat="server">
                    </telerik:RadTreeView>

That I am databinding on the page load.

My query returns heirarchical records such as the following

SPOP   TheKey     SYear     Norder

Null        A             Adult          4000
Null        P             Pediatric    3000
A            A2022     2022          2500
A            A2021      2021         2500
A           A2020      2020        2500
P            P2022     2022          2000
P            P2021      2021         2000
P           P2020      2020        2000

On the page load, I call the Oracle query, get back a cursor and construct the treeview by binding a data table to it

        DataTable dt1 =
            new DataTable();
        da1.Fill(dt1);
        RadTreeView radTreeViewIndex = (RadTreeView)FindControl("radTreeViewIndex");
        radTreeViewIndex.NodeDataBound += new RadTreeViewEventHandler(radTVI_click);
        radTreeViewIndex.DataFieldParentID = "SPOP";
        radTreeViewIndex.DataFieldID = "theKey";
        radTreeViewIndex.DataTextField = "sYear";
        radTreeViewIndex.DataValueField = "sYear";

        radTreeViewIndex.DataSource = dt1;
        radTreeViewIndex.DataBind();

The tree expanded would look like

> Adult

      - 2022 

     -  2021

     -  2020

> Pediatric

      - 2022 

     -  2021

     -  2020

The databinding and expanding/collapsing is working fine

That I am trying to now do and figure out how best to do is to navigate and load a grid based upon the click of a year

So clicking on Adult or Pediatric Nodes would only expand or collapse the tree
Clicking on the Year node would then call an event that would pass in the population and the year and then load that grid (to the right of the tree)  So for clicking on (Adult > 2021 ) node - was thinking navigating back to the page witth these values set, the tree expanded to show the selected node and the grid populated to display the records for population = adult and year = 2021

I was thinking I would add the event to the NodeDataBound

    protected void radTVI_click(object sender, RadTreeNodeEventArgs e)
    {
        if (string.IsNullOrEmpty(e.Node.NavigateUrl))
            e.Node.Attributes["onclick"] = "return Redirect(https://myjunkurl.com);";

    }

And then work with it to basically ignore or only have expand or collapse on the clicks of Adult or Pediatric but otherwise generate the URL to call the page and pass in the SPop and Year to then load the tree and grid.

Rumen
Telerik team
 answered on 05 Feb 2026
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?