Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
722 views
Hi,
how to check that at least one item is selected in a RadComboBox? My RadComboBox allows just single selection and I want to check that user has selected one item which is needed for next/related user input control (RadListBox) will be loaded with data (from code behind). Meaning I will check that at least one item is selected from code behind method RadComboBox_SelectedIndexChanged and if one item is checked load data into next/related RadListBox.

Why isn't there a method RadComboBox.SelectedItems.Count as there is for example RadListBox?

I have EmptyMessage set to '--- Select ---' in RadComboBox. Can I use this in some way?

Rgds,
Jesper 
Jesper
Top achievements
Rank 1
 answered on 27 Oct 2011
3 answers
208 views
I'm using the ScriptManager and StyleSheetManager controls to combine multiple JS and CSS files into 1 request.  That all works as expected when the JS and CSS files are static content files bundled with the deployment.

However, I would like to start using the same technique to include dynamic JS and CSS content that is generated by the server.  Think of it like including an ASPX page as one of the StyleSheetReference objects (although I tried this and it doesn't work by default).

Does anyone know how to do this?

Thanks,
Kevin
Simon
Telerik team
 answered on 27 Oct 2011
6 answers
199 views
Hi,

I have added the code below to the ItemDataBound event of a grid for which I want users to be able to select 100 as the Page Size. This works, but now I find that when I select this new item the grid does not do a postback and refresh. Could you please advise?

Thanks
Chris

            if (e.Item is GridPagerItem)
            {
                RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
                RadComboBoxItem extraItem = new RadComboBoxItem("100", "100");

                if (!PageSizeCombo.Items.Contains(extraItem))
                {
                    PageSizeCombo.Items.Add(extraItem);
                }
            }
Princy
Top achievements
Rank 2
 answered on 27 Oct 2011
3 answers
98 views
Do the AJAX controls have an equivalent to the silverlight speedometer? I would like to create one, but I don't own the silverlight controls and frankly, since microsoft is moving toward html5, I don't want to require my users to have silverlight to see this page. Is there any ajax equivalent? Either a straight up speedometer, or some other control that could work in a similar function? I really only need a static speedometer i.e. I would set a min and max value, and then fill it either with a color, or move a pointer to the appropriate spot within that speedometer. It would not need to be dynamic. Any ideas?
Sebastian
Telerik team
 answered on 27 Oct 2011
1 answer
148 views
Hello!

I got a question for exporting to excel:
How can I either show all the filter values including the filtertemplete value in exported excel or hide the filter row in the excel?

I have the allowfiltering=true in the grid which uses some common filters and one custom filters ( from date to date with datepickers).

Now the filtered values in common filters show but the custom filter always only show "from" and "to" words.

I try to use allowfilteing=false then the records show all the data without filter.

If I keey all the filters value but I can't get the  two date values in filtertemplete to show in the excel.

Please tell me how to do it. Thanks.

Amy
Mira
Telerik team
 answered on 27 Oct 2011
1 answer
208 views

I get this error every time I try to load a page

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager


I am confused where to go from here I tried adding it manually in the web.config file. Didn't work. I don't see smart tag. I am just very confused by this,
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2011
1 answer
109 views
Hi All,

Should be the most obvious thing in the world, but I'm failing miserably to find any documentation telling me how to do this.
I have a RadTabStrip which is connected to a RadMultiPage with 4 page views (each page view has a contenturl associated with it).
I've got a RadAjaxLoadingPanel and have set the RadAjaxManager to this:

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>                       
        </AjaxSettings>
 </telerik:RadAjaxManager>

This displays the LoadingPanel briefly then it disappears and I'm left with a blank area (MultiPage) until the contenturl has loaded. Obviously the desired behaviour would be to display the LoadingPanel until the contenturl page has completed loading.
Any help with this would be appreciated. I thought about manually invoking the LoadingPanel but I can't work out how to detect and passback when the contentURL page has completed loading? (not the contenturl is another page in the project not an external url).

Cheers,
- Will Kruss
Dimitar Terziev
Telerik team
 answered on 27 Oct 2011
8 answers
187 views
Hi,
When I try use RadAsyncUpload to upload file with sample code form your demo(http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultcs.aspx?product=asyncupload) on the Azure emulator. I got an exception NotFound second time upload.

Oh, one more information. If I direct access handler.aspx after site startup. I  will got "RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly."  But another exception at below in handler.ashx after first file uploaded.

Value cannot be null.
Parameter name: input

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: input

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +947910

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +640
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
   Telerik.Web.UI.AsyncUpload.SerializationService.Deserialize(String obj, Type type) +273
   Telerik.Web.UI.AsyncUploadHandler.HandleChunkUploadRequest(String serializedMetaData) +41
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270


Any Idea for this?
Eric
Top achievements
Rank 1
 answered on 27 Oct 2011
4 answers
97 views
I may be doing something wrong here but we use the Splitter for our screen layout.  In any case we have a layout with a menu at the top and a footer at the bottom.  In the middle is a content area and then above that a message area which would need to adjust based on how many user messages there are, but if there are none, not show up.  In any case when you submit multiple times on the same page, the complete splitter continually shrinks for each submission.  Here is a sample ASPX I put together to demonstrate the point.  Simply run it and click the Test button and watch the splitter shrink.

<%@ Page AutoEventWireup="true" Inherits="PlaygroundControl" Language="c#" Codebehind="PlaygroundPage.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<head id="Head1" runat="server">
    <title>Playground Page</title>
    <style type="text/css">
        .ie7ScrollFix {   position:relative; }
        html, body, form
        {   font-size: 10px;
            font-family: Verdana, Arial, Helvetica, sans-serif;
            margin:0px;
            padding:0px;
            width: 100%;
            height: 100%;
            border-style: none;
            background-color: #FFFFFF;
            color: #000000;
            overflow:hidden;
            z-index:0;
            border-collapse: collapse;
        }
    </style>
</head>
<body class="BODY">
<form id="test" runat="server">
<telerik:RadScriptManager ID="supportScripts" runat="server" >
</telerik:RadScriptManager>
 
<%  // Code block could be moved to load event but here right now
    RadPane msgPane = RadSplitterMaster.GetPaneById("messagePane");
    int rowCount = 2;
    msgPane.SetExpandedSize(Unit.Pixel(rowCount > 0?rowCount*15:0));
    msgPane.Height = Unit.Pixel(rowCount > 0 ? rowCount * 15 : 0);
    msgPane.Collapsed = (rowCount > 0 ? false : true);   
%>
 
<telerik:RadSplitter ID="RadSplitterMaster" runat="server" Height="100%" Width="100%"
    VisibleDuringInit="false" ClientIDMode="Predictable" ResizeMode="AdjacentPane"
    ResizeWithBrowserWindow="true" ResizeWithParentPane="true" Orientation="Horizontal"
    BorderStyle="Solid" BorderSize="3">
        <telerik:RadPane ID="headerPane" runat="server" Height="52px" Scrolling="None" Locked="true" BackColor="Blue">
            Menu Stuff <br />
            Here
        </telerik:RadPane>
        <telerik:RadPane ID="messagePane" runat="server" Scrolling="None" BackColor="Orange" >
                Random stuff here<br />
                With lines and such<br />
        </telerik:RadPane>
        <telerik:RadPane ID="contentPane" runat="server" Scrolling="Both" BackColor="White" >
            <input type="submit" value="Click to Test" />
            <div>Put in full content regardless of size</div>
        </telerik:RadPane>
        <telerik:RadPane ID="footerPane" runat="server" Height="12px" Locked="true" BackColor="Green">
            <div id="footerDiv">
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/LicenseAgreement.htm">
                    <b><font size="-2" color="white" >©My Company Stuff</font></b>
                </asp:HyperLink>   
            </div>
        </telerik:RadPane>
</telerik:RadSplitter>
 
</form>
</body>
</html>
I put all the code in the ASPX for clarity sake.  Is this a bug or am I just doing something wrong here?
Thanks,
Shane
Dobromir
Telerik team
 answered on 27 Oct 2011
6 answers
851 views
I have seen a couple of examples of opening a window from codebehind using C#., but none using VBScript. I must be the last guy on earth using VB.

Can anyone post a code sample of how to open a RadWindow from codebehind with VB Script?

Thanks
pedrotti
Top achievements
Rank 1
 answered on 27 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?