Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
196 views
Hi All,

I want to transfer items from radcombox to radlistbox, I want to two radcomboxes and when the right arrows is clicked then items get added to the list box.

How can I achieve this.

any help will be apprecaited.
Thanks.
Anjali
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
81 views
Hello.  I am trying to have my "displaying 1 of 10" element of the RadDataPager float all the way to the right.  It doesn't seem proper to use hardcoded padding when the width of the page numbers can vary.  Is there a good solution to this?  Thanks!  :-)

Code:
<LayoutTemplate>
           <telerik:    ID="RadDataPagerTop"  runat="server" IsTotalItemCountFixed="True" Skin="Windows7" Width="752px"  CssClass="Custom">
                       <Fields>
                           <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                           <telerik:RadDataPagerButtonField FieldType="Numeric" />
                           <telerik:RadDataPagerButtonField FieldType="NextLast" />
                           <telerik:RadDataPagerTemplatePageField>
           <PagerTemplate>
               <div style="float: right">
                   Displaying items
                       <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex + 1 %>" />
                       to
                       <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# (Container.Owner.TotalRowCount < Container.Owner.StartRowIndex + Container.Owner.PageSize)?Container.Owner.TotalRowCount:Container.Owner.StartRowIndex + Container.Owner.PageSize  %>" />
                       of
                       <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount %>" />
                   
               </div>
           </PagerTemplate>
       </telerik:RadDataPagerTemplatePageField>
 
                   </Fields>        
                   </telerik:RadDataPager>

Angie
Top achievements
Rank 1
 answered on 30 Aug 2012
5 answers
147 views
I have dev version of RadEditorMoss_5_8_10. I am trying to make SpellChecker Available in List items of Sharepoint Foundation 2010. I installed the webpart, everything else is available except SpellChecker in Sharepoint List. Here is my web.config entry for Telerik

<SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Widgets" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditor_CSDialog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e9c701da6b1b65de" Namespace="RadEditor_CSDialog" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.8.10.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.8.10.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />


I have activated

Use RadEditor to edit HTML fields

Use RadEditor to edit List Items            features

 

 

 I Can see Spell Checker when i add "
Rumen
Telerik team
 answered on 30 Aug 2012
3 answers
85 views
I copied the following code from the Splitter / External Content Demo Page 
The Code works perfectly in IE9/IE10 standards mode on the Demo Page. 
However, when I copy it to a test page on my site, the content never loads in IE9/IE10 Standards mode, and links only open in Popups.
I don't think the IFRAME is getting generated, in IE9/IE10 standards mode.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head><title>DEMO</title></head>
<body class="BODY">
  <form id="Form1" method="post" runat="server">   
   
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="400" Width="700">
    <telerik:RadPane ID="RadPane1" runat="server" Width="150">Left Pane<br />
      <a href="http://bing.com" target="<%= contentPane.ClientID%>">Open bing.com</a><br />
      <a href="http://www.cnn.com/" target="<%= contentPane.ClientID%>">Open cnn.com</a>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" />
    <telerik:RadPane ID="contentPane" runat="server" ContentUrl="http://blogs.telerik.com" />
  </telerik:RadSplitter>           
 
  </form>
</body>
</html>

Please help, this is driving me crazy, I don't understand how it works on the Demo page, but not on my test page...

Thanks!
Vessy
Telerik team
 answered on 30 Aug 2012
1 answer
36 views
I have a RadFileExplorer within my web page and at run-time, it displays any number of existing files and folders. Some of the file types that are displayed within the explorer are .gif, .jpg, .pdf, .png, .txt, .wmv, and more.

Users who browse to my website may experience 2 different types of behavior when they double-click on any one of the file types listed above (or when they right-click on a file and click Open). The first behavior (which is NOT the problem) that users experience when they double-click is that a radwindow will open, and display the file content. That’s the exact behavior that I want for all users to experience. In my case (I typically use IE 9), that is the default behavior that I always see. And what’s cool is that I really didn’t have to do any development work to make this happen; FileExplorer basically supports this behavior “out of the box”.

The second behavior (which IS the problem) that other users experience is that when they double-click on any one of the same exact files, they initially see the radwindow open, but it is always blank. What follows is a prompt by their browser to Save, Save As, or Cancel.

Initially I thought that the problem was a difference in browsers (IE vs. FireFox vs. Chrome, etc.). But then I discovered that some IE 9 users encountered the problem, while other IE 9 users did not.

Then I thought that maybe some client machines may not have Adobe Reader installed, or they may not have a graphical tool capable of rendering images, or something like that. But with every client machine that I investigated, they all had the necessary tools for supporting the file types listed above.

Is there some tweak that I can do with FileExplorer to ensure that the first behavior described above will always apply to every user? Is there something that I can add or modify within my web.config file?

Thank you,
Steven
Dobromir
Telerik team
 answered on 30 Aug 2012
1 answer
117 views
Hi,

I am using RadTooltipManager and getting this error. This works perfect when I hover my mouse two times on an image but when I try to hover it on third time it gives me the following error. Any help would be greatly appreciate.

Thanks


RadToolTipManager response error: Exception=Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.



Protected Sub rttm_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)
        
       If e.TargetControlID.Contains("imgRotator") Then
           If IsNumeric(e.Value) Then
               
           End If
       End If
        
   End Sub
 
Protected Sub radRotator_ItemDataBound(ByVal sender As Object, ByVal e As RadRotatorEventArgs) Handles radRotator.ItemDataBound
        
       Dim hidLogisticProductKey As HiddenField = e.Item.FindControl("hidLogisticProductKey")
       Dim imgRotator As System.Web.UI.WebControls.Image = e.Item.FindControl("imgRotator")
       Dim nProductKey As Integer = Convert.ToInt32(hidLogisticProductKey.Value)       
       rttm.TargetControls.Add(imgRotator.ClientID, nProductKey, True)
        
   End Sub
 
