Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
260 views
Hi,

I have placed 4 datetime pickers on a user control.

Click and open calander. Calander pops-up. Now when I Control + Click on any other date, it opens another window.

It is issue only on IE10 in compatibility mode. It does not happen on other browsers.
I have created a screen cast video to explain the issue and placed at..
http://www.youtube.com/watch?v=PdNFSde-zBg&feature=youtu.be

I have also copied the code below. 

Thanks to all who replies.

<tr>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate1" runat="server" TimeView-Columns="2" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate1" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate1" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate2" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate2" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate2" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate3" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate3" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate3" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
   <td>
      <telerik:RadDateTimePicker ID="rDtpDate4" runat="server" TimeView-Columns="3" Calendar-EnableMultiSelect="false" TimeView-RenderDirection="Vertical" DateInput-SelectionOnFocus="CaretToBeginning">
         <Calendar ID="calDate4" runat="server" EnableKeyboardNavigation="true"></Calendar>
         <DateInput ID="txtDate4" CssClass="std_white" runat="server" Width="105px" EnabledStyle-PaddingTop="0px" EnabledStyle-PaddingBottom="0px"></DateInput>
      </telerik:RadDateTimePicker>
   </td>
</tr>
Deyan Enchev
Telerik team
 answered on 29 Nov 2013
1 answer
265 views
At the moment I got a RadGrid with NestedViewTemplate. In the NestedViewTemplate I show some specific deatail information of the grid item. Thats workin OK. But the SQL for gathering all the data for both the RadGrid and for the NestedViewTemplate is quit heavy.

What I would like to do is to only load the data for the NestedViewTemplate when it's expanded. Loading the data using a separate call to the database, this means that I can simplify the SQL for the RadGrid.

How and where can I get access to event that fired when the NestedViewTemplate expand. And how do I reach RadGrid dataitem to get an ID for calling the SQL for loading the detail data?

Anders Pedersen
Kostadin
Telerik team
 answered on 29 Nov 2013
1 answer
148 views
I'm wondering if i could find some suggestions here.

I have a radgrid with a couple thousand items. I need to process each of these items (on each time the page is loaded) and filter based on their processed status. Currently i load in a collection, process each item, remove items from the collection if needed, then bind it to the grid. in the item data bound event i update the item to show the processed status of that item.

Processing an item takes time, and processing thousands of items takes up to a minute or two. If i could just process the items in the item data bound event, then i would only be processing the items on the current page. Is there any way to remove an item from the item data bound and pull in another item from the next page? I need to keep the pages consistent so i need to keep 20 items (or whatever they choose per page) on the page.

If this is too hard to understand what i mean, i could try explaining again with an example if needed
Angel Petrov
Telerik team
 answered on 29 Nov 2013
1 answer
205 views
Hello,

I work on a page with different fields for a form. Some are updated when the user picks dates. I added a repeater in my page that should be updated to. This repeater is in a panel and my panel is in the RadAjaxManagerProxy. After the update everything is fine except that my panel has been duplicated in another location in my page. Also the duplicated panel is updated but not the original one. If I try a button of the original repeater, I have an error: Invalid JSON primitive: .

Any idea about this duplication?
Thank you

Here is some of my code simplified
[...]
<asp:Panel ID="myPanel" runat="server">
<tr>
<td colspan="2">
<rpt:myRepeater ID="myRepeater" runat="server" Visible="false"/>
  </td>
</tr>
</asp:Panel>
[...]
<telerik:RadAjaxManagerProxy ID="rampPortfolioDetail" runat="server"> 
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rdpSettlementDate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="textbox1"/>
                <telerik:AjaxUpdatedControl ControlID="raddatepicker1" LoadingPanelID="myloadingpanel"/>
                <telerik:AjaxUpdatedControl ControlID="literal1"/>
                <telerik:AjaxUpdatedControl ControlID="radatepicker2"/>
                <telerik:AjaxUpdatedControl ControlID="literal2"/>
                <telerik:AjaxUpdatedControl ControlID="sharedCalendar"/>
                <telerik:AjaxUpdatedControl ControlID="myPanel" />
                <telerik:AjaxUpdatedControl ControlID="labelTest"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
Viktor Tachev
Telerik team
 answered on 29 Nov 2013
12 answers
466 views
I looked through the forums but I was unable to find a solution to my issue with RadSpell. We are currently running IIS 6 and I think this issue appeared after moving to .NET 4.0 and enabling MVC. The version of Telerik is 2010.1.519.35.

When I click on the spell check button, the following dialog popup appears:

Web.config registration missing!
The spellchecking functionality requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information.

Telerik.Web.UI.SpellCheckHandler.axd


The Chrome debug shows an HTTP 404 error for:

Requested URL: /Web/Telerik.Web.UI.SpellCheckHandler.axd


