Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 views
I want to autofill scheduler data when we enterd data in a Grid or textboxes means i have  4 textboxes 1.name 2.date 3.amount 4.total amount when i submit this data this data will display in scheduler for that particuler date i.e given in date text box.
siva sankar
Top achievements
Rank 1
 answered on 14 Sep 2012
0 answers
82 views

Update: I realized that the issue was caused by another control. I apologize for the post.

Hello,

I'm attempting to use the numeric textbox control provided by Telerik and I'm receiving the following error when I attempt to use the control's text value in a sql insert:

{"No mapping exists from object type System.Web.UI.WebControls.Label to a known managed provider native type."}

Here's the code that I'm using to attempt to do the insert:

'Insert/Update the Adjustment
With oCmd
    .Parameters.Clear()
    .Connection = oConn
    .CommandType = CommandType.StoredProcedure
    .CommandText = "iBill_Dashboard_Insert_Adjustments"
    With .Parameters
        .AddWithValue("@DepartmentTab", DepartmentTab)
        .AddWithValue("@ProjectType", ProjectType)
        .AddWithValue("@Month", Month)
        .AddWithValue("@Year", Year)
        .AddWithValue("@Value", tValue.Text)
        .AddWithValue("@AdjustmentID", AdjustmentID)
        .Add("@NewID", SqlDbType.Int)
    End With
    .Parameters("@NewID").Direction = ParameterDirection.Output
    .ExecuteNonQuery()
End With
AdjustmentID = oCmd.Parameters("@NewID").Value

The error occurs on the ExecuteNonQuery() method. Any help would be greatly appreciated.
Johnathan
Top achievements
Rank 1
 asked on 14 Sep 2012
2 answers
132 views
Hi,

I have some text boxes inside a grid edit form. Everything works well except in IE. I can't edit any value of textbox. I click on one, and it unfocus automatically.

TextBox:

<telerik:RadNumericTextBox ID="edDose" runat="server" DbValue='<%# Bind("PRES_DOSE") %>'
       Width="40" MaxLength="12" Height="22px" ShowSpinButtons="true">
</telerik:RadNumericTextBox>

This is happening in every IE versions.
Jocelyn
Top achievements
Rank 1
 answered on 14 Sep 2012
3 answers
230 views
Hi,

When I disable the RemoveScripts and EncodeScripts filters and paste the following javascript to the RAD editor:

<script type="text/javascript">
document.write('test');
</script>

I get the "Permission denied" error in the "telerik.web.ui.webresource.axd" file when using the IE 8 browser. In other browsers this script is successfully executed without any errors.

Please provide me with a workaround and reason for this.

Best regards,
Vitaliy
Rumen
Telerik team
 answered on 14 Sep 2012
2 answers
159 views
Hi

I have a linkbutton that open radwindow, in the image "vista1.jpg" you see this link.

In the first clik of this link the radwindow open OK. In the image "vista2.jpg" you see stage, but when i close the radwindow and i clik the link immediately the radwindow opens as shown in the image "viasta3.jpg"

this is my code:

file .aspx

