Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views
I'm seeing pretty strange behaviour from the RadTreeView control.  The treeview is load on demand...

                <telerik:RadTreeView ID="tvLocation" runat="server" AllowNodeEditing="False" OnClientNodeClicked="toggleTreeNodeExpansion"
                    OnClientNodeExpanding="toggleTreeNodeExpansion" DataFieldID="ID" DataFieldParentID="Parent" 
                    DataTextField="Name" DataValueField="ID" OnClientLoad="onLocationTreeClientLoad" OnClientNodeChecking="clearRtinTree"
                    Skin="Default" TabIndex="1" CheckBoxes="True" Height="100%" CheckChildNodes="true">
                    <WebServiceSettings Method="LoadLocationTreeNode" />


The toggleTreeNodeExpansion enables disabled nodes to be expanded...

function toggleTreeNodeExpansion(sender, args) {
    var node = args.get_node();
    if (!node.get_enabled()) {
        node.set_enabled(true);
        if (node.get_expanded())
            node.collapse();
        else
            node.expand();
        node.set_enabled(false);
    }
}

The nodes I'm returning nodes from the web service are disabled.  This is what I'm seeing...

http://screencast.com/t/AoStO7vFCbbZ

The first and last nodes loaded have the rtDisabled style however the nodes inbetween do not, until you click on them, after which they do get the style and they appear as disabled.




Plamen
Telerik team
 answered on 07 Jul 2014
1 answer
145 views
I ma trying to filter the fileExplorer to show only uploads that I have put in the database.  If there are no files then I want it to say no files, which I see it can do.  So the following is my code, I pull the file names from the database and put into the filter method but the only thing that ever show up is the 1st file and nothing after this.  there could be 10 files in sql query but only 1st one shows.  I know its in my code but tried many variations but keep coming back to this becuase everything else breaks this version does not.  So how can I get the filter to show jus the files in the sql pull.  Thanks.

Private Sub radFileExplorer_ExplorerPopulated(sender As Object, e As RadFileExplorerPopulatedEventArgs) Handles radExplorer.ExplorerPopulated
 
       'If HFPriorService.Value > "" Then
       sql = "Select strUrl from PriorServiceUpload where intPriorServiceId = " & HFPriorService.Value
 
       myDataTable = New DataTable
       myDataTable = getReader(sql)
 
       If myDataTable.Rows.Count > 0 Then
           If e.ControlName = "grid" Then
               Dim items As List(Of FileBrowserItem) = e.List
               Dim i As Integer = 0
               For Each row As DataRow In myDataTable.Rows
                   While i < items.Count
                       If Not items(i).Name.Contains(row(0)) Then
                           items.Remove(items(i))
                       Else
                           i += 1
                       End If
                   End While
               Next
           End If
       End If
       'End If
   End Sub
Vessy
Telerik team
 answered on 07 Jul 2014
6 answers
160 views
We have an application that is ASP.net 3.5 using telerik v2.0.50727.  When we select from the dropdown with a mouse click everything works properly, but if the use the enter key when in the control it causes the screen to redirect to another screen.  I am still trying to find out how it is picking the screen it redirects to but why would the enter key cause a different action than a mouse click.  They both run through the SelectedIndexChanged event but for some reason the enter causes a redirect.
Plamen
Telerik team
 answered on 07 Jul 2014
1 answer
60 views
We just discovered a change in behavior in version 2014.1.403 of the editor. Our previous production version of the editor was 2012.2.724 - it did not have this problem. I have not tested any other versions of the editor besides these two.  I reviewed the release notes and saw nothing to indicate this was an intentional change.

To demonstrate the problem, I created a simple project with a single aspx page that includes an editor and a submit button. I'll include the markup below. The submit button does a redirect.  

The problem we are seeing in version 2014.1.403 of the editor is that if the user clicks the browser Back button after the submit, their updated editor content is GONE. This problem did not exist in 2012.2.724. In 2012.2.724 any content entered by the user was retained upon clicking the Back button.

Note that other controls on the page all retain their updated content upon Back button click.


I've created a small video to demonstrate the problem. Please watch it here:

http://screencast.com/t/StcFQYkzi


The previous editor behavior is depended on by our application for handling concurrency scenarios. This is affecting our production customers now.


Is there some way we can achieve the previous behavior in the 2014.1.403 editor? Otherwise, can we get a fix included in the next release of the editor?