The Web.config file shows:

        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
            <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
            <add verb="*" validate="false" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"/>
        </httpHandlers>
        <handlers/>


Does anyone know how to fix this config issue?

Thanks!
Marin Bratanov
Telerik team
 answered on 29 Nov 2013
1 answer
120 views
Hi,

I have an combobox with filter="startswith"
when the page loading initially the filter is working fine.once we select the value from that filter and hit enter or remove the selected value then dropdown is not loading.
what should i do this to solve the problem.
awaiting your response
thanks in advance.
Princy
Top achievements
Rank 2
 answered on 29 Nov 2013
6 answers
173 views
Is it possible to add a tooltip to the TitleBar icon, preferably on the server side? I know the tooltip for the TitleBar buttons can be changed thru Telerik.Web.UI.RadWindowUtils.Localization , but there isn't anything for Icon. 

My app allows the user to open multiple windows for various object (such as classes and students). These windows can be minimized, so the user may end up with numerous minimized windows. When a window is minimized I want to be able to identify through the TitleBar icon, with the help of a tooltip, the name of the student.  Note, I do not want to use the TitleBar title as that is already used to identify the class. Besides when the radwindow is minimized the TitleBar title is not fully viewable.

Thanks in advance!
Marin Bratanov
Telerik team
 answered on 29 Nov 2013
1 answer
87 views
I'm trying to make WCF binding to work on SharePoint site. Basically all code is nearly the same as it is in demo example.
After some investigation I found out that on OnClientRequestSuccess() event I see appointments array - so it looks like it manages to get appointments from the service. However on OnClientDataBound() event - there are no appointments. As a result - there are no visible appointments in the view by some reason.

I tried similar scenario with isolated Web project (outside SharePoint site) - and it works. So it's somehow related to SharePoint and related changes.. Any ideas?

Main difference related to SharePoint is in *.svc file, it looks like that:

<%@ ServiceHost Language="C#" Debug="true" Service="CustomPlannerService, $SharePoint.Project.AssemblyFullName$" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Also I had to implement some sort of authorization, because anonymous access is not supported:
protected void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
{
HttpCookie cookie = FormsAuthentication.GetAuthCookie(User.Identity.Name, false);
string cookieHeader = string.Format("{0}={1}", cookie.Name, cookie.Value);
e.Headers.Add(HttpRequestHeader.Cookie, cookieHeader);
}

My web.config, which is located in ISAPI folder under SharePoint root (it's just an additional/local web.config):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <customErrors mode="Off"/>
  </system.web> 
  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="5000000"/>
      </webServices>
    </scripting>
  </system.web.extensions>   
  <system.serviceModel>
    <services>
      <service name="CustomPlannerService">
        <endpoint address="" behaviorConfiguration="CustomPlannerServiceBehavior" binding="webHttpBinding" contract="CustomPlannerService"/>
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="CustomPlannerServiceBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel> 
</configuration>


Update: found out that issue was coming because my webservice was returning data in slightly different format. Managed to workaround it and now events are shown in the Scheduker.
Boyan Dimitrov
Telerik team
 answered on 29 Nov 2013
1 answer
70 views
I'm trying to populate a dictionary class with opening and closing times, by date for the scheduler. This will allow me to enable and disable timeslots for specific dates. I have the logic working where it will enable and disable timeslots correctly, but the timing is off in creating the dictionary entries. I first attempted to populate the dictionary class in the page_init event, but the SelectedView of the scheduler is DayView everytime the page_init kicks off. So, I looked at the NavigationCommand event of the scheduler, but that gets kicked off AFTER the TimeSlotCreated event. I can't put the dictionary class creation into the TimeSlotCreated event, because that gets kicked off for every timeslot that gets shown.

What scheduler event is available BEFORE the TimeSlotCreated event, that has the SelectedView that is going to be shown?

In other words, the first time the page is loaded I start with SelectedView=DayView. Then I click on the Week link. Before the TimeSlotCreated event fires, I need to know where I can put my logic to populate the dictionary class where the SelectedView=WeekView. I need the SelectedView to show what the user selected, not what they had before the new selection.

I'm doing this in the Code-behind.
Plamen
Telerik team
 answered on 29 Nov 2013
4 answers
593 views
Hello all, 

Is there a way to access input control of RadAsyncUpload control from Grid ItemDataBound event?
When grid row is in edit mode, I need to display the file name that user have previously chosen.

I used findControl of RadAsyncUpload control like below. But cannot find child control.

protected void gridMembers_ItemDataBound(object sender, GridItemEventArgs e)
{
            if (e.Item.IsInEditMode)
            {
                RadAsyncUpload ascUpload = e.Item.FindControl("RadAsyncUploadFile") as RadAsyncUpload;
                Control l_Control = ascUpload.FindControl(ascUpload.ClientID.Replace(ascUpload.ID, "file1"));
// null
            }
}

Thanks in advanced,
Robin
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?