Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 views

Hi!

                While I was converting some regular ASP code to use the Telerik controls, I found a problem with some of our pages. We have a header user control with a logout button, so I want to convert the button to be a Rad Image Button. When I add in a RadButton (or Rad anything) to the header, I get an error that says ā€œThe Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)ā€œ for some of the pages. I found that it seems to be unhappy with the <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> line, or anything that tries to add Telerik controls to the user control. Does anyone have any idea what could be causing this and how to fix it? I’d really like to be able to the Telerik image buttons throughout all of our code. Thanks!

                                Holly

Holly
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
98 views
Hello,

Please help me out in binding Radcombo with checkbox from client side with examples...

Code :
 <telerik:RadComboBox ID="radcmdTest" runat="server" >          
                   <ItemTemplate>
                       <div onclick="StopPropagation(event);">
                               <asp:CheckBox runat="server" Checked="false" Text='<%# Eval("Valuedesc")%>' ID="chk"      ClientIDMode="AutoID" onclick="CheckBoxClick(this);" />                                                     
                        </div>
                  </ItemTemplate>                                                        
   </telerik:RadComboBox>


Thanks 
Anand

Ivana
Telerik team
 answered on 20 Apr 2012
3 answers
87 views
Hello,

I'm trying to use RadNotification with WcfService. My WcfService is in an separeted project file. I've added an 'Service Reference' ni my current project to the Web Service. I'm trying to implement this service om my RadNotification but Im receiving to following error:

XmlHttpPanel loading error:
Exception=Method Not Allowed

My RadNotication:
<telerik:RadNotification ID="RadNotification1" runat="server" Width="320" Animation="Fade"
  EnableRoundedCorners="true" Skin="Windows7" EnableShadow="true" Style="z-index: 35000"
  LoadContentOn="TimeInterval" OffsetX="-20" OffsetY="-20" VisibleTitlebar="true"
  WcfRequestMethod="POST" WcfServicePath="~/Service References/ProcessLogServiceRef/Reference.svcmap"
  WcfServiceMethod="GetLogData" UpdateInterval="5000" OnClientUpdating="RadNotificationUpdating">
</telerik:RadNotification>

Javascript
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
  <script type="text/javascript">
    function RadNotificationUpdating(sender, args) {
      //alert('Hallo');
    }
  </script>
</telerik:RadScriptBlock>

WcfService:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Activation;
 
namespace YBS.Services.SYS
{
  // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ProcessLog" in both code and config file together.
  [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public class ProcessLog : IProcessLog
  {
    public void GetLogData(string sTimeStamp)
    {
    }
  }
}

Can someone help me???

Regards,
  Jos Meerkerk





Marin Bratanov
Telerik team
 answered on 20 Apr 2012
1 answer
150 views
I have radgrid for which I have binded data from code behind, I have two buttons next to my grid control, one moveup button and movedown button. On selecting a particular row on the grid and on click of moveup button I have to move the row up. How do I exchange the rows?
Elliott
Top achievements
Rank 2
 answered on 20 Apr 2012
2 answers
107 views
There are a number of useful parameters to Twitter's Tweet button that it'd be great to set using the RadSocialShare interface, notably the "via" parameter, which tacks on a related Twitter account to the end of a tweet, as in: "Check out this great site! http://www.url.com/ via @GreatSites", and the "hashtags" parameter, which tacks on hashtags. Could wrappers for these parameters be included in the next version of the RadSocialShare control? More information is available on the Twitter dev site: https://dev.twitter.com/docs/tweet-button

Dan
Top achievements
Rank 2
 answered on 20 Apr 2012
5 answers
326 views
Hi there,
I have the following code in the front-end of an .aspx page, running the Q1 2012 version of the RadControls:

<script type="text/javascript">
    function doTweet(sender, args) {
        alert("hey! " + args.get_url());
    }
</script>
 
[...]
 
<telerik:RadSocialShare ID="RadSocialShare1" OnTweet="doTweet" runat="server">
</telerik:RadSocialShare>

And the following in the codebehind, which adds a number of Standard buttons with unique URLs dynamically at page load time:

RadSocialShare1.MainButtons.Clear();
RadSocialShare1.CompactButtons.Clear();
 
[...]
 
RadTwitterButton rsbTW = new RadTwitterButton();
rsbTW.TitleToShare = strTitleToShare;
rsbTW.UrlToShare = strUrlTW; //BitlyApi.ShortenUrl(
RadSocialShare1.MainButtons.Add(rsbTW);

The problem is, the doTweet function never fires, no matter how much or how I click on the Standard tweet button. I notice the same problem seems to happen on the Client-side API demo (http://demos.telerik.com/aspnet-ajax/socialshare/examples/clientsideevents/defaultcs.aspx); the events for the styled buttons are logged, but not the events for the standard buttons. The same happens on Firefox and IE. Can anyone else confirm this? Is this a bug with the current version?
Dan
Top achievements
Rank 2
 answered on 20 Apr 2012
2 answers
141 views
Hey!

I'm having trouble adding RadEditor to the page Dynamically

This is my code:
                            // RadEditor for HTML Editor
                            RadEditor editor = new RadEditor();
                            editor.Enabled = true;
                            editor.ToolbarMode = EditorToolbarMode.Default;
                            editor.EnableAjaxSkinRendering = true;
                            editor.Skin = "Office2010Blue";
                            editor.ContentAreaMode = EditorContentAreaMode.Div;
                            editor.RegisterWithScriptManager = true;
                            objControls.Controls.Add(editor);

Not sure what's wrong.  I'm using SharePoint, but I have configured SharePoint according to this guide: http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

Thanks!
Rumen
Telerik team
 answered on 20 Apr 2012
1 answer
95 views
Using the new FormatSets gadget - very nice!

One question - can I change the section titles in the drop down?

For example, rather than "Inline Format Sets", I might like it to say "Inline Styles"
Rumen
Telerik team
 answered on 20 Apr 2012
2 answers
91 views
I'm having a display issue when using a RadNumericTextBox in IE9.  Displays fine in Firefox.  Is this an issue you are aware of?  If so, is there a solution or a patch available?  Thanks.  (see attached image).
Stacy
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
85 views
Attached is a screen print showing the results of a pane.Print.  Consistently I am seeing RadNumericTextBox and RadMaskedTextBox printing the data outside of the outlined box when a pane.print is performed.  In the attached, "Payment Amt" is a RadNumericTextBox and "Invoice Number" is a RadTextBox.  Seems the Pane.Print works as expected with the RadTextBox but not as expected with the RadNumericTextBox (see how the $1 amount is outside of the box on the print example).  I am seeing this for all browsers.  Using V2012.1.327.35.

I have followed the Pane.Print documentation example but have failed to find a correction for this issue.  Can you provide a solution for this behavior?
Thanks
Dobromir
Telerik team
 answered on 20 Apr 2012
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?