Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Good day,

we have a radgrid that works as expected.
Today we needed to add a two columns to this grid.
The columns are in a connected table of a connected table, so we specify

include="table1,table1.table2, table3,table3.table4"

When relations for these tables are simple (grid's table has a 1-1 relation with table1, which has a 1-1 relation with table2) we can later use
table1.table2.textfield in our grid's columns data fields with no problem.

The problem is that when table3 has a 1-n relation with table 4 (grid's table has a 1-1 relation with table3, which has a 1-n relation with table4)
we receive a
DataBinding: 'table1' does not contain a property with the name 'table3.table4.textfield'
when trying to bind table3.table4.textfield to our new column

We are subsetting table4 in the onselecting event with the
mygrid.DataSource.Where = "EXISTS(SELECT VALUE u FROM it.table3.table4 AS u WHERE u.IDtextfield = 1)";
the query executes correctly so we'd expect to be able to reference table3.table4.textfield as we're able for table1.table2.textfield

What are we missing?
Is there any special syntax to identify the table4.textfield field during databinding?

Thanks in advance.


Angel Petrov
Telerik team
 answered on 06 Apr 2015
1 answer
43 views


For example look at the attached screenshot to see what I was
talking about, from the screen what I want is as follows

You can see the selected region in the day view of my
scheduler, here my question is how do I know which date & time got selected
here?

Question2 is you can see the when and duration fields in the
left side if I change those any one (or) two of them then selected region has
to be changed accordingly so, how do I achive this functionality in telerik
scheduler?

Could you please advise…?

Thanks,

Plamen
Telerik team
 answered on 06 Apr 2015
1 answer
65 views
For example look at the attached screenshot to see what I was
talking about, from the screen what I want is as follows

You can see the selected region in the day view of my
scheduler, here my question is how do I know which date & time got selected
here?

Question2 is you can see the when and duration fields in the
left side if I change those any one (or) two of them then selected region has
to be changed accordingly so, how do I achive this functionality in telerik
scheduler?

Could you please advise…?

Thanks,
Plamen
Telerik team
 answered on 06 Apr 2015
4 answers
81 views
I have come across a problem where the position of the pop-up context menu seems to be affected by the scroll position of the browser. On a page with multiple RadEditors where the user must scroll to get to the bottom few editors, the context menu popup position gets higher the further down the page the user right-clicks a RadEditor. It is also affected by the amount of content in each editor when AutoResizeHeight="true".  I want the appearance of "textbox-like RadEditors" as per the online demo, so the css classes in my sample below are similar to the online demo. Removing ContentAreaMode="div" seems to alleviate the problem, but I haven't fully tested my project without that setting. I am using the latest release build and IE9.

Sample:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test Telerik boxes</title>
    <style type="text/css">   
        
       /* The following CSS needs to be copied to the page to produce textbox-like RadEditor */
        .reWrapper_corner, .reWrapper_center, .reToolZone,
        .reToolCell,
        .reBottomZone,
        .reModule
        {
               display: none !important;               
        }
                 
        .reLeftVerticalSide,
        .reRightVerticalSide
        {
            background: white !important;
        }
     
        .reContentCell
        {
            border-width: 0 !important;
            width:100%;
        }
         
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true" OutputCompression="AutoDetect" >
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div> </div><div> </div>
    <div>1:</div>
    <div>
    <telerik:RadEditor ID="RadEditor0" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
        <Content></Content>
    </telerik:RadEditor>
    </div>
    <div> </div><div> </div>
    <div>2:</div>
    <div>
    <telerik:RadEditor ID="RadEditor1" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div> </div><div> </div>
    <div>3:</div>
    <div>
    <telerik:RadEditor ID="RadEditor2" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>4:</div>
    <div>
    <telerik:RadEditor ID="RadEditor3" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>5:</div>
    <div>
    <telerik:RadEditor ID="RadEditor4" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>6:</div>
    <div>
    <telerik:RadEditor ID="RadEditor5" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>7:</div>
    <div>
    <telerik:RadEditor ID="RadEditor6" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>8:</div>
    <div>
    <telerik:RadEditor ID="RadEditor7" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>9:</div>
    <div>
    <telerik:RadEditor ID="RadEditor8" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>10:</div>
    <div>
    <telerik:RadEditor ID="RadEditor9" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>11:</div>
    <div>
    <telerik:RadEditor ID="RadEditor10" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>12:</div>
    <div>
    <telerik:RadEditor ID="RadEditor11" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>13:</div>
    <div>
    <telerik:RadEditor ID="RadEditor12" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>14:</div>
    <div>
    <telerik:RadEditor ID="RadEditor13" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>15:</div>
    <div>
    <telerik:RadEditor ID="RadEditor14" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>16:</div>
    <div>
    <telerik:RadEditor ID="RadEditor15" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>17:</div>
    <div>
    <telerik:RadEditor ID="RadEditor16" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>18:</div>
    <div>
    <telerik:RadEditor ID="RadEditor17" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

Ianko
Telerik team
 answered on 06 Apr 2015
6 answers
301 views
Hi,

I'm attaching the onBlur event of the RadEditor in this way:
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "blur", this._onBlurDelegate);

This is working fine in wysiwyg edit mode but not when the Editor is switched to the HTML editor mode.
How can I react to the onBlur event also if the editor is set to html edit mode and the html editor is losing focus?

Regards,

   Sebastian
Ianko
Telerik team
 answered on 06 Apr 2015
14 answers
3.5K+ views
Getting this error after upgrading:

RadGrid - RadGrid1System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified. File name: 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)

