Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
749 views
category1
  -  category2
       -  item1
       -  item2
       -  item3
  -  category3
       -  item4
category4
  -  item5
  -  item6
category5
  -  category6

Above is an example of my treeview I'm working with.  I would like to conditionally enable/disable drag and drop functionality per node type. 
If a node is an item:
  -  it can be dragged into (over) a node that is empty or already has other items in it
  -  it can be dragged next to (above/below) a node that is

If a node is a category:
  -  it can be dragged into (over) a node as long as that destination node does not have item child nodes

Is there any way to set this in code when the page loads either through code or attributes?  I have dropping disabled on all item nodes.  I know that I can check the node types on postback, but I'm wanting to not let the user perform the drop initially based on the above criteria, therefore eliminating the unnecessary  postback.  Please help.
Erik
Top achievements
Rank 1
 answered on 19 Nov 2020
3 answers
73 views
I have a RadGrid ASP.NET AJAX control. About a half dozen columns are set with Filters (AutoPostBackOnFilter=True) so you can filter as well you can sort on all columns by clicking any column in the first row. I also have a RadSlidingPane that shows another half dozen filtering choices that apply to the entire grid, allowing you to optionally filter by geography, client, that sort of thing. All of this has worked for many years on my Visual Studio dev machine as well as our production web server (Win2003 with IIS 6). The production web server is an old machine so I spun up a new web server to move the code to. I copied the directory without any changes, to the new web server, configured it in IIS 10.0 correctly (I think) but it doesn't quite work the same. Certain features fail:

The RadGrid loads all data, however when I try to filter any column, or sort any column, or apply any filters in the RadSlidingPane, the page flashes and no sorting or filtering gets applied. You also don't see a column highlighted if you had chose to sort it. It also doesn't remember any choices I had made in any of the RadComboBox's available in the RadSlidingPane. Basically, it's reloading the entire page instead of just the RadGrid.

Here is some database layer clues: Normally when someone sorts or filters, the RadGrid is only supposed to refresh one DataSource, what is bound to the RadGrid, the DataSourceID="empMainGrid" - not all 9 DataSource's that are defined on the page. I'm tracing what is happening at the SQL Server Database Layer and I can see all 9 stored procedures being called each time, which is a clear sign something is wrong and the whole page is reloading. On my dev machine and old production web server, only 1 database call happens which is what is supposed to occur.

Why. This is the exact same directory of files that works perfectly on the old webserver and my dev machine. Moving it to a new machine fails?

I also tried this upgrade about 4 years ago and gave up. Back then, it was another new web server (Windows 2012 with IIS 6.2) but same issue. I'm trying again now on this latest new web machine (Windows 2019 with IIS 10), it's still failing. My code was built targeting Telerik ASP.NET AJAX v.2016.3.1222.40. Further back, a Telerik v2011 version also worked fine.

Since it's failing, I just tried upgrading to the most current version of Telerik on my Dev VM: ASP.NET AJAX v2020.3.1021. In my Dev VM, it works on Telerik v2016 as well as the upgraded Telerik v2020. So I tried deploying this new directory to new web server, it still fails. Thus, upgrading to the latest Telerik is probably not the solution. It seems like something is configured wrong on the IIS web server. But what? Or is it something else obvious that I've missed?

My app is targeting ASP.NET v4.0.30319.

Thank you for reading all this and please help if you can. I'm out of ideas and feel stuck on this old hardware without a way to upgrade to a new web server.
Attila Antal
Telerik team
 answered on 19 Nov 2020
3 answers
278 views
I have a page with three tabs and three pageviews. Each tab/pageview has a radgrid. I have a button that calls server side code that does a MasterTableView.ExportToCSV. I would like to be able to determine which tab/pagewview is selected so that I can do the export for the grid in that selected pageview.
Vessy
Telerik team
 answered on 18 Nov 2020
1 answer
115 views

Hi, I am trying to bind into a FormTemplate for editing from a GridBoundColumn 'value' where on ItemDataBound I pulled the information from multiple other columns in my Data Table (value_int, value_string, value_bit).  For each row only one column would have information and the rest are null. 

 

I haven't been able to figure out how to populate the textbox from 'value' let alone eventually write this back.  Another thing I have tried other than (unsuccessfully) getting the data from the 'value' column in my grid was to use bind() for each column in the data table as such:

