Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hello,

I want to disable the grouping in Grid's PreRender event but have trouble doing so. I believe this event is too late to disable grouping.
What other possibilities do I have?

Currently I'm doing this in Grid's PreRender event:
bool enableGrouping = settings.EnableGrouping && GroupingEnabled;
grid.GroupingEnabled = settings.EnableGrouping;
grid.ShowGroupPanel = settings.EnableGrouping;
grid.ClientSettings.AllowDragToGroup = enableGrouping;
grid.GroupingSettings.ShowUnGroupButton = enableGrouping;

But grouping is still possible. I don't want to hide the grouing header (which would work).

Thanks!
Eyup
Telerik team
 answered on 09 Oct 2014
32 answers
638 views
Hello
I get a "System.UriFormatException" when I try to export a RadScheduler to PDF.
This i my code:
<%@ Page Title="Scheduler" Language="C#" MasterPageFile="~/NestedMasterPage.master" AutoEventWireup="true" CodeBehind="Scheduler.aspx.cs" Inherits="MyApp.CRM.Scheduler" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <link href="../Content/forms.css" rel="stylesheet" type="text/css" />
 
        <telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007">
        </telerik:RadAjaxLoadingPanel>
 
        <div class="radgrid_header">
            <asp:Label ID="Label1" runat="server" Text="Scheduler"
                EnableViewState="False" Width="100%">
            </asp:Label>
        </div>
 
        <div style="width:100%; margin:auto;">
            <telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="it-IT"
                Skin="Office2007"
                DataKeyField="ID"
                DataSubjectField="Subject"
                DataStartField="StartDate"
                DataEndField="EndDate"
                DataDescriptionField="Description"
                DataRecurrenceField="RecurrenceRule"
                DataRecurrenceParentKeyField="RecurrenceParentId.Id"
                DataReminderField="Reminder"
                FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"                   
                ondatabinding="RadScheduler1_DataBinding"
                WorkDayStartTime="08:30:00" WorkDayEndTime="19:00:00"
                DayEndTime="20:00:00" EditFormTimeFormat="" Height="604px"
                onappointmentdelete="RadScheduler1_AppointmentDelete"
                onappointmentinsert="RadScheduler1_AppointmentInsert"
                onappointmentupdate="RadScheduler1_AppointmentUpdate" ShowFooter="False"
                DayStartTime="08:30:00" HoursPanelTimeFormat="H:mmtt"
                StartInsertingInAdvancedForm="True" EnableExactTimeRendering="True"
                onreminderdismiss="RadScheduler1_ReminderDismiss">
                <AppointmentContextMenuSettings EnableDefault="true" />
                <TimeSlotContextMenuSettings EnableDefault="true" Skin="Office2007" />
                <ExportSettings FileName="MyAppScheduler" OpenInNewWindow="True">
                    <Pdf AllowCopy="True" Author="MyApp" Creator="MyApp" PageHeight="297mm"
                        PageWidth="210mm" PaperSize="A4" Producer="MyApp" Subject="Scheduler"
                        Title="Scheduler" />
                </ExportSettings>
                <AdvancedForm Modal="true" DateFormat="dd/MM/yyyy" TimeFormat="HH:mm" />
                <MultiDayView DayEndTime="19:00:00" DayStartTime="08:30:00"
                    WorkDayEndTime="19:00:00" WorkDayStartTime="08:30:00" />
                <WeekView WorkDayStartTime="08:30:00" WorkDayEndTime="19:00:00" />
                <Reminders Enabled="True" />
            </telerik:RadScheduler>
        </div>
 
        <div style="text-align:right; margin-top:10px;">
            <telerik:RadButton ID="cmdPDFExport" runat="server" Text="Export to PDF"
                OnClick="cmdPDFExport_Click">
                <Icon PrimaryIconUrl="../Content/pdf.gif" />
            </telerik:RadButton>
        </div>
    </asp:Content>

the code for the "cmdPDFExport_Click" event is:
protected void cmdPDFExport_Click(object sender, EventArgs e)
{
    RadScheduler1.ExportToPdf();
}

