Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
77 views
In the Clicking event I'm trying to get the text of the button, but sender.get_text() is giving me an empty string

Button is defined like this
<telerik:RadButton ID="showInputButton" runat="server" ButtonType="StandardButton" ToggleType="CustomToggle" AutoPostBack="False" ForeColor="Black" CommandArgument='<%# Eval("pdrid") %>' OnClientClicking="OnToggleInputClicking">
                                <ToggleStates>
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbAdd" Text="Show" />
                                    <telerik:RadButtonToggleState PrimaryIconCssClass="rbRemove" Text="Hide" />
                                </ToggleStates>
                            </telerik:RadButton>

Am I doing something wrong?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Jan 2011
2 answers
79 views
Hi, i'm trying to validate the combobox using a customvalidator and a clienside validation function.
the problem is the validation function is not fired upon clicking the submit button.
it fires only when i change an item in the combbox.
So if i click submit button without changing an item no validation check happens.
How can i fix that?
Cori
Top achievements
Rank 2
 answered on 12 Jan 2011
2 answers
53 views
I have an app that we install at customer sites.  It builds a menu based on the user's application-level security settings.  We have a new customer that is running IE6 on their workstations.  The menu code that is getting generated looks like:

<Menu>
  <Group>
    <Item Text='Home' NavigateUrl='default.aspx' />
    <Item Text='Work Order Status' NavigateUrl='wosearch.aspx' />
    <Item Text='Device Info' NavigateUrl='devsearch.aspx' />
    <Item Text='Reports'>
      <Group>
        <Item Text='Inventory'>
          <Group>
            <Item Text='By Cost Center' NavigateUrl='rptInvByCostCtr.aspx' />
            <Item Text='By Description' NavigateUrl='rptInvByDevice.aspx' />
            <Item Text='By Manufacturer' NavigateUrl='rptInvByManf.aspx' />
          </Group>
        </Item>
        <Item Text='Work Orders'>
          <Group>
            <Item Text='CMs By Cost Center' NavigateUrl='rptWOByCostCtr.aspx' />
            <Item Text='PM Scheduling' NavigateUrl='rptPMScheduling.aspx' />
          </Group>
        </Item>
      </Group>
    </Item>
  </Group>
</Menu>

This works fine at the same site on computers running IE8, but on those running IE6 it works fine until you get to the second level (Reports > Inventory) but doesn't show the items that appear below that (By Cost Center, By Description, By Manufacturer).

Any ideas on how to fix this will be very greatly appreciated!
Steve LaForge
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
242 views
Hi all,

I have a problem accessing the Item data from RadRotator.
I have created a custom control using RadRotator. I have an image and a Hyper link in my rad rotator.

<sf:RadRotator ID="ImageRotatorId" runat="server" RotatorType="AutomaticAdvance" WrapFrames= "true" Width="550px" Height="260px">
    <ItemTemplate>
            <div>
                <asp:Image runat="server" ID="newsImage" style = "width:550px; height:260px; "></asp:Image>
            </div>
            <div>
                <asp:HyperLink onclick ="toggleLocation()" runat= "server" id="caption" width ="550px">
                </asp:HyperLink>
            </div>
    </ItemTemplate>
</sf:RadRotator>
<panel id = "location_map" visible = "false"> </panel>

now I want to get the data associated with my image ($find('<%= ImageRotatorId.ClientID %>')).get_currentItem() gives me the current element but how to get the data associated with this element in my java script.


Thanks,
Mohit
Rumen
Telerik team
 answered on 12 Jan 2011
2 answers
130 views
Hello Telerik Guys,

I have a error in the File explorer control. When i moving the folders from one folder to another folders i have got the error message of "The selected folder could not be deleted because the application did not have enough permissions.Please contact the administrator".

Please see the attached image.

Hare i have a question i am performing the Move operation but the control gives me the error msg for the delete operation.

Please Consider my request that how would i overcome with above mentioned problem.

Your suggestios and feedback will greatful to me.

I am looking forward of your quick respone.

Thanks.
Dobromir
Telerik team
 answered on 12 Jan 2011
1 answer
42 views
Hi
We are using Ajaxcontrol toolkit version 4.1.40412.2 and Telerik version 2009.02.0826.20 but when we load Ajax control in
combination of Telerik controls then it gives general JavaScript error .
Can you please provide details of the correct version of Telerik dll compatible with correct version of Ajaxcontrol toolkit dll
and supported JavaScript file.
Also if possible  please provide sample project for the issue 
please not we are using Visual studio 2010 with Framework 3.5
Sebastian
Telerik team
 answered on 12 Jan 2011