<asp:TextBox ID="txtBoxValue" runat="server" Text='<%# Bind("Value_string") ?? Bind("value_decimal18_2") ?? Bind("value_bit") %>'></asp:TextBox>

 

But this only binds whatever value_bit shows as either true/false or a space as it doesn't seem to be a null.  code behind to bind the 'value' column is the following:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
 
            if (e.Item is GridDataItem && e.Item != null)
            {
                GridDataItem item = (GridDataItem)e.Item;
                DataRowView drv = (DataRowView)e.Item.DataItem;
 
                if (drv["value_type"] != null)
                {
                    if ((string)drv["value_type"] == "value_string")
                    {
                        item["Value"].Text = drv["value_string"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_bigint")
                    {
                        item["Value"].Text = drv["value_bigint"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_decimal18_2")
                    {
                        item["Value"].Text = drv["value_decimal18_2"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_bit")
                    {
                        item["Value"].Text = drv["value_bit"].ToString();
                    }
                }
}

 

 

Attila Antal
Telerik team
 answered on 18 Nov 2020
1 answer
150 views
There's no visible focus when a user hover over the RadAsyncUpload control or focus is set to it ... see attachment. How do I apply CSS the the control to indicate to user when focus/hover is set to it?
Rumen
Telerik team
 answered on 18 Nov 2020
8 answers
136 views

How do i remove the 'Summary' and 'Cellspacing' attributes from the Timeview? This is causing my website to not validate through https://validator.w3.org/.

 

I have tried setting summary="" and cellspacing="-1", gridlines="None", but nothing happens. I think your 'Summary' attribute is broken.

 

 

Rumen
Telerik team
 answered on 17 Nov 2020
3 answers
757 views

Radiobuttonlist selectedIndexChange event does not fire when nested inside of  a RadSplitter/RadPane

<telerik:RadSplitter
     runat="server"
     ID = "radSplitter1"
     ResizeWithBrowserWindow="true"
     Orientation="Vertical"
     ResizeMode="Proportional">

     <telerik:RadPane
          runat="server"
          ID=radPane1>
                <telerik:RadioButtonList
                     runat="server"
                     ID="radioButtonList1"
                     Direction="Vertical"
                     AutoPostBack="true"
                     OnSelectedIndexChange="RadioButtonList1_SelectedIndexChanged">

                     <Databindings
                           DataTextField="Name"
                           DataValueFields="Value"
                           DataSelectedField="Selected"/>

          </telerik:RadioButtonList>

     </telerik: RadPane>
</telerik:RadSplitter>

When I move the RadioButtonList to the outside of the RadSplitter then the RadioButtonList1_SelectedIndexChanged fires.  I'm using Telerik Version 2017.1.228.445


    

     

Vessy
Telerik team
 answered on 13 Nov 2020
4 answers
201 views
Hello,

I am trying to refresh a treeview when I close a rad window... to do that, I've tried using this code in the onclose event:

        function RefreshTree() {
            __doPostBack('treeStructure', 'RefreshTreeStructure');
        }

In the .vb file I've got this...

    Protected Sub treeStructure_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles treeStructure.Load
        'If Me.IsPostBack Then
        '    Dim eventArg As String = Request("__EVENTARGUMENT")
        '    If eventArg = "RefreshTreeStructure" Then
        '        FillStructureTree(Me.cboSection.SelectedValue)
        '    End If
        'End If
    End Sub

the items are commented out as a part of me playing around with things - commented or not, I am getting this error:

Invalid JSON Primitive: RefreshTreeStructure

I am using context menus in the treeview and have a RadAjaxManager on the page that is controlling the treeview as well.

Any thoughts?

Thanks,

Mike
Vessy
Telerik team
 answered on 13 Nov 2020
1 answer
402 views

we have a SharePoint 2016 farm on premises with 2 WFE servers, we are now adding one more WFE server, hence we installed SP 2016 including latest cumulative updates in the new server, everything went fine till then, all the site collections which doesn't have any customizations are working fine. but, when we try to access a site collection which has customizations like left navigation and top ribbon with custom drop down values are giving the following error.

 

Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

we are unable to fix this issue, hope you can guide us with the correct remediation steps to fix it. 

Vessy
Telerik team
 answered on 12 Nov 2020
3 answers
88 views
RadPdfViewer for ASP.NET AJAX is available in Telerik.Web.UI 2018.1.117.45 ? or need to upgrade?
Vessy
Telerik team
 answered on 11 Nov 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?