Thanks,
Trevor.



demo aspx:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <input type="submit" runat="server" id="btnSubmit" value="Submit" name="btnSubmit">        
        <telerik:RadEditor runat="server" ID="RadEditor1">
            <Content>
                <p>this is line one</p>
                <p>this is line two</p>
                <p>this is line three</p>
                <p>this is line four</p>
            </Content>
        </telerik:RadEditor>
    </form>
</body>
</html>
Ianko
Telerik team
 answered on 07 Jul 2014
1 answer
114 views
Hi,


I have a simple radgrid control.  This displays two columns from a
database.  One column is displayed the
other is used to group. 

I have turned on the capability to edit the rows; however by
default the edit behaviour allows the users to change both values. 

Is there any way to restrict this to a single column?

Additionally when do I place the code to allow me to actually
carry out the edit / delete commands? 

TIA

Princy
Top achievements
Rank 2
 answered on 07 Jul 2014
2 answers
146 views
I'm using radfileexplorer to view files and folders. Files with Turkish characters below the list of files when I sort them by file name. How do I sort Turkish. ... a-b-c-d-d-u-u-v-y-z
Vessy
Telerik team
 answered on 07 Jul 2014
2 answers
405 views
Hi,
I want to disable my custom "Clear Filter" header menu if there are no filters applied to the RadGrid.
But I am not able to know if filters are applied.

I have tried solutions mentioned in below link
http://stackoverflow.com/questions/8188990/how-to-know-when-filters-are-used-when-using-telerik-rad-grid
including 
sender.get_masterTableView().get_filterExpressions()
sender.get_masterTableView().get_filterExpressions().toOql()

But I am not able to get the filterExpressions successfully.

Can anyone please provide correct code?
Tushar
Top achievements
Rank 1
 answered on 07 Jul 2014
8 answers
171 views
Hi,
I am using RadGrid in my project. I have explicitly set width of all columns.
I have not set width of Grid because I want the Grid to cover all the width. Scrollbar is enabled.

    <div style="height:400px">
        <telerik:RadGrid id="RadGrid1" Height="90%" runat="server" ClientSettings-Scrolling-AllowScroll="true"
            autogeneratecolumns="false" onneeddatasource="RadGrid1_NeedDataSource" 
            enableheadercontextmenu="true" allowfilteringbycolumn="true">
            <HeaderContextMenu>
            </HeaderContextMenu>
            <MasterTableView TableLayout="Fixed">
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name1" UniqueName="Name1" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name2" UniqueName="Name2" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name3" UniqueName="Name3" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name4" UniqueName="Name4" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name5" UniqueName="Name5" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name6" UniqueName="Name6" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name7" UniqueName="Name7" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name8" UniqueName="Name8" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name9" UniqueName="Name9" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name10" UniqueName="Name10" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name11" UniqueName="Name11" HeaderStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Number" HeaderText="Number" UniqueName="Number" HeaderStyle-Width="150px" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>


In IE and Chrome, when I select less number of columns (2/3), column width is increased automatically to cover all available width.
But in Firefox, column width is not automatically increased. Instead whitespace is displayed on right. Please refer the attched snapshot.
IF I remove TableLayout=Fixed, it works fine in Firefox. But I do not want to remove it since I have explicitly specified each column width.
How can I fix the issue in Firefox?

Thanks in Advance!!

Tushar
Top achievements
Rank 1
 answered on 07 Jul 2014
9 answers
204 views
Hi
I am converting to a newest controls and I am getting the following warning:

Warning   2   'Public Overrides ReadOnly Property Calendar() As Telerik.Web.UI.RadCalendar' is obsolete: 'Please don't touch Calendar property'.

This is what it is objecting to:
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
</Calendar>

When I go to
http://www.telerik.com/help/aspnet-ajax/calendar-displaying-popup.html
It seems that the property is still in use (maybe the docs has not been updated).  So, how am I to get rid of the warning and keep the functionality.
Phil
Maria Ilieva
Telerik team
 answered on 07 Jul 2014
1 answer
154 views
I have jquery rating control which I put in RadGrid column. After postback JS and CSS doesn't load. All controls are in RadAjaxPanel. Example in attachment. 

Example
Maria Ilieva
Telerik team
 answered on 07 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?