6 answers
225 views
I have a radgrid.GridTemplateColumn contains a RadComboBox.How get value RadComboBox in the event OnClientTextChange?
xvikx
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
109 views
Hi
 
We have an issue where RadEditor is not setting font size 3 (12) correctly in IE for Table contents, but everything works fine in Firefox .

How I can resolve this issue so that in IE size 12 get applied correctly ?   Please see attached screenshot for details 

Thanks in Advance

Syed

 


 
Rumen
Telerik team
 answered on 12 Jan 2011
1 answer
155 views
Forgive me if I've overlooked the answer to this problem, but I've searched the forums and couldn't find an easy way to accomplish this. I'm looking to use an Image for a RadMenuItem control, but I want it to display on the right hand side of the text, not the left. There is no ImagePosition attribute supported for the RadMenuItem control. 

I can switch the RadMenu "Dir" property to "rtl" and that renders it exactly like I need it to be rendered, except for the menu then renders right to left which won't work. Is there any way to accomplish this? 
Princy
Top achievements
Rank 2
 answered on 12 Jan 2011
1 answer
120 views
Hello Telerik Community,

I am attempting to get the RadRotator to work with some Client API.

Everything works except there is a minor bug that I can't figure out what I am doing wrong.

I have the following Rotator Control:

<telerik:RadRotator runat="server" ID="imageSlider" RotatorType="AutomaticAdvance"
                        ScrollDirection="Left" FrameDuration="300" ScrollDuration="1" Width="640px" ItemWidth="640px"
                        Height="640px" ItemHeight="640px" PauseOnMouseOver="False"  OnClientLoad="onRotatorLoadHandler" >
                        <ItemTemplate>
                            <asp:Image ID="Image1" ImageUrl='<%# "~/" + Eval("Path") %>' runat="server" />
                        </ItemTemplate>
                    </telerik:RadRotator>

Now, i have the following buttons:

<table>
                        <tr>
                            <td>
                                <asp:ImageButton ID="cmdStepBack" runat="server" ImageUrl="~/App_Themes/Default/Images/360Controls/first.png"
                                    OnClientClick="return stepBackward();" ToolTip="Step Backwards" />
                            </td>
                            <td>
                                <asp:ImageButton ID="cmdPause" runat="server" ImageUrl="~/App_Themes/Default/Images/360Controls/pause.png"
                                    OnClientClick="return pauseRotator();" ToolTip="Pause Animation" />
                                <asp:ImageButton ID="cmdPlay" runat="server" ImageUrl="~/App_Themes/Default/Images/360Controls/play.png"
                                    OnClientClick="return startRotator();" Style="display: none;" ToolTip="Play Animation" />
                            </td>
                            <td>
                                <asp:ImageButton ID="cmdStepForward" runat="server" ImageUrl="~/App_Themes/Default/Images/360Controls/last.png"
                                    OnClientClick="return stepForward();" ToolTip="Step Forward" />
                            </td>
                        </tr>
                    </table>

And finally, I have the following javascript:

<script language="javascript" type="text/javascript">
            var oRotator;
            function onRotatorLoadHandler(sender, args) {
                oRotator = sender;
            }
 
            function pauseRotator() {
               
                document.getElementById("cmdPause").style.display = "none";
                document.getElementById("cmdPlay").style.display = "";
 
                oRotator.pause();
 
                return false;
            }
 
            function startRotator() {
               
                document.getElementById("cmdPause").style.display = "";
                document.getElementById("cmdPlay").style.display = "none";
 
                oRotator.resume();
                return false;
            }
 
            function stepBackward() {
                oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);
                pauseRotator();
                return false;
            }
 
            function stepForward() {
                oRotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left);
                pauseRotator();
                return false;
            }
 
        </script>

So, when I click on Play/Pause, it works just fine and dandy. No issues.

However, when I click on stepForward or stepBackward, I have to call showNext then pause the rotator in order for it to work (this is while the animation is going -- there is a different issue when i pause it).

When I pause the animation first, and then click on stepForward/Back it does not work at all.

If i don't pause the animation (while it is playing) after calling showNext it does not work.

Any thoughts how i can click on showNext(either direction) and have it pause the animation and step forward/back without jumping through hoops?

Thanks,

Jason
Rumen
Telerik team
 answered on 12 Jan 2011
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
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
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?