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

Rad upload is not working on my Rad window.. please have look below code and fix the error.

Aspx:
<telerik:RadWindow runat="server" ID="RadWindow_ContentTemplate" RestrictionZoneID="ContentTemplateZone"
         Modal="true" Skin="Office2010Blue" Height="350px" Width="478px">
         <ContentTemplate>
             <p class="contText">
                 Hi, Pleae upload photo here and click complete button..
             </p>
             <div class="contButton">
                 Upload photo :
                 <telerik:RadUpload ID="imgUpload" runat="server" ToolTip="File Size limit 500KB, (jpg, bmp, png, gif)"
                     ControlObjectsVisibility="None" Width="178px" TargetFolder="~/Upload/" OnClientFileSelected="OnClientFileSelectedHandler">
                 </telerik:RadUpload>
             </div>
             <div class="contButton">
                 <asp:Image ID="imgLogo" runat="server" Visible="true" AutoAdjustImageControlSize="false"
                     Height="123px" Width="130px"></asp:Image></div>
             <div class="contButton">
                 <telerik:RadButton ID="RadButtonUpload" runat="server" Text="Complete" Width="200px">
                     <Icon SecondaryIconCssClass="rbOpen" SecondaryIconRight="4" SecondaryIconTop="4" />
                 </telerik:RadButton>
             </div>
             <div class="contButton">
                 <telerik:RadTextBox ID="RadButton1" runat="server" Text="Upload" Width="200px" Visible="False">
                 </telerik:RadTextBox>
             </div>
         </ContentTemplate>
     </telerik:RadWindow>

Script:
<script type="text/jscript">
           function OnClientFileSelectedHandler(sender, eventArgs) {
               var img = document.getElementById("<%= imgLogo.ClientID %>");
               img.src = eventArgs.get_fileInputField().value;
           }
       </script>

please clarify the error.

Regards,

Prassin
Plamen
Telerik team
 answered on 18 Jul 2012
2 answers
118 views
Hi there

I'm having a problem with a RadRotator in CoverFlowButtons mode whereby the OnClientItemShown event is not firing in some cases. I have the rotator setup with a collection (List<>) of images with additional data stored in hidden fields, one of which is a time to display, in the itemtemplate of the items. I have a mechanism operating in the background which checks the items in the rotator at timed intervals and changes the current item to the correct one for the time, using the set_currentItemIndex method. This correctly moves the rotator on to the appropriate item regardless of whether it's the next, previous or one some distance away. But when the selected item displays in the rotator neither the OnClientItemShowing or OnClientItemShown events fire - which I am relying on to change a large version of the selected image. If I manually click on an item in the rotator or use the next or previous buttons of the rotator then it does correctly fire the events and everything works perfectly. Is there something else I need to do to get the OnClientItemShown (or OnClientItemShowing) event to fire? I originally declared the event in the definition of the rotator but have since changed it to call the .add_itemShown method in the OnClientLoad event but all to no avail. I'm sure I have already had this working some time ago but now I'm not so sure. I've even stripped out all code from the event just in case there was something of issue in the code but that's made no difference either. I'm currently on version 2012.2.607.40 and the page I am using is a content page using a site master, but all code is on my aspx page. The rotator is simply contained in a div and I have no ajax calls taking place or anything of the kind.

Any suggestions?
PaulH
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
102 views
Hello,

I am having a textbox and it shouldnot allow decimal values. It should allow only whole numbers.

How can I do this ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Jul 2012
1 answer
68 views
The upload button of RadEditor is not working in IE9. Included <meta http-equiv="X-UA-Compatible" content="IE=8" /> in head.
Rumen
Telerik team
 answered on 18 Jul 2012
3 answers
205 views
When I place my mouse cursor on the Radschedulers DatePicker, I see 2 tool tips one showing the wrong date. I do not know from where it is setting the value. I am sending you the snapshot of the DatePicker showing the wrong date and also the markup of radscheduler and tooltip manager. If I set the AutoTooltipify field of RadToolTipManager to "false" it disables the tooltip for all the controls in RadScheduler, I don't want to do that Also note that, I want only the default tooltip(the one with yellow background) to be displayed for DatePicker. Please let me know how can I resolve the issue.

 <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Animation="Fade"
                                AutoTooltipify="True" HideEvent="LeaveToolTip" OnClientBeforeShow="clientBeforeShow">
 </telerik:RadToolTipManager>






AratiS
Top achievements
Rank 1
 answered on 18 Jul 2012
2 answers
195 views
Hello, standard site navigation can display nodes based on their authority to the navigate url page. Does SiteMap have the same functionality?

this functionality is generally handled by a setting in the web.config file.

Please let me know.
Thanks
Danny
Top achievements
Rank 2
 answered on 18 Jul 2012
1 answer
336 views
I am using RadGrid on my page with AJAX functionality. After performing AJAX callback, it stops working and using almost every functionality returns error (4.jpg, from Firebug):

$find("ctl00_placeholderBody_ctl04_ListControl_RadGrid_ctl00") is null

When I looked at DOM, I noticed RadGrid object has weird name ("null", 3.jpg).

How is this possible? This is part of my view:

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid" LoadingPanelID="RadAjaxLoadingPanel" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel Runat="server" Skin="Default" ID="RadAjaxLoadingPanel">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    AllowSorting="True" PageSize="10" AllowFilteringByColumn="true" AllowCustomPaging="True" ClientIDMode="AutoID">
    <mastertableview ClientIDMode="AutoID">
    </mastertableview>
</telerik:RadGrid>



Eyup
Telerik team
 answered on 18 Jul 2012
1 answer
127 views
Hi all,

How to resize binary image with out loosing the original clarity...
Please help.

Regards,

Prassin
Eyup
Telerik team
 answered on 18 Jul 2012
1 answer
174 views
Hi,

I am using telerik grid with header context filter menu implemented as attached in image 'Filter_Enter-Key__Issue.JPG'. Currently filter is not working on pressing 'Enter key' in input textbox. Filter only works if we press 'Filter' button.
Could you please suggest any solution to work filter on 'Enter' key press? Or is there any way to disable 'Enter' key press event for filtering?
Note:- This issue exists in all browsers(IE, FF, chrome)

Thanks and Regards,
Deepti
O.D.
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
157 views
Hello
I have a progress monitoring screen with a radGrid that lists processes.
One of the grid columns contains a progressArea that shows process progress (from 0 to 100%) (see attachment)
To refresh the page I use the following

Page.ClientScript.RegisterStartupScript(

Me.GetType(), "refresh", "window.setTimeout('window.location.reload(true)',10000);", True)


This causes the entire page to reload every 10 seconds, which is annoying,  I want just the progressareas to refresh, but cannot find how.
Thanks for any help

Kostadin
Telerik team
 answered on 18 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?