What to do ?

Br
Pettsen
Joel
Top achievements
Rank 1
 answered on 05 Apr 2015
0 answers
94 views

I followed the exact example as given in the demo - http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultvb.aspx?show-source=true

When the radgrid is displayed, the date is given as 1/16/1520, see attached image.

When tried to filter using the raddatepicker, it takes in the input as M/d/yyyy (e.g. 4/3/2015) format and gives the OracleSQL error "month not valid"

I tried to set the date format in the radgrid_columncreated -

CType(e.Column, GridBoundColumn).DataFormatString = "{0:MM\/dd\/yyyy}"

CType(e.Column, GridBoundColumn).DataFormatString = "{0:d}"

and other rad date formats. Still no luck.

With the  rad filter template the date formats are wrong but with the basic filter or no filter the Radgrid is good.

 

 

 

 

 

 

Subhashini
Top achievements
Rank 1
 asked on 03 Apr 2015
1 answer
55 views
I have used RadPivotgrid  with ConfigurationPanel on one page. On other page i want to show only the ConfigurationPanel not the Pivot result as this page contains option to edit the pivot criteria. i have attached the screenshot for the same. Please suggest.
Maria Ilieva
Telerik team
 answered on 03 Apr 2015
1 answer
245 views
I'm trying to figure out how I can display a tooltip when hovering over an image.  I'm using advanced binding and fetching the data from a database.  I would like the tooltip to contain information from the datasource.  I'm using this in the context of Sitefinity 7.3 which is using version 2014.3.1209 of RadControls, so I can't use an ItemTemplate.  Any ideas on how this can be achieved?
Angel Petrov
Telerik team
 answered on 03 Apr 2015
1 answer
102 views
Hi,

We are facing critical issue here with Calender control and which needs to be fixed TODAY itself. Seeking urgent support in this.

We are passing parameter as Interval :14 and Recurrence is DailyPattern as seen in the screenshot but the rule is creating as DailyPattern and Interval: 1 which is incorrect.

Interval must be 14 as we have passed but the function :

var rrule = RecurrenceRule.FromPatternAndRange(schedulerPattern, schedulerRange); >> Creating Interval as 1 instead of 14. 

