Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
192 views

I have some oddities in the RecurrenceEditor retaining it's selected values.

The editor is part of a templated edit form. On that form, there is a control that causes postback. There are a couple instances in which certain items on the RecurrenceEditor are reset on postback.

In my examples, () denote items the user selects. If it remains in the second part of my scenario, the selected item stays selected. Otherwise, I will state to what it resets.

Yearly - Every (Month)(Day), resets to Every January 1
Monthly - Day (Day) of every (#) Months, resets to Day 1 of every (#) Months

In all other scenarios, the selected items remain correctly selected.

Thanks,
Kerry Wano

 

Plamen
Telerik team
 answered on 07 Jul 2014
4 answers
135 views
I have this grid filter that stopped working.  I have about 6-10 of these filters on the grid and just this one stopped working.  Any suggestions??

<telerik:GridBoundColumn DataField="AssignedTo"
            FilterControlAltText="Filter AssignedTo column" HeaderText="AssignedTo"
            SortExpression="AssignedTo" UniqueName="AssignedTo">
 
 
            <FilterTemplate>
                <telerik:RadComboBox ID="RadComboBoxAssignedTo" DataSourceID="SqlDataSource4" DataTextField="UserName"
                    DataValueField="UserName" Height="150px" Width="100px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("AssignedTo").CurrentFilterValue %>'
                    runat="server" OnClientSelectedIndexChanged="AssignedToIndexChanged">
                    <Items>
                        <telerik:RadComboBoxItem Text="All" />
                    </Items>
                </telerik:RadComboBox>
                <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">
 
                    <script type="text/javascript">
                        function AssignedToIndexChanged(sender, args) {
                            var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                            tableView.filter("AssignedTo", args.get_item().get_value(), "EqualTo");
                        }
                    </script>
 
                </telerik:RadScriptBlock>
            </FilterTemplate>
 
        </telerik:GridBoundColumn>


Here is the error I am getting.

Server Error in '/' Application.Selection out of range
Parameter name: value Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +191
Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +510
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1298
Telerik.Web.UI.RadComboBox.PerformSelect() +37
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
Telerik.Web.UI.RadComboBox.DataBind() +70
System.Web.UI.Control.DataBindChildren() +187
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +94
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +187
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +94
System.Web.UI.Control.DataBind() +15
Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +1304
Telerik.Web.UI.GridTableView.CreateFilteringItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) +167
Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +3070
Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1147
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +67
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +123
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138
Telerik.Web.UI.GridTableView.PerformSelect() +38
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
Telerik.Web.UI.GridTableView.DataBind() +642
Telerik.Web.UI.GridTableView.Rebind() +117
Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +1237
Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +205
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +71
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +147
Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +88
Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +12648
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9528682
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Ryan
Top achievements
Rank 1
 answered on 07 Jul 2014
1 answer
149 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
133 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
153 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
56 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
108 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
141 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
392 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
168 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?