Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
239 views
I keep getting http://demos.telerik.com/ErrorPageResources/error.aspx?aspxerrorpath=/aspnet-ajax/default.aspx
whenever I click on any link within Telerik.com (or from anywhere) referring to ASP... live demos.

Am I missing something?

eg from http://www.telerik.com/support/demos/developer-tools-demos.aspx click on Launch ASP.NET AJAX Demos and I get error page.
Tom
Top achievements
Rank 1
 answered on 20 Jan 2013
1 answer
187 views
Aspx page(Test.aspx)


 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true">
    </telerik:RadScriptManager>

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" Width="250" DropDownHeight="150"
        DropDownWidth="250">
                <WebServiceSettings Method="GetCompanyNames" Path="Test.aspx" />
    </telerik:RadAutoCompleteBox>



Test.cs

 [System.Web.Services.WebMethod()]
        [System.Web.Script.Services.ScriptMethod()]
        public static AutoCompleteBoxData GetCompanyNames(object context)
        {


 string searchString = ((Dictionary<string, object>)context)["Text"].ToString();
            //DataTable data = GetChildNodes(searchString);
            DataTable data = new DataTable();

SqlConnection conn = new SqlConnection(connectionstring);
            string sql = "SELECT ID,NAME  FROM T_Patient WHERE NAME LIKE '" + searchString + "%'";
            SqlDataAdapter da = new SqlDataAdapter(sql, conn);
            da.Fill(data);

            List<AutoCompleteBoxItemData> result = new List<AutoCompleteBoxItemData>();

            foreach (DataRow row in data.Rows)
            {
                AutoCompleteBoxItemData childNode = new AutoCompleteBoxItemData();
                childNode.Text = row["NAME"].ToString();
                childNode.Value = row["ID"].ToString();
                result.Add(childNode);
            }

            AutoCompleteBoxData res = new AutoCompleteBoxData();
            res.Items = result.ToArray();

            return res;
}


Some Error is occured when public static AutoCompleteBoxData GetCompanyNames(object context) replace to public AutoCompleteBoxData GetCompanyNames(object context) [remove static keywords]

i am not use public web method or any other idea use only public method /public static method.

THE SERVER METHOD  'GetCompanyNames
'  FAILED.

please give me solution.

thank you.

Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Jan 2013
10 answers
410 views
Hello -

I'm using the the RadAsyncUpload and i've wired up a client side handler to the OnClientFileSelected event. My goal is to alert the user that their file is not a valid extension and then  reset the control by removing the file that they attempted to upload. According to your documentation here I should be able to make use of the remove_fileSelected method to remove the file that the user attempted to upload and thus hopefully reset the control so the user can do a new upload.

The problem I have is I can't find any documentation on your site for what the signature is for remove_fileSelected or how it should be used - what parameter needs to be passed to it. Here is my handler code, please help, and if possible please expound your documentation so this is more clear.

Thanks.

this.checkFileExtension = function (radUpload, args) {
    if (!radUpload.isExtensionValid(args.get_fileName())) {
        alert('Please upload images with .jpg, .gif, .png, .bmp, or .tif extensions.');
        radUpload.remove_fileSelected();
    }
}



Lobna
Top achievements
Rank 1
 answered on 19 Jan 2013
1 answer
117 views
I have a RadGrid that pulls data based on FROM and TO dates. The dates are NOT in a column but set as Parameters for the SQL stored procedure that selects the data. How can I use RadDatePicker to update the parameters for the Grid?

Thanks!
Dave
Top achievements
Rank 1
 answered on 18 Jan 2013
2 answers
56 views
In the latest version of the Telerik controls, when the toggle type is set to "radio" and the button type is set to "linkbutton", the button no longer changes its background based on the selected/clicked button.  This appears to still work for button type "standard".  You can see this issue using your online demo using IE 9.  Is there a hotfix for this issue or a workaround that restores the old behaviour for type "linkbutton"?
Tony
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
97 views
I'm attempting to use two RadDatePickers on a page with RequiredFieldValidators and some javascript (the javascript hides and shows a couple of panels on the page, neither of which contains the DatePickers.) My problems are twofold:

