Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 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
339 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
85 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
138 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
70 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
41 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
516 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
3 answers
71 views
Hi guys i want to edit the upper part of the tab strip like i've shown in this picture:

http://shrani.si/f/0/bC/JvWtwbF/tabstrip.png

I'd like to add user info and app info since its a touch app i wanna use all the space i can.

 is there a good solution for this or should i "hack" it with javascript after page load?
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
1 answer
194 views
Hi,

I have to hide a template column on the databound event conditionally. How can I achieve this.

Thanks in Advance
Savyo
Princy
Top achievements
Rank 2
 answered on 29 Nov 2013
5 answers
87 views
I have a hierarchical grid with 3 levels (MasterTableView and 2 DetailTables).  I want to export each level separately depending on the option the user has selected.  I could not find a solution to get the levels exported.  Any help is appreciated.  Thanks
Kostadin
Telerik team
 answered on 29 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?