Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
Hi All,

I have a RadGrid with Sqldatasource.  Is there anyway to implement some sort of auditing mechanism?  Perhaps a shadow copy of the modified table that contains a list of the changes and all legacy instances of the rows?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 14 Mar 2014
8 answers
457 views

Hello all

I am wondering if anybody might be familiar with the cause of an issue I am struggling with: I have a radCaptcha that validates fine on the initial postback, e.g., validating as False if the code is incorrect or missing, but then if the user fails to enter a code on the second attempt, the radCaptcha always validates as True, even after both the radCaptcha Validate method, and then the Page.Validate(<validation group>) method are called. Important to notice here that the validation works as expected after the first postback, it is just afterwards, when the user is required to enter a new code on a second attempt. It appears to me that the radCaptcha's validator does not reset itself, even if IsValid is manually reset to false at the end of the code-behind processing during the first postback. After the second postback, IsValid determinedly is stuck on True, no matter what I do, which makes me suspicious that this is a bug.

To complicate matters, the radCaptcha control in question is inside an ASCX user control, which is declared in the ASP markup, rather than loaded dynamically, and there are two validation groups on the page in question. Is there any known workaround for this sort of issue, and where should I be calling different methods? At the moment I have radCatcha.Validate and Page.Validate(<group>) in the code-behind handler for the submit button, and additionally, after I realised there was a problem, I have been experimenting with use of radCaptcha.DataBind and switching its Enabled and IsValid methods on and off manually in the Control Load handler, but nothing seems to make any difference. I could do with a pointer in the right direction to troubleshoot this problem. Where would be the recommended places to call different methods in this sort of scenario?

Thanks if you can assist.

Regards

Slav
Telerik team
 answered on 14 Mar 2014
2 answers
142 views
Hello Friend,
                     I am having one problem with using agenda view for scheduler. It is not appearing in the selected view options list. Do I have to do some extra setting or some extra downloads of latest version. Design code for my scheduler is as follows.

          <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>



<telerik:RadScheduler runat="server" ID="rSchRoomBooking" Skin="Metro" Height="450" OverflowBehavior="Auto" 
                            OnClientAppointmentWebServiceInserting="OnClientAppointmentWebServiceInserting"
                            OnClientNavigationComplete="OnClientNavigationComplete"
                            OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"
                            SelectedView="WeekView" ShowFooter="false" SelectedDate="2012-01-31" TimeZoneOffset="03:00:00"
                            DayStartTime="08:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
                            EnableDescriptionField="true" AppointmentStyleMode="Default">                            
                            <AdvancedForm Modal="true"></AdvancedForm>
                            <TimelineView UserSelectable="false"></TimelineView>    
                            <TimeSlotContextMenuSettings EnableDefault="true" />
                            <AppointmentContextMenuSettings EnableDefault="true" />
                            <Localization HeaderWeek="Work week" />
                        </telerik:RadScheduler>
Goraksh
Top achievements
Rank 1
 answered on 14 Mar 2014
3 answers
677 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
202 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
112 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
210 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
67 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
106 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
83 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?