Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
314 views

I am unable to find the answer to this problem which have been bugging me for a long time.
When I try to insert into sql table, I use this insert method:

Dim datDOB as date
datDOB = RadDatePickerDOB.DbSelectedDate ---- since it is not a required field so it can be nothing

Dim cmdAddNewRecord as new sqlCommand("INSERT INTO [Table1] ([DOB]) " & _
"VALUES ('"& datDOB & "')", SqlConnection)

Dim daAddNewRecord As New SqlDataAdapter(cmdAddNewRecord)

Dim dsAddNewRecord As New DataSet

Try

If SqlConnection.State <> ConnectionState.Open Then

SqlConnection.Open()

End If

daAddNewRecord.Fill(dsAddNewRecord)

lblError.Visible = True

lblError.Text = "Data has been submitted successfully."

Catch ex As Exception

lblError.Text = ex.Message.ToString

Finally

If SqlConnection.State <> ConnectionState.Closed Then

SqlConnection.Close()

End If

End Try

It inserted successfully but it insert this date: 1/1/1900 12:00:00 AM which I do not want! I would like to insert nothing or null into the table.
Anybody has any idea?

Thank you.

Dimo
Telerik team
 answered on 12 Jul 2010
1 answer
351 views
Hello,
I have a Hyperlink inside a radgird. And on its ItemCreated event, I have this:

Attributes["onclick"] = // some javascript.

My question is : when I click this hyperlink, everything is fine just it did not trigger ajaxloading panel.

     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  DefaultLoadingPanelID="ralpLoadingImage">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="testGrid" >
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="testGrid" />
                    </UpdatedControls>
            </AjaxSettings>
        </telerik:RadAjaxManager>

Is this possible that when I click that link, loading panel is showing on the grid?
Radoslav
Telerik team
 answered on 12 Jul 2010
3 answers
139 views
Hey,
       I am using a multiple file  upload control in a rad window .
I have provided the server side validation using the allowedfileextensions property and it working well .
but my client side validation gives me problem and the ValidateExtensions() function is not working .


Error that i am getting is upload.ValidateExtensions is not a function.  the js code i used is below


function ValidateRadUpload1(source, arguments) {
    var upload= $find('<%= FileUpload.ClientID %>');

    arguments.IsValid = upload.ValidateExtensions();
}

Ascx.
 <telerik:radupload ID="FileUpload" runat="server" MaxFileInputsCount="5"
                MaxFileSize="102400000"  ToolTip="Select your File"
                AllowedFileExtensions=".doc,.xls,.txt,.docx,.xlsx,.rtf,.pdf,.jpg,.bmp"
                ControlObjectsVisibility="Default"   
                 EnableFileInputSkinning="True"
                 EnableViewState="False">
            </telerik:radupload>
<asp:customvalidator runat="server" id="CustomValidator1" display="Dynamic"
            clientvalidationfunction="ValidateRadUpload1"
                onservervalidate="CustomValidator1_ServerValidate" ValidationGroup="upload">
        Invalid extensions.
</asp:customvalidator>

Need help.


Sankardeep V
sankardeep v
Top achievements
Rank 1
 answered on 12 Jul 2010
1 answer
144 views
The date 31/12/2099 si greyed out in the calendar? Why is that? is a valid date...31/12/2010 is available though.

Is this a bug?

Regards

Luis
Dimo
Telerik team
 answered on 12 Jul 2010
1 answer
130 views
We have a web application which has a masterpage in a subfolder. The Masterpage contains a RadScriptManager. See example below:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    </Scripts>
</telerik:RadScriptManager>

When we run the page we get a script error Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function The RadControls on the page are unresponsive.

See attachment.

When i remove the ScriptManager Script References the error disappears but the RadControls are still unresposive.

When i move the pages to the root folder everything works fine.

How do we reference the Telerik assembly scripts in a Masterpage in a subfolder?
Simon
Telerik team
 answered on 12 Jul 2010
4 answers
123 views
Hi,

We use version (2008.3.1314.20) I noticed  that The Table Wizard is not completly localizable.table
I cant get "Table Columns", "Horizontal", "vertical" ....to translate. Is this a known bug? and is there a work around?.


Best Regards,
 Martin Stehouwer.
martin stehouwer
Top achievements
Rank 1
 answered on 12 Jul 2010
3 answers
240 views
Hi,
The scenario I have is the following:
I want a toolbar with 1-n buttons.When the window resizes, I want the toolbar to shrink/expand accordingly and the items that dont fit in the toolbar to be shown in a dropdown menu.
Can I make this scenario using toolbar or another rad control?

Thank you very much for your support.
Yana
Telerik team
 answered on 12 Jul 2010
1 answer
94 views
Hi,
I use the RadFormDecorator control to beautify the page control,but i don't know why same page in different browser will display different..And why the button will diverge the textbox horizontal...
Could you help me how to define?Thank you !

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
<table style="width:600px;" cellpadding="2" cellspacing="2">
<tr>
    <td style="width:10%">ID:</td>
    <td style="width:40%"><input type="text" /></td>
    <td style="width:15%">Name:</td>
    <td style="width:35%"><input type="text" /><input type="button" value="..." /></td>
</tr>
</table>
    </form>
</body>
</html>

Bozhidar
Telerik team
 answered on 12 Jul 2010
3 answers
115 views
Hai 

when i click on edit,pagination and sort on grid the system processing speed goes down and no action takes place on grid.
even he paging and inline editing is not worked out. Have any one faced these kind of issues. I am using vista skin.
Pavlina
Telerik team
 answered on 12 Jul 2010
7 answers
139 views
When launching a modal radwindow in IE 6, any dropdown's visible on the parent page are hidden.  Once they are hidden, they are gone even after the modal has been closed.  These are pure ASP.NET dropdownlists.  There is nothing special about the dropdown's that are hidden - I can add new dropdowns to the page with nothing in them, and they still go away on launch.  Any ideas out there?

Thanks

Dan Appleyard
Georgi Tunev
Telerik team
 answered on 12 Jul 2010
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?