<%@ Page Title="" Language="VB" MasterPageFile="~/templates/Templateadmin.master" AutoEventWireup="false" CodeFile="puntogestioncarga.aspx.vb" Inherits="admin_Gestion_Control_puntogestioncarga" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        var saqtemp = jQuery.noConflict();

        function openWinMiPerfil(usuariosel) {
            var oWnd = radopen("rutacarga_completa.aspx?txtusuariosel=" + usuariosel, "RadWindowchangepassw");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelScriptppal" EnableAJAX="true" EnableEmbeddedScripts="true">
    </telerik:RadAjaxPanel>
    
    <telerik:RadWindowManager ID="RadWindowManager1"
                                                  ShowContentDuringLoad="false"
                                                  VisibleStatusbar="false"
                                                  ReloadOnShow="true"
                                                  runat="server"
                                                  Skin="Black"
                                                  EnableShadow="true"
                                                  DestroyOnClose="true"
                                                  Modal="true">
        <Windows>
            <telerik:RadWindow CssClass="sobretodo" 
                                             ID="RadWindowchangepassw
                                             runat="server" 
                                             Behaviors="Resize,Close,Maximize,Move,Reload"
                                             Width="980"
                                             Height="485"
>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
    <asp:LinkButton ID="LinkButton1"
                              runat="server"
                             Text="Visualizar Ruta Seleccionada"
                              OnClick="abrircambiocontra"
                             CssClass="txt110066CC"
                              CausesValidation="false">
    </asp:LinkButton>
</asp:Content>


file aspx.vb

Protected Sub abrircambiocontra(ByVal sender As Object, ByVal e As EventArgs)
        Dim scriptfinal As String = "openWinMiPerfil('" & lblusuarioensession.Text & "'); return false;"
        RadAjaxPanelScriptppal.ResponseScripts.Add(scriptfinal)
    End Sub


please help me, I do not understand why this happens.

Juan
Top achievements
Rank 1
 answered on 14 Sep 2012
1 answer
314 views
Hello,

Got a problem today: exception: invalid pattern (during rendering)

version: 2012.2.724.40
<telerik:RadNumericTextBox ID="rnt_EmployeeCount" Width="70px" ShowSpinButtons="true" MinValue="0" MaxValue="9999999" Style="text-align: right;" runat="server"
    NumberFormat-DecimalDigits="0" NumberFormat-ZeroPattern="0" />

It seems that when i set a value of zero to (rnt_EmployeeCount.Value = 0) this error occurred. Other values worked fine.
When I delete NumberFormat-ZeroPattern="0"  the problem disappears... seems like a bug?

Kind regards,

Erik



Milena
Telerik team
 answered on 14 Sep 2012
3 answers
223 views
Further to this earlier post of mine, I encountered a new problem whereby I couldn't properly retrieve the value entered in the TextBox in the secondary RadWindow.  Instead of the actual value entered, I was always getting "0" as the Text property.

So I read everything I could find including this and this but none of these solutions seemed to work.

I eventually resorted to using the TextBox's onblur event to store the final value entered into a HiddenField control on the page.  I could then retrieve this value successfully from my server-side code.

But I'm wondering, is that the only (easiest?) way to pass back such a value from a secondary RadWindow?

Note: All of my RadWindows have Ajax UpdatePanels on them.

Robert
rdmptn
Top achievements
Rank 1
 answered on 14 Sep 2012
1 answer
59 views
Hi,

I am facing issue in Rad combo box. On initial page load there are multiple values in rad combo box so it displayed scroll bar in combo item list.After that on condition bases i am filling this rad combo box on client side, after filling if combo box has only 2-3 values available then it displayed hidden scroll bar space in item list as below:



so, how can i remove the hidden scroll bar space ?

Kalina
Telerik team
 answered on 14 Sep 2012
1 answer
67 views
I have rad window with search criteria... when user selects the criteria and press submit button it will get the records from the database and assigning the records from data table to excel. Is there any  way i can show the progress bar in the rad window while export to excel.

Is there anything like radupload..
Marin Bratanov
Telerik team
 answered on 14 Sep 2012
1 answer
237 views
Hello,
         I am using an html table to populate rows in item template of radcombobox. my first column in html table is checkbox and later are label controls. How can I access which checkboxes are checked on a button click? I am using this code but, it only returns 1 row:

 Table mytbl = (Table)ddnInfo.Items[0].FindControl("tblinfo");
        Response.Write(mytbl.Rows.Count.ToString());
        foreach (TableRow row in mytbl.Rows)
        {
            var checkBox = (CheckBox)row.Cells[0].Controls[0];

            if (checkBox.Checked)
            {
                Response.Write("checked");
            }
          

        }
Shinu
Top achievements
Rank 2
 answered on 14 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?