Complete function code is attached:

 
private RecurrenceRule CreateRecurrenceRule(Appointment appq, ExchangeService service)
       {
           var pattern = (Microsoft.Exchange.WebServices.Data.Recurrence.IntervalPattern)appq.Recurrence;
           var interval = pattern.Interval;
           var schedulerPattern = new RecurrencePattern();
           var schedulerRange = new RecurrenceRange { Start = appq.Start, EventDuration = appq.Duration };
           if (!appq.Recurrence.HasEnd) { }
           else
           {
               if (appq.Recurrence.NumberOfOccurrences != null)
                   schedulerRange.MaxOccurrences = Convert.ToInt32(appq.Recurrence.NumberOfOccurrences);
               else if (appq.Recurrence.EndDate != null)
                   schedulerRange.RecursUntil = Convert.ToDateTime(appq.Recurrence.EndDate).Date.AddMinutes(appq.Duration.Minutes);
               if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.DailyPattern) || appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.DailyRegenerationPattern))
               {
                   schedulerPattern.Frequency = RecurrenceFrequency.Daily;
                   schedulerPattern.Interval = interval;
               }
               else if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.WeeklyPattern) || appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.WeeklyRegenerationPattern))
               {
                   var weekpattern = (Microsoft.Exchange.WebServices.Data.Recurrence.WeeklyPattern)appq.Recurrence;
                   schedulerPattern.Frequency = RecurrenceFrequency.Weekly;
                   schedulerPattern.Interval = interval;
                   var dayOfWeekMask = new RecurrenceDay();
                   foreach (var day in weekpattern.DaysOfTheWeek)
                   {
                       switch (day)
                       {
                           case DayOfTheWeek.Monday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Monday; break;
                           case DayOfTheWeek.Tuesday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Tuesday; break;
                           case DayOfTheWeek.Wednesday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Wednesday; break;
                           case DayOfTheWeek.Thursday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Thursday; break;
                           case DayOfTheWeek.Friday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Friday; break;
                           case DayOfTheWeek.Saturday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Saturday; break;
                           case DayOfTheWeek.Sunday: dayOfWeekMask = dayOfWeekMask | RecurrenceDay.Sunday; break;
                       }
                   }
                   schedulerPattern.DaysOfWeekMask = dayOfWeekMask;
               }
               else if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.MonthlyPattern) || appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.MonthlyRegenerationPattern))
               {
                   var monthpattern = (Microsoft.Exchange.WebServices.Data.Recurrence.MonthlyPattern)appq.Recurrence;
                   schedulerPattern.Frequency = RecurrenceFrequency.Monthly;
                   schedulerPattern.Interval = interval;
                   schedulerPattern.DayOfMonth = monthpattern.DayOfMonth;
               }
               else if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.RelativeMonthlyPattern))
               {
                   var monthpattern = (Microsoft.Exchange.WebServices.Data.Recurrence.RelativeMonthlyPattern)appq.Recurrence;
                   schedulerPattern.Frequency = RecurrenceFrequency.Monthly;
                   schedulerPattern.Interval = interval;
                   schedulerPattern.DaysOfWeekMask = GetDayOfWeekMask(monthpattern.DayOfTheWeek);
                   schedulerPattern.DayOrdinal = GetDayOfTheWeekIndex(monthpattern.DayOfTheWeekIndex);
               }
               else if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.YearlyPattern) || appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.YearlyRegenerationPattern))
               {
                   var yearpattern = (Microsoft.Exchange.WebServices.Data.Recurrence.YearlyPattern)appq.Recurrence;
                   schedulerPattern.Frequency = RecurrenceFrequency.Yearly;
                   schedulerPattern.DayOfMonth = yearpattern.DayOfMonth;
                   schedulerPattern.Month = GetRecurrenceMonth(yearpattern.Month);
               }
               else if (appq.Recurrence.GetType() == typeof(Microsoft.Exchange.WebServices.Data.Recurrence.RelativeYearlyPattern))
               {
                   var yearpattern = (Microsoft.Exchange.WebServices.Data.Recurrence.RelativeYearlyPattern)appq.Recurrence;
                   schedulerPattern.Frequency = RecurrenceFrequency.Yearly;
                   schedulerPattern.DaysOfWeekMask = GetDayOfWeekMask(yearpattern.DayOfTheWeek);
                   schedulerPattern.DayOrdinal = GetDayOfTheWeekIndex(yearpattern.DayOfTheWeekIndex);
                   schedulerPattern.Month = GetRecurrenceMonth(yearpattern.Month);
               }
               var rrule = RecurrenceRule.FromPatternAndRange(schedulerPattern, schedulerRange);
                
               if (appq.ModifiedOccurrences != null)
               {
                   foreach (var item in appq.ModifiedOccurrences)
                   {
                       rrule.Exceptions.Add(new DateTime(Convert.ToInt32(item.OriginalStart.Year), Convert.ToInt32(item.OriginalStart.Month), Convert.ToInt32(item.OriginalStart.Day), Convert.ToInt32(item.OriginalStart.Hour), Convert.ToInt32(item.OriginalStart.Minute), Convert.ToInt32(item.OriginalStart.Second)).ToLocalTime());
                   }
               }
               if (appq.DeletedOccurrences == null) return rrule;
               foreach (var item in appq.DeletedOccurrences)
               {
                   rrule.Exceptions.Add(new DateTime(Convert.ToInt32(item.OriginalStart.Year), Convert.ToInt32(item.OriginalStart.Month), Convert.ToInt32(item.OriginalStart.Day), Convert.ToInt32(item.OriginalStart.Hour), Convert.ToInt32(item.OriginalStart.Minute), Convert.ToInt32(item.OriginalStart.Second)).ToLocalTime());
               }
               return rrule;
           }
           return null;
       }

Please help us in this   URGENT as we need to fix today.
Hristo Valyavicharski
Telerik team
 answered on 03 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?