Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
568 views
Hello,

I am using a RadGrid with filtering capability on multiple columns and have run into an issue. Background: the users want the grid to default to only items that were created in the current fiscal year. I have already applied the initial filter in the NeedDataSource event as follows:

ASPX:
                <telerik:GridDateTimeColumn DataField="Created" HeaderText="Submitted Date" SortExpression="Created" DataFormatString="{0:d}"
                    FilterControlWidth="120px" UniqueName="Created" PickerType="DatePicker" EnableRangeFiltering="true">
                    <HeaderStyle Width="150px" />
                </telerik:GridDateTimeColumn>

ASPX.CS (in NeedDataSource function after grid DataSource is set)
        if (!Page.IsPostBack)
        {
            RadGrid1.MasterTableView.FilterExpression = string.Format("([Created] >= \'{0:d}\') AND ([Created] <= \'{1:d}\')", FiscalYearStart, FiscalYearEnd);
            GridColumn createdDate = rgRevenueAdjustments.MasterTableView.GetColumnSafe("Created");
            createdDate.CurrentFilterFunction = GridKnownFunction.Between;
            createdDate.CurrentFilterValue = FiscalYearStart.ToShortDateString();
            createdDate.AndCurrentFilterValue = FiscalYearEnd.ToShortDateString();
        }

This all works fine, with the exception that the filter values do not appear in the RadDatePickers, as shown below:

 
The main issue I'm trying to solve is that when a user filters on another column, the filter for this column is removed, where I want it to filter down the existing items. I've tried to do some searching around to solve this, and haven't really found any answers yet. Am I missing something?

As a side note: I would really love for the RadDatePickers to appear on two lines rather than expanding out horizontally. Is this possible?
Matt
Top achievements
Rank 1
 answered on 14 Mar 2014
6 answers
149 views

Very simple form with only a blank report
With FormDecorator the report viewer export drop down box is disabled or does not work when FormDecorator  is removed all works fine.
This only happens in IE 11
If I add ControlsToSkip="Select" to the FormDecorator markup then all is good in IE 11 

 

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
        </Scripts>
    </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
    <telerik:ReportViewer ID="ReportViewer1"  Width="800"  runat="server"></telerik:ReportViewer>
    </form>
</body>
Danail Vasilev
Telerik team
 answered on 14 Mar 2014
1 answer
83 views

Hello ,

I am using datepicker in my application, I have set the displaydateformat of that to dd/MM/yyyy

<tlr:RadDatePicker runat="server" ID="InvoiceDate"   AutoPostBack="false" >
             <DateInput ID = "invoiceDate" runat = "server" DateFormat = "dd/MM/yyyy" DisplayDateFormat = "dd/MM/yyyy">
             </DateInput>
</tlr:RadDatePicker>

When I select the date from the datepicker calendar it is getting displayed in dd/MM/yyyy format in the datepicker textbox. But when I paste some value in the textbox
it is getting displayed in mm/dd/yyyy format

for eg. pasting 2013-03-11 is getting displayed as 03/11/2013, where as I want it to be as 11/03/2013.

Can you please help me in this.

Thanks 
Maria Ilieva
Telerik team
 answered on 14 Mar 2014
8 answers
177 views
Anyone having this issue in VS 2010 using a Telerik Web Application solution?
I have the telerik.web.ui.skins.dll referenced in my project and the only skin that is available to select is the default skin.
I just upgraded to radcontrols for ajax Q2 2012
I have attached some screen shots to showing the information.
Pavlina
Telerik team
 answered on 14 Mar 2014
1 answer
52 views
I have a RadWindow with a DetailsView inside, wrapped with an update panel.

From a regular GridView, an Edit row button, will:

 Select the row on the grid
Change the mode to EditMode on the DetailsView
Then bind the datasource to the DetailsView
Then the RadWindow is displayed

Works Great!

But, the button that is registered as an asynchronous control (during page_load), is clicked the server-side click event is triggered.

At this point, the CurrentMode of the DetailsView is checked.

Is was in EditMode before the dialog was shown

But after the button click, the DetailsView is back in the default InsertMode.

