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.

Hi The following Web resource is not loading with the latest telerik version 2024.****. and affecting pagination. Can you please help if there is any css or C# code that may affect.
The application is built on asp.net 4.8 webforms. Also could you kindly treat it as high priority as its impacting clients.
Issue : The height and space margins are varying.
Kindly let us know if you need further details
Best Regards,
Sunil Shankar S R

I am trying to figure out how to accomplish this. I am not sure if the RadGrid is best use
I have a data query that will return one or more records
Example - data returned may look like
UserID, User Full Name, User Status, Hire Date, Manager Name, Location, Skill Set, Last Review
And I want to format it as
Record 1
Row - User ID, User Full Name, User Status, Hire Date, Manager Name
Row - Location, Skill Set, Last Review
Next Record
Row - User ID, User Full Name, User Status, Hire Date, Manager Name
Row - Location, Skill Set, Last Review
Etc.
I no problem filling data adapter, filling data table and then binding to grid in single row to record, but setting up multiple rows per record I am struggling.
Thanks


Hello
I have a page that is ajaxed using Ajax Manager. There is a RadWindow on the page which uses navigateurl rather than contenttemplate to show a page within the site (so not an external URL)
That page also has AjaxManager on it. When an ajaxed field within the window is changed the page does a partial postback correctly (and updates whatever it needs to do on itself) however the scroll position of the parent page scrolls to the top.
How do I stop that from happening?
I note that I am using this to scroll back to the window on window load because on opening the window it would scroll to the top as well
function fnRadWindowPageLoad() {
if (modalPopUpScrollPositionObj != null)
window.scrollTo(modalPopUpScrollPositionObj.XCoordinate(), modalPopUpScrollPositionObj.YCoordinate());
}
I'm using this to open the window in the code behind, after I've done some processing
Dim sbScript As New System.Text.StringBuilder()
Hi sir
I use RadAjaxManager in master page i call the RadAjaxManager in master.js file. in Grid itemdatabound call the function
if (gridid.toString().toLowerCase().indexOf("explorergrid") >= 0) {
$("#ContentPlaceHolder1_ExplorerGridSelectedIndexHidden").val(index);
var ajaxManager = $find('ctl00_RadAjaxManager1');
ajaxManager.ajaxRequestWithTarget('ctl00$ContentPlaceHolder1$explorerGridViewLink', '');
}
when click the grid i got the error in png
Hello.
I am using ASP.NET Framework, and in the Telerik.Reporting.Graph section I have a chart that is populated by a stored procedure.
The output of my stored procedure has three columns: DayOfMonth, ProductionType, and Value, and it is structured as follows.
| DayOfMonth | ProductionType | Value |
| 1 | Staple | 1244 |
| 1 | SumAll | 3066.2 |
| 1 | Tow | 1822.2 |
| 2 | Staple | 624.9 |
| 2 | SumAll | 3984.6 |
| 2 | Tow | 3359.7 |
| 3 | Staple | 1865.38 |
| 3 | SumAll | 5126.18 |
| 3 | Tow | 3260.8 |
ProductionType has three values: Tow, Staple, and SumAll.
I need SumAll to be displayed as a line chart, and Tow and Staple to be displayed as bar (column) charts within the same chart.
DayOfMonth should be displayed horizontally on the X-axis and represent the days of the month.
No matter how much I tried, I could not limit the ProductionType values in the line chart using the filters in:
series < lineSeries1 < GraphGroup < Filters
series < SeriesGroup < Filters
so that only ProductionType = SumAll is shown in the line chart.
The only place where I managed to apply this filter was in:
Data < SeriesGroup < Filters
but that filters the entire dataset, causing the bar chart to be filtered as well.
Please help me with this issue.
A sample of my code is attached.
Thank you.
Scenario
The page has a left navigation panel that can be collapsed / expanded
On toggle, the main content container width is changed using CSS only (no page refresh)
On initial page load or full refresh, the grid renders correctly
On toggle of grid button in the expand mode only, the grid suddenly shows a horizontal scrollbar
Observed Behaviour
This happens only after clicking toggle ( external button written in C# code)
Rebinding the grid (Rebind()) or calling repaint() does not fix the issue
A full page refresh always fixes it.
How can i prevent the scoll from appearing when the grid has lesser columns. the scrolls appears from _Frozen.
Css used for toggle small -> condensed , and condensed -> small
.small .RadGrid .rgRow td,
.small .RadGrid .rgAltRow td,
.small .RadGrid .rgEditRow td,
.small .gridFillLayoutPanel .RadGrid_Metro .rgHeader th,
.small .gridFillLayoutPanel .RadGrid_Metro .rgGroupHeader th,
.small .RadGrid .rgRow > td,
.small .RadGrid .rgAltRow > td,
.small .RadGrid .rgEditRow > td,
.small .RadGrid .rgFilterRow > td {
padding-left: 8px !important;
padding-right: 8px !important;
line-height: 32px !important;
height: 32px !important;
font-family: @font-tab-title;
font-size: 12px;
padding-top: 7px !important;
padding-bottom: 7px !important;
text-align: left;
}
.condensed .gridFillLayoutPanel .RadGrid_Metro .rgRow td,
Best Regards,
Sunil Shanakr S R
I downloaded the trial version of DevCraft and am using the license key in my .NET application. Tried adding the license both ways -
- NuGet Telerik license
- Copy the script to .cs file
But I see the same error on running the application.
Could not load file or assembly 'Telerik.Licensing.Runtime, Version=1.6.31.0, Culture=neutral, PublicKeyToken=98bb5b04e55c09ef' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

RadWindow is a great control and it's very usefull.
The issues start when the UI inside gets more complex, and requires javascript to deal with interactions on client side instead of server side.
The RadWindow control is placed inside a parent element but when it opens, all the contents get relocated into the DOM root causing a problem with event listeners, element finding among other headaches.
Testing with your Telerik Web UI Window Content Template Demo | Telerik UI for ASP.NET AJAX demo, moving the generated window element "RadWindowWrapper_ctl00_ContentPlaceholder1_UserListDialog" inside its original element "demo-container", kept the demo working perfectly with no side effects.
So, the question is, why are you moving the contents of a RadWindow to the DOM root causing so many problems for those who need to create complex UIs inside the window? Can't you at least let the developer decide that with a parameter?
Is there any way to avoid this behaviour, maybe using javascript?
Thank you.