As you can see, the RadScheduler is ajaxified. If I try to ajaxify the export button too the error will go away but nothing happens.
Please help me. Thanks.
Marin Bratanov
Telerik team
 answered on 09 Oct 2014
1 answer
75 views
Hi,

I have a master/detail grid where I am loading the detail grid on demand.  When a row is collapsed it is a causing a post back.  Is there any way to prevent this?
I set the EnablePostBackOnRowClick = false, so I am not sure what is causing the postback.

Thank you for your assistance.

Tracy
Eyup
Telerik team
 answered on 09 Oct 2014
1 answer
50 views
I would like to select a record in a paged grid.  The code works fine if the URL value is on the first set of the paged items but not if its on any of the paged data.  (I would like to pass thru a value and then have the grid select the value on the specific page of the data set).


foreach (GridDataItem item in RelatedContactsGrid.MasterTableView.Items)
                {
                    if (item.GetDataKeyValue("ContactTyparID").ToString() == ContactId.ToString())
                    {
                        item.Selected = true;
                    }
                }
Eyup
Telerik team
 answered on 09 Oct 2014
3 answers
124 views
I need to run some light JavaScript when the NoRecordsTemplate kicks in for a RadGrid (when there are no records in the DataSource) anywhere across a web application.


Since I didn't find an analogous client side API method built in for this, I thought this would still be pretty easy by using the OnGridCreating event handler to add a function that runs later (following page load) & includes a conditional that checks for data items or something similar.


Surprisingly, I'm finding the OnGridCreating event is not firing when the NoRecordsTemplate kicks in when hooked up via the grids' ClientSettings.  Should it?  (Note : when the NoRecordsTemplate does not kick in the OnGridCreating 
get fired as expected & function runs normally/as expected)

I can understand why OnGridCreated possibly wouldn't fire in a no records situation, but it seems like OnGridCreating should fire regardless of if the grid ends up having records or no records.

I'm also open to other approaches if this turns out to be a 'working as designed not as desired' situation.
Viktor Tachev
Telerik team
 answered on 09 Oct 2014
7 answers
201 views
I have a problem with autocorrect functionality of RadDatePicker control. When I manually type invalid date '29-02-2010' (no such date this year) it is automatically changed to '28-02-2010', without any notice. It might be confusing for users, so I would rather like to display validation message and let users correct themselves. However, I cannot find a way to turn autocorrection off. I would be most grateful for any tips.
Viktor Tachev
Telerik team
 answered on 09 Oct 2014
1 answer
74 views
Hi all!

I only want compare data from data Original with new value input from control textarea. I have a problem about enter key. So method _get_newValue() generator Enterkey different with method _get_value()???
Please complain for me about problem!
Tks all!

data for _get_value() method:
""><script>alert('xss')</script>
↵
↵<script>alert('xss')</script>"

data for _get_newValue() method:
""><script>alert('xss')</script>↵↵<script>alert('xss')</script>"


Maria Ilieva
Telerik team
 answered on 09 Oct 2014
1 answer
277 views
Hi

I need to help, I use the control  radwindow but I  set the property 'width' with unit of percentaje 100 %


Regards & greats
Marin Bratanov
Telerik team
 answered on 09 Oct 2014
1 answer
91 views
Hi

We have a problem with the today link not showing.

We are using a webbrowser controll called chromium to capture and run a page in Windows form. Chromium is using chrome18 engine to run.
I Spooned the page with a standalone webbrowser of chrome 18, And I get the same problem. Do you know of a way to hot fix this without upgrading Chrome version.

Attach a pic to show

oh by the way thanks for an awesome product!
Peter Filipov
Telerik team
 answered on 09 Oct 2014
1 answer
125 views
Hi, 

  I'm working with Telerik v.2011.2.915.35, and tried example from RadEditor Demo.
  But I can't show the toolbars and editor mode buttons of RadEditor with android/ios system, only the text area. With desktop, it displays as it should be.

  If I use newer v.2014.2.724.35. Everything works fine.

  My question is: 
      Is that v.2011.2.915.35 doesn't support for android/ios and is there any way to display RadEditor as it should be with v.2011.2.915.35 on different devices?

Thanks and Regards,  
Thuy
Top achievements
Rank 1
 answered on 09 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?