1. When focusing on the DateInput field, the calendar does not pop up even though I have it set to. 
2. If I type in a date in either field and submit the page, the value of both is null, which of course trips my validators.

Are these issues related to the shared calendar bug? I'm using verion 2009.2.701.35. If not, could you provide any insight as to how to fix the problem? I can't for the life of me figure anything out. The problem is present in both IE and Chrome, and the other javascript on the page functions so it isn't  a javascript issue. I am importing JQuery at the top of the page but I wouldn't think that would mess anything up.

My code, such as it is, is below. As you can see there's nothing special.

<telerik:RadDatePicker ID="rfsDate" runat="server">
                    </telerik:RadDatePicker>
                    <asp:RequiredFieldValidator ID="reqRfsDate" ControlToValidate="rfsDate" runat="server" Display="Static"
                        ErrorMessage="Please enter a value for the 'RFS Date' field" Visible="true"
                        text=" *" ValidationGroup="formInput" Font-Size="Medium" />

protected void Page_Load(object sender, EventArgs e) {
        rfsDate.DateInput.DateFormat = "MM/dd/yyyy";
        rfsDate.ShowPopupOnFocus = true;
}
Kyle
Top achievements
Rank 1
 answered on 18 Jan 2013
0 answers
64 views
I've got a DNN application which has a "navigation bar" UserControl at the bottom of the page. There's a label inside a LinkButton on the bar that shows information about the current user's Shopping Cart.

NavBar.ascx
            <asp:LinkButton ID="ShoppingCartLink" runat="server" CssClass="dummy" OnClick="ShoppingCartButton_Click"
                Visible='<%# CurrentUserInRoles(Roles.Reseller, Roles.Customer)  %>'>
                <asp:Image ID="ShoppingCartButton" runat="server" ImageUrl="~/TelerikSkins/Growll/Common/Icon_Cart.png" /> 
                <asp:Label ID="ShoppingCartLabel" ForeColor="White" runat="server" OnPreRender="GetShoppingCartInfoText" />
            </asp:LinkButton>



Now, in addition to that control, I have a module added on the same page which is defined in a separate code file, which allows the user to add a product to their Shopping Cart when a button is clicked.

ProductConfiguration.ascx

<
asp:Button ID="AddToCart" runat="server" Text="AddToCart" ClientIDMode="Static" OnClick="AddToCart_click" />

AddToCart_click makes a service call which adds the product to their cart in the database.

How would I use DNN's built-in RadAjaxManager to update the NavBar as well when this is clicked?

Remember, the NavBar is outside of this module, so I won't be able to add AjaxSettings programmatically as described here: http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html
David
Top achievements
Rank 1
 asked on 18 Jan 2013
7 answers
491 views
I'm trying to center a checkbox in a grid.  The checkboxes are being centered somewhat, but it's not perfect.  The checkboxes are shifted to the right ever so slightly.  Oddly, when I put a text character in the box, it is shifted slightly to the left.  I don't know what the issue is.  Is there a padding parameter or margin parameter being set somewhere?
Waseem
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
90 views
Hello Community,

i have a Problem with OnClientBlur and OnClientFocus and i hope you can help my with that.

In short... It doesn't work.

Is it not the same like the html attributes  "onfocus" and "onblur"?

<telerik:RadComboBox Width="140px" ID="rcbLaufzeit" runat="server" Skin="Web20" CssClass="left ddlisten"
    AutoPostBack="false" CloseDropDownOnBlur="true" Filter="Contains" ForeColor="#212c57"
    MarkFirstMatch="true" OnClientBlur="disableFehlerhinweis('tbLaufzeit'); hilfeTextDeaktivieren('HilfeLaufzeit');" OnClientFocus="hilfeTextAktivieren('HilfeLaufzeit');">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Jahre" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Monate" Value="2" />
    </Items>
</telerik:RadComboBox>

If you need more Informations just ask.

Thanks for reading!

Daniel

Edit: Sorry for that title. I forgot to edit it :(
Kevin
Top achievements
Rank 2
 answered on 18 Jan 2013
1 answer
130 views
I am having an issue where the month selector at the top of the RadDatePicker popup us shifting to the right.  Please see attached image.  How can I adjust this?

Thanks,
Dan


Kevin
Top achievements
Rank 2
 answered on 18 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?