<telerik:RadToolTipManager ID="rttm" Skin="Windows7" RelativeTo="Element" ShowEvent="OnMouseOver" Width="100" Height="100"
                                   Position="TopRight" OnAjaxUpdate="rttm_AjaxUpdate" ViewStateMode="Disabled" runat="server">
                               </telerik:RadToolTipManager>
                               <asp:Label ID="lblProductDescriptionTooltip" ViewStateMode="Disabled" runat="server"></asp:Label>
                               <telerik:RadRotator ID="radRotator" Width="500" ScrollDirection="Right" RotatorType="AutomaticAdvance"
                                   ScrollDuration="1000" FrameDuration="500" runat="server" Height="100px">
                                   <ItemTemplate>
                                       <div>
                                           <asp:Image ID="imgRotator" runat="server" ImageAlign="Middle" Style="margin: 2px"
                                               ImageUrl='<%# GetImage(Container.DataItem) %>' Height="100px" Width="100px" />
                                           <asp:HiddenField ID="hidLogisticProductKey" Value='<%# Bind("LogisticProductKey") %>'
                                               runat="server" />
                                       </div>
                                   </ItemTemplate>
                               </telerik:RadRotator>
Marin Bratanov
Telerik team
 answered on 30 Aug 2012
1 answer
132 views
The chart animation looks great.

Is it possible for a chart image to be copied from a web page to another application (e.g. MS Excel or Word)? I tried copying one and pasting it into an Excel document, but it was empty. I tried both Paste and Paste Special.

Can both a top and bottom title be included?

Is it possible to add other annotations to the chart? For instance, a copyright symbol in the bottom left corner or a N value in the bottom right (e.g. something like "n=124 clients").

Can images (e.g. company logo) be placed somewhere on the chart?

Thanks...
Marin Bratanov
Telerik team
 answered on 30 Aug 2012
1 answer
57 views
Hello, I've been testing out the RadChart from RadControls for ASP.NET AJAX and I can't get teh OnClick event to fire when I use the chart in an MVC application. It works fine for a non MVC application. In the MVC application all other event seem to work fine (Init, Load, DataBound,etc). There are a couple of extra steps to get the chart to work on an MVC view which I have followed. The chart displays fine, and I can add the OnCLick with the designer, but when I click on the chart, there is a post back, but the event handler doesn't execute.
I'm using version 2012.2.815.40 on Windows 7 64 bit with Visual Studio 2010.

To Reproduce this, I just made a brand new ASP.NET MVC 2 template application with a test project.
- I added this to the Webconfig:
under <system.web>
      <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" validate="false" />
      </httpHandlers>
and

 

 <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers accessPolicy="Read, Script">
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ChartHandler" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
    </handlers>
  </system.webServer>

I updated the Global.asax.cs as follows:

  public static void RegisterRoutes(RouteCollection routes)
  {
   routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
   routes.IgnoreRoute("{controller}/{resource}.axd/{*pathInfo}"); // This is new
   routes.IgnoreRoute("{controller}/{action}/{resource}.axd/{*pathInfo}"); // This is new

   routes.MapRoute(
    "Default", // Route name
    "{controller}/{action}/{id}", // URL with parameters
    new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
   );

  }

Then I added a RadChart to the About view and bound it to an XML data file containing:

<?xml version="1.0" encoding="utf-8" ?>
<people>
   <person name="Brown, William" all="20" some="50" few="25" notassessed="5"  />
  <person name="Edwards, Kimberly" all="30" some="45" few="20" notassessed="5"  />
  <person name="Evans, Sarah" all="80" some="10" few="5" notassessed="5"  />
  <person name="King, Elizabeth" all="25" some="35" few="35" notassessed="5"  />
  <person name="White, Mark" all="50" some="20" few="10" notassessed="20"  />

</people>

Then I added the click hander and DataBound handler to the chart.

Then when I run the application and show the About view, The chart shows, but the click handler is not called, but other event handlers are called.

Any help would be appreciated,Thanks,
Kelly.



Ves
Telerik team
 answered on 30 Aug 2012
4 answers
306 views

I  have a stack column in RadGrid (shown in below image) and I want to apply sorting on the both fields of that column. For the sorting these columns  I had applied my own logic and I could sort the columns but I am not able to apply color on column header and the ascending descending image which comes when we use default sorting of RadGrid.

Please tell me how to apply color and image to that column while sorting and when we sort with this stack column then the column, which we had sorted previously should get the default column header style.

Or Is there any alternative to sort the stack columns?

Please reply ASAP.

Galin
Telerik team
 answered on 30 Aug 2012
3 answers
146 views
I have a grid, bound declaratively to a PageMethod web service, using LINQ filtering with System.Linq.Dynamic.
Some of my settings are as follows:

<GroupingSettings CaseSensitive="false" />
<ClientSettings>
<DataBinding SelectMethod="GetAllOffices" Location="UserDetails.aspx" EnableCaching="true" FilterParameterType="Linq" />
<Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
</ClientSettings>
<MasterTableView>

I understand that <GroupingSettings> should be used for case-insensitive filtering, but that is not holding true when using client-side LINQ binding.  Fiddler shows the dynamic LINQ statement being returned to server, as JSON, to be:  "filterExpression":"OfficeName.Contains(\"name\") AND OfficeCode.Contains(\"c\")".

How do you get case-insensitivity when using a LINQ filter, bound declaratively, to a web service?

Thank you,
Kevin Kalitowski 
The Oracle
Top achievements
Rank 1
 answered on 30 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?