Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
206 views
Hi!

I'm working on an update from 07 version to 08 Ajax and run into problems with the Combobox Method Sort.
Is this function no longer a Member of the combobox? I couldn't find any info in your updatehelp or on the forum. Did I miss something at migration?

thx

Michael
Adam
Top achievements
Rank 1
 answered on 23 Oct 2008
4 answers
147 views

I started getting the following warning dialog at Design time in VS 2008:


"A file with the name 'Bin/radgrid.net2.dll' already exists.  Do you want to replace it"

[ ] Apply to all items

                                                                              [Yes] [No] [Cancel]


I have confirmed that all the Telerik references in the web project are pointing to the right 2.0 folder as the source BIN reference.

The web config does not include any assembly references for Telerik.

I can click "No" or "Cancel" to the dialog above and the problem will come back 15 secs later, as I set focus from one RadGrid to another on the same template.

What is happening here?

Thanks
Reid
Top achievements
Rank 2
 answered on 23 Oct 2008
10 answers
95 views
I am new radGrid and I want to insert my items. I havent done.

 public static string strConStr
    {
        get { return ConfigurationManager.AppSettings["neticaretConn"].ToString(); }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Bind();
    }
    private void Bind()
    {
        #region Database process
        System.Data.DataSet dset = new System.Data.DataSet();
        string cmdString = string.Format("select * from students");
        SqlConnection conn = new SqlConnection(strConStr);
        SqlDataAdapter da = new SqlDataAdapter(cmdString, conn);
        da.Fill(dset);
        #endregion
        RadGrid1.DataSource = dset;
        RadGrid1.DataBind();
    }

the above code show how to bind to RadGrid1.

I want to insert code like the below

protected void RadGrid1_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        string cmdString = @"
                               INSERT INTO  students
                               (name,lastname)
                                VALUES
                               (@name,@lastname)
                              ";
        SqlConnection conn = new SqlConnection(strConStr);
        SqlCommand newCommand = new SqlCommand(cmdString, conn);
        
        newCommand.Parameters.AddWithValue("@name", "item");
        newCommand.Parameters.AddWithValue("@lastname", "item");

        conn.Open();
        newCommand.ExecuteNonQuery();
        Bind();
        
    }

I dont find insert values from InsertCommand. How can I do this. might I do something wrong. I dont know. give me advice. I really need a help.






aas
Top achievements
Rank 1
 answered on 23 Oct 2008
2 answers
125 views

Hi,

Here is a simple example :

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content4" ContentPlaceHolderID="CPHmainContent" runat="Server"
    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center" 
        RelativeTo="Element" Width="320px" ManualClose="false" Height="260px" Animation="Resize" 
        Sticky="true" Skin="WebBlue" OnAjaxUpdate="OnAjaxUpdate" ShowEvent="OnClick"
    </telerik:RadToolTipManager> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bdConnectionString3 %>" 
        SelectCommand="select * from region"></asp:SqlDataSource> 
    <asp:Repeater ID="repeater1" runat="server" DataSourceID="SqlDataSource1" OnItemDataBound="repeater1_ItemDataBound"
        <ItemTemplate> 
            <li> 
                <asp:Label ID="lblName" runat="server"><%#Eval("id_region")%></asp:Label> 
            </li> 
        </ItemTemplate> 
    </asp:Repeater> 
    <asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible="false"
        <telerik:RadSlider ID="RadSlider1" runat="server" Value="10" ClickOffset="20" Length="100" 
            MaximumValue="300" /> 
    </asp:PlaceHolder> 
</asp:Content> 



Imports System.Data 
Imports Telerik.Web.UI 
 
Partial Class xxxx 
    Inherits System.Web.UI.Page 
    Protected Sub repeater1_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) 
        Dim image As System.Web.UI.WebControls.Label = DirectCast(e.Item.FindControl("lblName"), System.Web.UI.WebControls.Label) 
        Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) 
        Me.RadToolTipManager1.TargetControls.Add(image.ClientID, currentRow.Row("id_region").ToString(), True) 
    End Sub 
    Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) 
        Me.UpdateToolTip(args.Value, args.UpdatePanel) 
    End Sub 
    Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel) 
        panel.ContentTemplateContainer.Controls.Add(Me.PlaceHolder1) 
        PlaceHolder1.Visible = True 
    End Sub 
 


As you can see if you try to reproduce it, the slider is not fonctionnal. (it appears but can't be slide)

Is it a problem of z-index or something else ? (I tryed to define the z-index without success).

Can you help ?

Thank you




arnaud
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
109 views
Hi,

Is there any possibility to change the auto generated column header text and sorting expression programmatically?

Kindly post the code.

Thanks,
Shashi
Vlad
Telerik team
 answered on 23 Oct 2008
1 answer
114 views
Hi All,

I am using RadScheduler.

How can i call radscheduler postback from javascript function.

Thanks
Simon
Telerik team
 answered on 23 Oct 2008
1 answer
101 views
Hi All,

I am using rad scheudler.

I open radwindow on delete appointment event.

I Write javascript function which call on when radwindow get closed.

I want to delete the appointment from this javascript function.

Please help me

Thanks
Simon
Telerik team
 answered on 23 Oct 2008
2 answers
127 views
Hello,

I have a simple question. When I open scheduler appointment the Update and Cancel buttons are not there. I can make it to work in my test project but not in the project I am working on. I went over each and every property of the scheduler in both projects and didn't see any difference. The scheduler version I am using is 2008.2.1001.20.

Thanks in advance

Joe
Joseph Rabinovich
Top achievements
Rank 1
 answered on 23 Oct 2008
2 answers
326 views
I have a Login.aspx as follows:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>QspeeQ NOC</title>
    <link href="CSS/Default.css" rel="stylesheet" type="text/css" />
</head>
<body class="Login">
    <form id="form1" runat="server" >
    
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>        

    </form>
    
    
</body>
</html>


If I set Login.aspx as my start page and use:

<authentication mode="Windows"/>

in the web.config everything works as expected; but as soon as I change the authentication to:

<authentication mode="Forms">
            <forms loginUrl="Login.aspx" protection="None" timeout="1" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="default.aspx" cookieless="UseCookies" enableCrossAppRedirects="false"/>
        </authentication>
        <authorization>
            <deny users="?"/>
        </authorization>

I get the following error:

if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

I am using:
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

Hope this is enough information to go on!
Thanks in Advance
Bleddyn










Pivetal
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
58 views
I sent a message to clientservices but wanted to post here as well.

I'm trying to download the Q2 2008 RadControls for 2008 "Manual installation" ZIP file.   It is consistently hanging at 10-11% completion upon which I have waited up to 45 minutes with no more progess and cancel and try again.

I am on Vista Ultimate SP1 if that matters.

Any Advice?
Paul
Telerik team
 answered on 23 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?