Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views

Hi friends

I have the function to compare the two date on "Onpopupclosing",

after comparing two date I displayed the message and after closing that message,

I want to set the initial date to that datepicker not selected date.

please help me

Eyup
Telerik team
 answered on 15 Aug 2012
0 answers
137 views
Hi,

I am using Radcombobox feature LoadOnDemand. In my radcombobox I have a label, textbox and a button control but when I try to click on a button the post back occurs but my onclick event doesn't fire.

Is this the problem because I am using LoadOnDemand ?

Any help would be greatly appreciated.

<telerik:RadComboBox ID="rcbProducts" runat="server" Width="300px" Height="300px" EnableLoadOnDemand="true" 
                                   DataTextField="ProductCodeAndDesc" DataValueField="LogisticProductKey" Font-Names="Arial"
                                   Font-Size="XX-Small" Skin="Windows7" EmptyMessage="- please select a product -"
                                   Filter="Contains">
                                   <ItemTemplate>
                                       <table>
                                           <tr>
                                               <td>
                                                   <asp:Label ID="lblProductName" Text='<%# Bind("ProductCodeAndDesc") %>' runat="server"></asp:Label>
                                               </td>
                                               <td style="text-align: right">
                                                   <asp:TextBox ID="txtIntervalDays" ValidationGroup="vgNumeric" Width="50px" MaxLength="5" Text='<%# Bind("RepeatIntervalDays") %>'
                                                       runat="server"></asp:TextBox>
                                                       <asp:Button ID="btnSaveIntervalDays" Text="Save" OnClick="btnSaveIntervalDays_Click" runat="server" />
                                                       <asp:Button ID="btnTest" Text="TEst" OnClick="btnTest_Click"  
runat="server" />
                                                   
                                               </td>
                                           </tr>
                                       </table>
                                   </ItemTemplate>
                               </telerik:RadComboBox>

Protected Sub btnTest_Click(ByVal sender As Object, ByVal e As EventArgs)
 
 
 End Sub

Protected Sub btnSaveIntervalDays_Click(ByVal sender As Object, ByVal e As EventArgs)
 
 
 End Sub

Muhammad
Top achievements
Rank 1
 asked on 15 Aug 2012
10 answers
287 views
Hi-
I would like to place a radslider in a repeater and have it (them) act as a thumbnail viewer. Similar to http://demos.telerik.com/aspnet-ajax/Slider/Examples/CustomScrollbar/DefaultCS.aspx. Only the repeater would generate several sliders to show product in different categories.

I know that this is done with JavaScript and the changing of divs so I believe it is not possible inside a repeater.

Does anyone know of an other way I could accomplish this?
Niko
Telerik team
 answered on 15 Aug 2012
2 answers
108 views
Hi,

I've been using version 2010.1.315.35 of the ASP.NET AJAX tools for quite some time now.  I'm in the middle of upgrading to the latest version (2012.2.724.35).  I use AsyncUpload in my application and use Flash in my application too.  Up until now version 2010.1.315.35 AsyncUpload has been using Flash in Firefox and Chrome (versions 14.01 and 21.0 respectively) but now that I've upgraded to 2012.2.724.35 flash is no longer being used and it appears to be falling back to using HTML.  I make extensive use of file filters so it's important that I can use AsyncUpload in flash mode.  I've noticed also that the demo at http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx?product=asyncupload has the same problem.

My AsyncUpload control is specified as follows:

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
                                    OnClientFileUploadFailed="RadAsyncUploadOnUploadFailed"
                                    OnClientFileSelected="RadAsyncUploadOnFileSelected"
                                    OnClientFileUploaded="RadAsyncUploadOnFileUploaded"
                                    OnClientFileUploadRemoved="RadAsyncUploadOnUploadRemoved">
                                    <Localization Select="<%$ Resources:Localization, AttachFile %>" />
                                    <Localization Cancel="<%$ Resources:Localization, Cancel %>" />
                                    <Localization Remove="<%$ Resources:Localization, Remove %>" />
                            </telerik:RadAsyncUpload>
Is there something different I need to do in 2012.2 to get flash working?

Thanks
Andrew Dixon

Mohammed
Top achievements
Rank 2
 answered on 15 Aug 2012
1 answer
111 views
Whether telerik provide a skin like the chrome browser tab? It's really beautiful than telerik's provided skin.
Kate
Telerik team
 answered on 15 Aug 2012
1 answer
120 views
hi there,
i now it might sound silly but i am new so, how can i have a menu with telerik for DNN form an html template i mean i have below codes that works fine with html and i need the same menu in DNN would anyone change this to a telerik menu skin so i might get the process.
and may be give me a tutorial of how to have the same menus as there are in html templates

my html menu was created by these css codes:

.menu.nav-bar{background: none; margin-top: 0px; border: 0px solid #ddd;}
.menu.nav-bar>li { display: inline-block; padding: 0; margin: 0; border-right: 0px solid #ddd; line-height:normal; padding:0px 0px;}
.menu.nav-bar>li li.parent ul { display: none;}
.menu.nav-bar li.parent ul {display:none;}
/* Main Navigation */
ul.menu.nav-bar {float:right;margin:10px 0 0 0; display:inline-block; width :1100px;}
ul.menu.nav-bar li a {color:#888; padding:6px 10px;  -webkit-transition: 0.3s ease;-moz-transition: 0.5s ease;-o-transition: 0.5s ease; transition: 0.5s ease;}
ul.menu.nav-bar li a:hover {color:#fff; text-shadow:0px 0px 10px rgba(255,255,255,1); text-decoration:none;}
ul.menu.nav-bar li.active a{color:#ccc; border:1px solid #111;box-shadow:inset -1px -1px 1px rgba(255,255,255,.05); border-radius:5px; border-right:1px solid #000; border-bottom:1px solid #000;}


/* Sub Menu Styling*/
ul.menu li.parent:hover ul, ul.menu li.over ul {background-color:#000; background-color:rgba(0,0,0,.85); border:1px solid #000; padding:10px 10px 0 10px; width:10em; box-shadow:inset 1px 1px 1px rgba(255,255,255,.1); border-radius:5px;}
ul.menu li.parent:hover ul li, ul.menu li.over ul li {width:100%; display:block; border-bottom:1px solid #333; padding:0 0 5px 0;}
ul.menu li.parent ul li:hover ul, ul.menu li ul li.over ul, ul.menu li.parent ul li ul li:hover ul, ul.menu li ul li ul li.over ul, ul.menu li.parent ul li ul li ul li:hover ul, ul.menu li ul li ul li ul li.over ul {margin-left:9em;}

Ivan Zhekov
Telerik team
 answered on 15 Aug 2012
1 answer
141 views
I have the following structure:
- Main page
-- user control
--- tabstrip
---- tab (pageview)
----- user control
------ grid

The user was concerned that as they moved around the app that the grid would maintain its data. I do build a datasource and save it to state, and then on postback refresh from state in order to respond to the current request.
But if the user clicks on the tabstrip, I clear all state data, then use Response.Redirect to go back to the Main page. This forces Page_Init and all other load and render events which regenerate the grid.

What's weird is that the structure of the grid resets but not the data. I'm clearing filters, resetting sorting, resetting grouping, and yes, the DataSource is null. I am not rebinding in this event, because the grid data source is already null. If I do rebind, the larger cycle is re-initiated, so I'd rather avoid that. I can set a flag that detects a reset and initate the rebind from Page_Init or Page_Load.

I'm just wondering why the grid structure is refreshed but not the data. Do I need to set the RadAjaxManager to trigger/update some component other than the grid?

And if a change to the AjaxManager is required, what would that be given the above structure? Aside from making the nested components aware of parent components through properties, I'm not aware of how I would set the AjaxManager to update based on an event outside of the local scope.

I understand the request could be vague with no further info, and will do what I can to provide relevant info on request.

Thanks!
Andrey
Telerik team
 answered on 15 Aug 2012
1 answer
128 views

I need some assistance as to how can I assign the DataValueField Value using the code below.
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
    'Dim UserName As String = Request.QueryString("UserName")
    Dim UserName As String = "Test"
    lbl_UserName.Text = UserName
 
    If Not IsPostBack Then
 
        Dim results As New ArrayList()
 
 
        Dim context As New PrincipalContext(ContextType.Domain, "Fred_NT")
        Dim p As UserPrincipal = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, UserName)
 
        Dim groups = p.GetAuthorizationGroups()
 
        For Each group In groups
            results.Add(group.Name)
        Next
 
        rlb_MemberGroups.DataValueField = ????????
        rlb_MemberGroups.DataSource = results
        rlb_MemberGroups.DataBind()
    End If
 
    Label1.Visible = False
 
End Sub

Thanks as always.
Ivana
Telerik team
 answered on 15 Aug 2012
1 answer
179 views
I am using RadAsyncUpload in a form which work fine under HTTP. As soon as I turn SSL on and access page through HTTPS, when I click select button
  •  it doesn't work (open dialog to choose file) on IE 7 and 9, but works fine on firefox.
  • on firefox dialog open and after selecing a file it start uploading file then in give red light with error in firebug (uncaught exception: Error while uploading, HTTP Error code is: 0)
  • if on IE I disabled silverlight Add-on,I can open popup to choose a file, but progress bar keep loading and never complete uploading file or gives error
 
I have tried all below but still same issue
  1.  Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };, 
  2. setting EnableFileInputSkinning = false
  3. checking .axd is correctly configured in webconfig.

Also, if i set DisablePlugins="true", the dialog appears but file fails to load correctly and give red light.

Peter Filipov
Telerik team
 answered on 15 Aug 2012
1 answer
207 views
What's the best way to notify the user that they've arrived at the maximum length supported by a particular field?  Will i have to use a key up function and test the length, or is there some alternate method i might use?  It doesn't appear that there is anything built in - is there something i missed?

-RP
Eyup
Telerik team
 answered on 15 Aug 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?