Some troubleshooting steps would be helpful
Marin Bratanov
Telerik team
 answered on 14 Mar 2014
5 answers
80 views
I looked around and read stuff but yet I'm a bit confused if and how this is possible.
What I'm trying to achieve is to avoid using CDN and serve lokal resources but as .JS files so to be able to cache them with public caching on the browsers.
I know this could be handled if you manually specify wich .js resources to serve for each control but is there a way to obtain the same thing automatically, just like what happens when you use CDN, only serving the files locally?

Thanks in advance
Marin Bratanov
Telerik team
 answered on 14 Mar 2014
6 answers
68 views
Hi there,
I want to fill a Hidden Field on an aspx page after clicking a link.

My Code:
01.<%@ Page Title="Home Page" Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication6._Default" %>
02.<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
03. 
04.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
05.<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
06.<head id="Head1" runat="server">
07.    <title></title>
08.</head>
09.<body>
10.    <form id="Form1" runat="server">
11.    
12.        <telerik:RadAjaxManager ID="RadAjaxManagerCopyLink" runat="server">       
13.            <AjaxSettings>
14.                <telerik:AjaxSetting AjaxControlID="RadAjaxManagerCopyLink">
15.                    <UpdatedControls>
16.                        <telerik:AjaxUpdatedControl ControlID="Hidden_LayoutID" />                   
17.                    </UpdatedControls>               
18.                </telerik:AjaxSetting>
19.            </AjaxSettings>
20.            <ClientEvents OnResponseEnd="responseEndCopyLink" />
21.        </telerik:RadAjaxManager>
22.     
23.        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
24.            <script type="text/javascript">
25.                function CopyLink()
26.                {
27.                    $find("<%= RadAjaxManagerCopyLink.ClientID %>").ajaxRequest("TeST");
28.                }
29. 
30.                function responseEndCopyLink(sender, eventArgs)
31.                {
32.                    alert('<' + document.getElementById("<%=Hidden_LayoutID.ClientID %>").value + '>');
33.                }
34.            </script>
35.        </telerik:RadCodeBlock>
36.        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
37.         
38.        <input type="hidden" id="Hidden_LayoutID" name="Hidden_LayoutID" runat="server" />
39. 
40.        <a id="Link1" runat="server" href="javascript:CopyLink();"> Create Layout Link  </a><br />       
41.    </form>
42.</body>
43.</html>

1.Public Class _Default
2.    Inherits System.Web.UI.Page
3. 
4.    Private Sub RadAjaxManager1_AjaxRequest(sender As Object, e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManagerCopyLink.AjaxRequest
5.        Hidden_LayoutID.Value = "Hallo " & e.Argument.ToString
6.    End Sub
7.End Class

All work fine, but the VB.Net code doesn't change the Hidden_LayoutID.

What went wrong?

Thanks for answers
Thomas
Thomas
Top achievements
Rank 1
 answered on 14 Mar 2014
7 answers
72 views
I am trying to implement the veiwstate compression and find that it is not compressing the viewstate AT ALL. I have followed the instructions to add the browser file and my viewstate is not changing in size.

Has something changed or is the documentation not up-to-date.
Angel Petrov
Telerik team
 answered on 14 Mar 2014
4 answers
147 views
Hi,

I have a Rad grid on one of my page with filters on top. When I try to search these strings

REMEDIATION ANDRESTORATIONSERVICES, INC
REMEDIATION AND RESTORATIONSERVICES, INC

first one is searched but not the second one. Only the difference is one extra space character in 2nd string. I spent my whole day but unable to understand either its issue with capital characters or with longer words string. 

Please advice something.
Muhammad
Top achievements
Rank 1
 answered on 14 Mar 2014
1 answer
67 views
The rad editors on a site have users able to add custom words to the dictionary. The client however, wants to change it. They see that the users add terms that are unnecessary or incorrect terms being used. What they want is for them to approve of the terms before adding them to the custom dictionary. Is there a way to modify the behavior of the 'Add to Dictionary' option of a misspelled word to not add it to the custom dictionary and instead submit that entry into a database to wait to be approved?
Marin Bratanov
Telerik team
 answered on 14 Mar 2014
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?